-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_docker.sh
More file actions
executable file
·46 lines (37 loc) · 1.97 KB
/
Copy pathbuild_docker.sh
File metadata and controls
executable file
·46 lines (37 loc) · 1.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#! /bin/bash
echo "Resetting docker"
echo *--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*
echo "Stop / Remove strain-processing-notebooks container - command"
echo *--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*
docker stop strain-processing-notebooks-container
docker rm strain-processing-notebooks-container
echo *--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*
echo "Remove strain-processing-notebooks image, image that made strain-processing-notebooks-container"
echo *--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*
docker image rm ghcr.io/earthscope/strain-processing-notebooks
echo *--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*
echo "ReBuild strain-processing-notebooks image in current directory"
echo *--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*
#docker build --rm --no-cache -t strain-processing-notebooks .
docker build --rm -f Dockerfile -t ghcr.io/earthscope/strain-processing-notebooks .
#--no-cache
echo *--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*
echo "docker run strain-processing-notebooks_docker container"
echo "Interactive, on port 8888, name = strain-processing-notebooks "
echo *--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*
# Open jupyter notebook directly
docker run \
-it \
-p 8888:8888 \
--name='strain-processing-notebooks-container' \
-v ${PWD}/notebooks:/home/jovyan/notebooks \
ghcr.io/earthscope/strain-processing-notebooks
#-v ${PWD}/notebooks:/home/jovyan/notebooks \
#docker push ghcr.io/earthscope/strain-processing-notebooks
# -e JUPYTER_ENABLE_LAB=yes
# -v ~/repos/base_docker_stack/notebooks:/home/jovyan/event_response/notebooks \
# -v ~/repos/base_docker_stack/events:/home/jovyan/event_response/events \
# -v ~/repos/base_docker_stack/bin:/home/jovyan/event_response/bin \
# If you want to add your own external volume add another -v command to the docker run command
#-v ~/[path_to_local_directory]:/home/jovyan/event_response/[personal_directory]
echo *--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*