Skip to content

Commit

Permalink
refactor: Update base-ssec-project to use base-image (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
lsetiawan authored May 9, 2024
1 parent 0c13907 commit 9c20b4d
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 21 deletions.
26 changes: 6 additions & 20 deletions base-ssec-project/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
# Use the latest version of the pangeo/base-notebook (includes CUDA support)
FROM pangeo/base-notebook:latest

# Set the user to root
USER root

# Copy the environment file into the Docker image
COPY environment.yml /tmp/environment.yml

# Create a new Conda environment from the environment.yml file
RUN conda env create -f /tmp/environment.yml

# Install wget, git, ncdu, and curl
RUN apt-get update && apt-get install -y \
wget \
git \
ncdu \
curl \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
# ONBUILD instructions in base-image/Dockerfile are used to
# perform certain actions based on the presence of specific
# files (such as conda-linux-64.lock, start) in this repo.
# Refer to the base-image/Dockerfile for documentation.
ARG SSEC_BASE_IMAGE_TAG=latest
FROM ghcr.io/uw-ssec/base-image:${SSEC_BASE_IMAGE_TAG}
4 changes: 4 additions & 0 deletions base-ssec-project/apt.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
wget
git
ncdu
curl
2 changes: 1 addition & 1 deletion base-ssec-project/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ dependencies:
- matplotlib
- pydantic
- conda-lock
- pip
- pip
Empty file removed base-ssec-project/postBuild.sh
Empty file.
9 changes: 9 additions & 0 deletions base-ssec-project/start
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash -l

# ==== ONLY EDIT WITHIN THIS BLOCK =====



# ==== ONLY EDIT WITHIN THIS BLOCK =====

exec "$@"

0 comments on commit 9c20b4d

Please sign in to comment.