Commit 9bc9baa5 authored by BERJON Matthieu's avatar BERJON Matthieu

Add of the Django container

I modified the main file to build the new django image called
dev-django. I added the folder in the bootstrap and prepare.sh file.
I added the necessary configuration in the docker-compose.yaml based on
the rails example.

At the moment, the container by itself doesn't do anything except having
the python stack installed.
Signed-off-by: BERJON Matthieu's avatarMatthieu Berjon <matthieu.berjon@inria.fr>
parent e69a28a2
......@@ -15,7 +15,7 @@ if [ -n "$*" ] ; then
TODO="$*"
else
docker-compose down
TODO="dev-mysql dev-smtpsink dev-ssh dev-rails dev-nginx"
TODO="dev-mysql dev-smtpsink dev-ssh dev-rails dev-django dev-nginx"
fi
(set -xe
......
......@@ -95,6 +95,28 @@ services:
tty: true
stdin_open: true
dev-django:
container_name: dev-django
build: django
#image: allgo/rails
user: "$DOCKERUSER"
ports:
- "127.0.0.1:4000:8080"
volumes:
- "/data/dev/django:/vol"
- "./django:/opt/allgo"
# environment:
# RAILS_ENV: development
networks: [dev]
tty: true
stdin_open: true
dev-smtpsink:
container_name: dev-smtpsink
......
......@@ -5,7 +5,7 @@ if [ ! -f "prepare.sh" ] ; then
else
# make directories for the external volumes, and with the right
# ownership (the current user)
for ctr in registry rails controller ssh mysql smtpsink nginx
for ctr in registry rails django controller ssh mysql smtpsink nginx
do
mkdir -p "./data/$ctr"
done
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment