Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Dockerfiles
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
Aart Heijboer
Dockerfiles
Commits
fec3c2c6
Commit
fec3c2c6
authored
5 years ago
by
Kay Graf
Browse files
Options
Downloads
Patches
Plain Diff
Update startup.sh
parent
b9cf14bb
No related branches found
Branches containing commit
Tags
v0.2.2
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
desktop/km3book/startup.sh
+21
-2
21 additions, 2 deletions
desktop/km3book/startup.sh
with
21 additions
and
2 deletions
desktop/km3book/startup.sh
+
21
−
2
View file @
fec3c2c6
...
...
@@ -44,6 +44,25 @@ CMD jupyter lab --ip=0.0.0.0 --port=8888 --no-browser --notebook-dir=$NOTEBOOK_D
EXPOSE 22
EOF
sudo
docker build
-t
km3book
:1.0.0
-f
Dockerfile
.
sudo
docker build
-t
my
km3book
-f
Dockerfile
.
chown
-R
$THE_USER
$NOTEBOOK_DIR
sudo
docker run
-p
8888:8888
-p
2200:22
-u
$USER_ID
-v
$NOTEBOOK_DIR
:
$NOTEBOOK_DIR
-it
km3book:1.0.0
cat
<<
EOF
> run.sh
#!/bin/bash
sudo docker run -p 8888:8888 -p 2200:22 -u
$USER_ID
-v
$NOTEBOOK_DIR
:
$NOTEBOOK_DIR
-it mykm3book
EOF
echo
echo
echo
The run script has been generated. From now on, please execute
echo
echo
" ./run.sh"
echo
echo
"to launch the JupyterLab instance. I'll do it for you in 5 seconds!"
echo
echo
sleep
5
chmod
+x run.sh
./run.sh
\ No newline at end of file
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