-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
24 lines (21 loc) · 1.12 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Follow https://micromamba-docker.readthedocs.io/en/latest/
# Base container
FROM mambaorg/micromamba:2.0.3
# Container construction
COPY --chown=$MAMBA_USER:$MAMBA_USER . /home/${MAMBA_USER}/schedview
RUN micromamba install -y -n base -f /home/${MAMBA_USER}/schedview/container_environment.yaml && \
micromamba clean --all --yes
ARG MAMBA_DOCKERFILE_ACTIVATE=1
RUN python -m pip install /home/$MAMBA_USER/schedview --no-deps
ARG TEST_DATA_DIR=/home/${MAMBA_USER}/schedview/test_data
ARG TEST_DATA_INDEX=https://s3df.slac.stanford.edu/data/rubin/sim-data/sched_pickles/test_snapshots.html
RUN mkdir -p ${TEST_DATA_DIR} && \
wget --no-parent --directory-prefix=${TEST_DATA_DIR} --no-directories --recursive ${TEST_DATA_INDEX}
# Container execution
ENV RUBIN_SIM_DATA_DIR=/home/${MAMBA_USER}/schedview/rubin_sim_data
ENV SCHEDULER_SNAPSHOT_DASHBOARD_PORT=8080
ENV LSST_DISABLE_BUCKET_VALIDATION=1
ENV LSST_S3_USE_THREADS=False
ENV S3_ENDPOINT_URL=https://s3dfrgw.slac.stanford.edu
ENV SIMS_SKYBRIGHTNESS_DATA=https://s3df.slac.stanford.edu/groups/rubin/static/sim-data/sims_skybrightness_pre/h5_2023_09_12_small/
CMD prenight --port 8080