only theia Docker nginx not needed

This commit is contained in:
2021-11-14 11:26:06 +01:00
parent b1620ab5f8
commit 56a8997fee
7 changed files with 14 additions and 15 deletions

View File

@@ -5,8 +5,8 @@ RUN apt-get update \
&& rm -rf /var/lib/apt/lists/*
# Install docker for the container to enable access to a docker host if socket is mounted
RUN wget https://download.docker.com/linux/static/stable/x86_64/docker-20.10.2.tgz \
&& tar -xvf docker-20.10.2.tgz docker/docker && cp docker/docker /usr/bin/
RUN wget https://download.docker.com/linux/static/stable/x86_64/docker-20.10.9.tgz \
&& tar -xvf docker-20.10.9.tgz docker/docker && cp docker/docker /usr/bin/
# Install Python requirements to support development
@@ -15,6 +15,5 @@ run pip3 install --upgrade pip \
&& pip3 install -r requirements.txt \
&& pip3 install pytest pylint bandit flake8 black pytest-django six pytest-mock
COPY . /home/development
#ENTRYPOINT node /home/theia/src-gen/backend/main.js /home/project/ --hostname=0.0.0.0

View File

@@ -3,5 +3,5 @@
# About
Dieses kleine Projekt zeigt wie mit Docker und einigen Tools eine kleine Online Entwicklungsumgebung aufgesetzt werden kann.
Primär ist diese Umgebung für Python Projekte gedacht, kann aber insbesondere auch für Node.js und andere Themen genutzt werden.
Diese Entwicklungsumgebung wird/wurde für die Entwicklung der Fetsite 2020 benutzt.

View File

@@ -1,10 +1,14 @@
version: '2'
services:
nginx:
image: docker.triton2.fet.at/dev_nginx
ports:
- "${PORT}:80"
theia:
image: docker.triton2.fet.at/dev_theia
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- data_dev:/home/project
- data_dev:/home
volumes:
data_dev:
driver: local

View File

@@ -3,9 +3,9 @@ export REGISTRY="docker.triton2.fet.at"
docker login $REGISTRY
# build a small nginx image to handle routing of /dev and other services
docker build --no-cache -f dockerfiles/Dockerfile.nginx -t $REGISTRY/dev_nginx:latest .
docker push $REGISTRY/dev_nginx:latest
#docker build --no-cache -f dockerfiles/Dockerfile.nginx -t $REGISTRY/dev_nginx:latest .
#docker push $REGISTRY/dev_nginx:latest
# Build a development Image with Theia and all content
docker build --no-cache -f dockerfiles/Dockerfile.theia -t $REGISTRY/dev_theia:latest .
docker build --no-cache -t $REGISTRY/dev_theia:latest .
docker push $REGISTRY/dev_theia:latest

View File

@@ -1,14 +1,10 @@
version: '2'
services:
nginx:
image: docker.triton2.fet.at/dev_nginx
ports:
- "${PORT}:80"
theia:
image: docker.triton2.fet.at/dev_theia
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- data_dev:/home
- data_dev:/home/project
volumes:
data_dev:
driver: local