Skip to content

Commit 9fd8348

Browse files
committed
initial rough sketch of Dockerfile for tutorial environment setup
1 parent 7031ede commit 9fd8348

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

Docker/Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# syntax=docker/dockerfile:1
2+
FROM redhat/ubi8:latest
3+
4+
# clone repository and set up in container
5+
RUN dnf update && dnf install git -y
6+
RUN cd ~ && git clone https://github.com/ECCO-GROUP/ECCO-v4-Python-Tutorial.git
7+
COPY ~/ECCO-v4-Python-Tutorial /
8+
9+
# expose port to be used later with Jupyterlab
10+
EXPOSE 9889
11+
12+
# run jupyter set up script
13+
CMD ["chmod", "755", "/ECCO-v4-Python-Tutorial/Cloud_Setup/jupyter_env_setup.sh"]
14+
CMD ["/ECCO-v4-Python-Tutorial/Cloud_Setup/jupyter_env_setup.sh"]
15+
16+
## note: might have to work out how user can input Earthdata credentials when jupyter_env_setup.sh is run, and port number/password for jupyter_lab_start.sh
17+
18+
# run jupyter lab start script
19+
CMD ["~/jupyter_lab_start.sh"]

0 commit comments

Comments
 (0)