Skip to content

Commit 02a807e

Browse files
authored
11 add vtls dockerstack (#12)
* Add VTLS Dockerfile and udates to docker-compose.yml * Fixed a few bugs in the vtls_dev/Dockerfile --------- Authored-by: Godwin Shen
1 parent 635aa0a commit 02a807e

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

docker-compose.yml

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# ${DOCKER_GROUP} and ${DOCKER_TAG} default values defined in the .env file
22
version: '3'
33
services:
4+
vtls_dev:
5+
image: ${DOCKER_GROUP}/vtls_dev:${DOCKER_TAG}
6+
hostname: local
7+
build:
8+
context: ./
9+
dockerfile: $PWD/vtls_dev/Dockerfile
410
sounder_sips_dev:
511
image: ${DOCKER_GROUP}/sounder_sips_dev:${DOCKER_TAG}
612
hostname: local

vtls_dev/Dockerfile

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
FROM jupyter/datascience-notebook
2+
3+
# Switch to root user for build
4+
USER root
5+
6+
# Requires the build context to be one level up where common is located
7+
COPY common/unity-sds /etc/unity-sds
8+
9+
# Install Dockstore
10+
RUN apt-get update -q && \
11+
apt install -y openjdk-11-jdk && \
12+
curl -L -o /usr/local/bin/dockstore https://github.com/dockstore/dockstore-cli/releases/download/1.13.1/dockstore && \
13+
chmod +x /usr/local/bin/dockstore
14+
15+
# Install AWS CLI
16+
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
17+
unzip awscliv2.zip && \
18+
./aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli && \
19+
rm -rf awscliv2.zip aws
20+
21+
RUN mamba install -y python>3.11 nb_conda_kernels ipykernel \
22+
s3fs boto3 netcdf4 xarray basemap cartopy h5netcdf 'basemap>=1.4.0' pysqlite3 \
23+
ipython numpy pandas matplotlib scipy && \
24+
conda clean -y --all
25+
RUN pip install unity_sds_client==0.7.0 podaac-data-subscriber PyWavelets
26+
27+
# Switch back to jovyan to avoid accidental container runs as root
28+
USER ${NB_UID}

0 commit comments

Comments
 (0)