Skip to content
Snippets Groups Projects
Commit bd787292 authored by Felix Delattre's avatar Felix Delattre
Browse files

Added Docker container for the-engine

parent 7e7804ae
No related branches found
No related tags found
No related merge requests found
# Copyright (c) 2020:
# Deutsches GeoForschungsZentrum GFZ <https://www.gfz-potsdam.de>
#
# This program is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at
# your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero
# General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see http://www.gnu.org/licenses/.
FROM debian:bullseye-slim
# Install dependencies
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update --yes --fix-missing && apt-get upgrade --yes && \
apt-get install --yes --no-install-recommends \
celery \
python-celery-common \
git \
python3 \
python3-pip
# Get the-engine code
RUN cd /srv && git clone https://gitext.gfz-potsdam.de/dynamicexposure/the-engine/the-engine.git
WORKDIR /srv/the-engine
# Install the-engine with its dependencies
RUN pip3 install -e .
# Define place for instance's code
VOLUME ["/srv/the-engine-instance"]
# Cleanup
RUN apt-get autoremove --yes $build_dependencies && apt-get autoremove --yes && \
apt-get clean --yes && rm -rf /var/lib/apt/* /var/cache/apt/* /root/.cache
# Set up start script
COPY ./files/start.sh /usr/local/bin
CMD /usr/local/bin/start.sh
......@@ -3,7 +3,8 @@ Docker the-engine instance
==========================
This is a Docker container instances of
`the-engine <https://gitext.gfz-potsdam.de/dynamicexposure/the-engine/the-engine>`__.
`the-engine <https://gitext.gfz-potsdam.de/dynamicexposure/the-engine/the-engine>`__
providing a framework for running computation tasks with `celery <docs.celeryproject.org>`__.
Copyright and copyleft
......
#!/bin/sh
celery -A instance worker -n node -l info
python3 /srv/the-engine-instance
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment