only theia Docker nginx not needed
This commit is contained in:
@@ -5,8 +5,8 @@ RUN apt-get update \
|
|||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Install docker for the container to enable access to a docker host if socket is mounted
|
# 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 \
|
RUN wget https://download.docker.com/linux/static/stable/x86_64/docker-20.10.9.tgz \
|
||||||
&& tar -xvf docker-20.10.2.tgz docker/docker && cp docker/docker /usr/bin/
|
&& tar -xvf docker-20.10.9.tgz docker/docker && cp docker/docker /usr/bin/
|
||||||
|
|
||||||
|
|
||||||
# Install Python requirements to support development
|
# Install Python requirements to support development
|
||||||
@@ -15,6 +15,5 @@ run pip3 install --upgrade pip \
|
|||||||
&& pip3 install -r requirements.txt \
|
&& pip3 install -r requirements.txt \
|
||||||
&& pip3 install pytest pylint bandit flake8 black pytest-django six pytest-mock
|
&& 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
|
#ENTRYPOINT node /home/theia/src-gen/backend/main.js /home/project/ --hostname=0.0.0.0
|
||||||
@@ -3,5 +3,5 @@
|
|||||||
# About
|
# About
|
||||||
Dieses kleine Projekt zeigt wie mit Docker und einigen Tools eine kleine Online Entwicklungsumgebung aufgesetzt werden kann.
|
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.
|
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.
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,14 @@
|
|||||||
version: '2'
|
version: '2'
|
||||||
services:
|
services:
|
||||||
|
nginx:
|
||||||
|
image: docker.triton2.fet.at/dev_nginx
|
||||||
|
ports:
|
||||||
|
- "${PORT}:80"
|
||||||
theia:
|
theia:
|
||||||
image: docker.triton2.fet.at/dev_theia
|
image: docker.triton2.fet.at/dev_theia
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- data_dev:/home/project
|
- data_dev:/home
|
||||||
volumes:
|
volumes:
|
||||||
data_dev:
|
data_dev:
|
||||||
driver: local
|
driver: local
|
||||||
@@ -3,9 +3,9 @@ export REGISTRY="docker.triton2.fet.at"
|
|||||||
docker login $REGISTRY
|
docker login $REGISTRY
|
||||||
|
|
||||||
# build a small nginx image to handle routing of /dev and other services
|
# 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 build --no-cache -f dockerfiles/Dockerfile.nginx -t $REGISTRY/dev_nginx:latest .
|
||||||
docker push $REGISTRY/dev_nginx:latest
|
#docker push $REGISTRY/dev_nginx:latest
|
||||||
|
|
||||||
# Build a development Image with Theia and all content
|
# 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
|
docker push $REGISTRY/dev_theia:latest
|
||||||
@@ -1,14 +1,10 @@
|
|||||||
version: '2'
|
version: '2'
|
||||||
services:
|
services:
|
||||||
nginx:
|
|
||||||
image: docker.triton2.fet.at/dev_nginx
|
|
||||||
ports:
|
|
||||||
- "${PORT}:80"
|
|
||||||
theia:
|
theia:
|
||||||
image: docker.triton2.fet.at/dev_theia
|
image: docker.triton2.fet.at/dev_theia
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
- data_dev:/home
|
- data_dev:/home/project
|
||||||
volumes:
|
volumes:
|
||||||
data_dev:
|
data_dev:
|
||||||
driver: local
|
driver: local
|
||||||
Reference in New Issue
Block a user