UNCLASSIFIED

Commit d82cf73f authored by Matt Vasquez's avatar Matt Vasquez
Browse files

update Dockerfile

parent 1ee58417
Pipeline #273424 passed with stages
in 132 minutes and 19 seconds
...@@ -7,16 +7,15 @@ FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG} ...@@ -7,16 +7,15 @@ FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}
USER root USER root
ENV USER=jovyan ENV USER=jovyan
ENV PYTHON_VERSION="$(ls /opt | grep Python | cut -d '-' -f2)"
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/bin/python3 && \
cd /opt/Python-${PYTHON_VERSION} && \ cd /opt/Python-"$(python --version | awk '{print $2}')" && \
./configure --enable-optimizations && \ ./configure --enable-optimizations && \
make altinstall && \ make altinstall && \
ln -s /opt/Python-${PYTHON_VERSION}/python /usr/bin/python3 && \ ln -s /opt/Python-"$(python --version | awk '{print $2}')"/python /usr/bin/python3 && \
mkdir /envs && \ mkdir /envs && \
chown -R $USER:users /envs chown -R $USER:users /envs
...@@ -39,7 +38,7 @@ RUN python -m pip install -U --no-deps --no-index -f /tmp/packages/ -r /tmp/requ ...@@ -39,7 +38,7 @@ RUN python -m pip install -U --no-deps --no-index -f /tmp/packages/ -r /tmp/requ
cd /envs && \ cd /envs && \
#poetry new jaic-df && \ #poetry new jaic-df && \
cd /envs/jaic-df && \ cd /envs/jaic-df && \
poetry env use /opt/Python-${PYTHON_VERSION}/python && \ poetry env use /opt/Python-"$(python --version | awk '{print $2}')"/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 && \
#for item in $(cat /tmp/jaic-df/requirements-top-level.txt); do poetry add "${item}" --python ">=3.8,<3.9"; done && \ #for item in $(cat /tmp/jaic-df/requirements-top-level.txt); do poetry add "${item}" --python ">=3.8,<3.9"; done && \
#poetry add ipykernel --python ">=3.8,<3.9" && \ #poetry add ipykernel --python ">=3.8,<3.9" && \
...@@ -47,7 +46,7 @@ RUN python -m pip install -U --no-deps --no-index -f /tmp/packages/ -r /tmp/requ ...@@ -47,7 +46,7 @@ RUN python -m pip install -U --no-deps --no-index -f /tmp/packages/ -r /tmp/requ
cd /envs && \ cd /envs && \
#poetry new jaic-mf && \ #poetry new jaic-mf && \
cd /envs/jaic-mf && \ cd /envs/jaic-mf && \
poetry env use /opt/Python-${PYTHON_VERSION}/python && \ poetry env use /opt/Python-"$(python --version | awk '{print $2}')"/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 && \
#for item in $(cat /tmp/jaic-mf/requirements-top-level.txt); do poetry add "${item}" --python ">=3.8,<3.9"; done && \ #for item in $(cat /tmp/jaic-mf/requirements-top-level.txt); do poetry add "${item}" --python ">=3.8,<3.9"; done && \
......
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