Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jupyter-base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Emmanuel Bruno
jupyter-base
Commits
8a554490
Commit
8a554490
authored
2 years ago
by
Emmanuel Bruno
Browse files
Options
Downloads
Patches
Plain Diff
fixes race condition with caches.
parent
e53f1eb7
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+4
-4
4 additions, 4 deletions
Dockerfile
with
4 additions
and
4 deletions
Dockerfile
+
4
−
4
View file @
8a554490
...
@@ -22,7 +22,7 @@ RUN mkdir -p $PIP_CACHE_DIR && \
...
@@ -22,7 +22,7 @@ RUN mkdir -p $PIP_CACHE_DIR && \
mkdir
-p
/var/cache/apt
mkdir
-p
/var/cache/apt
# We need to remove the default `docker-clean` to avoid cache cleaning
# We need to remove the default `docker-clean` to avoid cache cleaning
RUN
--mount
=
type
=
cache,target
=
/var/cache/apt
\
RUN
--mount
=
type
=
cache,target
=
/var/cache/apt
,sharing
=
locked
\
rm
-f
/etc/apt/apt.conf.d/docker-clean
&&
\
rm
-f
/etc/apt/apt.conf.d/docker-clean
&&
\
apt-get update && \
apt-get update && \
apt-get install -qq --yes --no-install-recommends \
apt-get install -qq --yes --no-install-recommends \
...
@@ -75,11 +75,11 @@ ENV PATH=/opt/bin:$PATH
...
@@ -75,11 +75,11 @@ ENV PATH=/opt/bin:$PATH
# Enable persistant conda env
# Enable persistant conda env
COPY
condarc /home/jovyan/.condarc
COPY
condarc /home/jovyan/.condarc
RUN
--mount
=
type
=
cache,target
=
${
PIP_CACHE_DIR
}
\
RUN
--mount
=
type
=
cache,target
=
${
PIP_CACHE_DIR
}
,sharing
=
locked
\
--mount
=
type
=
cache,target
=
/opt/conda/pkgs
\
--mount
=
type
=
cache,target
=
/opt/conda/pkgs
,sharing
=
locked
\
echo
-e
"
\e
[93m***** Install Jupyter Lab Extensions ****
\e
[38;5;241m"
&&
\
echo
-e
"
\e
[93m***** Install Jupyter Lab Extensions ****
\e
[38;5;241m"
&&
\
pip
install
--quiet
--upgrade
\
pip
install
--quiet
--upgrade
\
$(
cat
/tmp/Artefacts/list_p
ackages
)
&&
\
$(
cat
/tmp/Artefacts/list_p
ip
)
&&
\
mamba
install
--quiet
--yes
\
mamba
install
--quiet
--yes
\
nb_conda_kernels
\
nb_conda_kernels
\
&&
\
&&
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment