Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
docker-rabotnik-instance
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Global Dynamic Exposure
rabotnik
containers
docker-rabotnik-instance
Commits
bd787292
Commit
bd787292
authored
4 years ago
by
Felix Delattre
Browse files
Options
Downloads
Patches
Plain Diff
Added Docker container for the-engine
parent
7e7804ae
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+45
-0
45 additions, 0 deletions
Dockerfile
README.rst
+2
-1
2 additions, 1 deletion
README.rst
files/start.sh
+4
-0
4 additions, 0 deletions
files/start.sh
with
51 additions
and
1 deletion
Dockerfile
0 → 100644
+
45
−
0
View file @
bd787292
# 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
This diff is collapsed.
Click to expand it.
README.rst
+
2
−
1
View file @
bd787292
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
files/start.sh
0 → 100755
+
4
−
0
View file @
bd787292
#!/bin/sh
celery
-A
instance worker
-n
node
-l
info
python3 /srv/the-engine-instance
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment