UNCLASSIFIED

Commit 2a1c4c94 authored by Matt Vasquez's avatar Matt Vasquez
Browse files

update Dockerfile with python location change

parent a97e9a7a
...@@ -11,11 +11,13 @@ ENV USER=jovyan ...@@ -11,11 +11,13 @@ ENV USER=jovyan
COPY --chown=$USER *.whl *.tar.gz *.zip /tmp/packages/ COPY --chown=$USER *.whl *.tar.gz *.zip /tmp/packages/
RUN dnf install -y hostname xz-devel make gcc gcc-c++ openssl-devel bzip2-devel libffi-devel sqlite-devel && \ RUN dnf install -y hostname xz-devel make gcc gcc-c++ openssl-devel bzip2-devel libffi-devel sqlite-devel && \
rm /usr/bin/python3 && \ rm /usr/local/bin/python && \
rm /usr/local/bin/python3 && \
cd /opt/Python-"$(python --version | awk '{print $2}')" && \ cd /opt/Python-"$(python --version | awk '{print $2}')" && \
./configure --enable-optimizations && \ ./configure --enable-optimizations && \
make altinstall && \ make altinstall && \
ln -s /opt/Python-"$(python --version | awk '{print $2}')"/python /usr/bin/python3 && \ ln -s /opt/Python-"$(python --version | awk '{print $2}')"/python /usr/local/bin/python && \
ln -s /opt/Python-"$(python --version | awk '{print $2}')"/python /usr/local/bin/python3 && \
mkdir /envs && \ mkdir /envs && \
chown -R $USER:users /envs chown -R $USER:users /envs
...@@ -31,12 +33,12 @@ COPY --chown=$USER envs/jaic-mf/* /envs/jaic-mf/ ...@@ -31,12 +33,12 @@ COPY --chown=$USER envs/jaic-mf/* /envs/jaic-mf/
RUN python -m pip install -U --no-deps --no-index -f /tmp/packages/ -r /tmp/requirements.txt && \ RUN python -m pip install -U --no-deps --no-index -f /tmp/packages/ -r /tmp/requirements.txt && \
cd /envs && \ cd /envs && \
cd /envs/jaic-df && \ cd /envs/jaic-df && \
poetry env use /opt/Python-"$(python --version | awk '{print $2}')"/python && \ poetry env use /usr/local/bin/python && \
poetry run python -m pip install --no-deps --no-index -f /tmp/packages/ -r /envs/jaic-df/requirements.txt && \ poetry run python -m pip install --no-deps --no-index -f /tmp/packages/ -r /envs/jaic-df/requirements.txt && \
poetry run python -m ipykernel install --user --name jaic-df --display-name "Data Factory" && \ poetry run python -m ipykernel install --user --name jaic-df --display-name "Data Factory" && \
cd /envs && \ cd /envs && \
cd /envs/jaic-mf && \ cd /envs/jaic-mf && \
poetry env use /opt/Python-"$(python --version | awk '{print $2}')"/python && \ poetry env use /usr/local/bin/python && \
poetry run python -m pip install --no-deps --no-index -f /tmp/packages/ -r /envs/jaic-mf/build-requirements.txt && \ poetry run python -m pip install --no-deps --no-index -f /tmp/packages/ -r /envs/jaic-mf/build-requirements.txt && \
poetry run python -m pip install --no-deps --no-index -f /tmp/packages/ -r /envs/jaic-mf/requirements.txt && \ poetry run python -m pip install --no-deps --no-index -f /tmp/packages/ -r /envs/jaic-mf/requirements.txt && \
poetry run python -m ipykernel install --user --name jaic-mf --display-name "Model Factory" && \ poetry run python -m ipykernel install --user --name jaic-mf --display-name "Model Factory" && \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment