Skip to content

Commit

Permalink
changing dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
tcnichol committed Oct 11, 2023
1 parent c8d7eb9 commit 411c5ba
Showing 1 changed file with 6 additions and 28 deletions.
34 changes: 6 additions & 28 deletions preview.netcdf/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,30 +1,8 @@
FROM ubuntu:20.04
FROM python:3.8

RUN apt-get update &&\
DEBIAN_FRONTEND=noninteractive apt-get install -y \
python3 \
python-is-python3
WORKDIR /extractor
COPY requirements.txt ./
RUN pip install -r requirements.txt

# copy requirements file
COPY requirements.txt /home/clowder/
RUN pip3 install -r /home/clowder/requirements.txt

# command to run when starting docker
ENTRYPOINT ["/home/clowder/entrypoint.sh"]
CMD ["extractor"]

# Setup environment variables. These are passed into the container. You can change
# these to your setup. If RABBITMQ_URI is not set, it will try and use the rabbitmq
# server that is linked into the container. MAIN_SCRIPT is set to the script to be
# executed by entrypoint.sh
ENV VERSION=${VERSION} \
BUILDNUMBER=${BUILDNUMBER} \
GITSHA1=${GITSHA1} \
RABBITMQ_URI="" \
RABBITMQ_EXCHANGE="clowder" \
RABBITMQ_VHOST="%2F" \
RABBITMQ_QUEUE="ncsa.geo.netdcdf.extractor" \
MAIN_SCRIPT="ncsa.geo.netcdf.extractor.py"

# copy rest of the files needed
COPY entrypoint.sh *.py extractor_info.json /home/clowder/
COPY netcdfutils.py ncsa.geo.netcdf.extractor.py extractor_info.json ./
CMD python ncsa.geo.netcdf.extractor.py

0 comments on commit 411c5ba

Please sign in to comment.