UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Ironbank Containers
A
aiml
jupyter
jaic-notebook
Commits
d82cf73f
Commit
d82cf73f
authored
May 22, 2021
by
Matt Vasquez
Browse files
update Dockerfile
parent
1ee58417
Pipeline
#273424
passed with stages
in 132 minutes and 19 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
Dockerfile
Dockerfile
+4
-5
No files found.
Dockerfile
View file @
d82cf73f
...
@@ -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 &&
\
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment