Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
J
Jupyter Docker Stacks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Jupyter Docker Stacks
Commits
f0cdbd53
Commit
f0cdbd53
authored
Feb 19, 2018
by
Graham Dumpleton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove packages file from image when using Source-to-Image before doing a build, rather than after.
parent
52fba596
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
examples/source-to-image/assemble
examples/source-to-image/assemble
+10
-7
No files found.
examples/source-to-image/assemble
View file @
f0cdbd53
...
...
@@ -4,6 +4,16 @@ set -x
set
-eo
pipefail
# Remove any 'environment.yml' or 'requirements.txt' files which may
# have been carried over from the base image so we don't reinstall
# packages which have already been installed. This could occur where
# an S2I build was used to create a new base image with pre-installed
# Python packages, with the new image then subsequently being used as a
# S2I builder base image.
rm
-f
/home/
$NB_USER
/work/environment.yml
rm
-f
/home/
$NB_USER
/work/requirements.txt
# Copy injected files to correct place in 'work' directory.
cp
-Rf
/tmp/src/. /home/
$NB_USER
/work
...
...
@@ -25,13 +35,6 @@ else
fi
fi
# Remove any 'environment.yml' or 'requirements.txt' file when done in
# case we are producing an image which will in turn be used as an S2I
# builder image.
rm
-f
/home/
$NB_USER
/work/environment.yml
rm
-f
/home/
$NB_USER
/work/requirements.txt
# Fix up permissions on home directory and Python installation so that
# everything is still writable by 'users' group.
...
...
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