docker compose & Dockerfile
This commit is contained in:
@@ -1,11 +1,20 @@
|
|||||||
from theiaide/theia-python:latest
|
from theiaide/theia-python:latest
|
||||||
|
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get -y upgrade \
|
|
||||||
&& apt-get -y install libgs-dev \
|
&& apt-get -y install libgs-dev \
|
||||||
&& 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
|
||||||
|
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/
|
||||||
|
|
||||||
|
|
||||||
|
# Install Python requirements to support development
|
||||||
COPY ./requirements.txt .
|
COPY ./requirements.txt .
|
||||||
run pip3 install --upgrade pip && pip3 install -r requirements.txt && pip3 install pytest pylint bandit flake8 black pytest-django six pytest-mock
|
run pip3 install --upgrade pip \
|
||||||
#COPY . /home/project
|
&& pip3 install -r requirements.txt \
|
||||||
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/
|
&& 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
|
||||||
14
docker-compose.yml
Normal file
14
docker-compose.yml
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
version: '2'
|
||||||
|
services:
|
||||||
|
nginx:
|
||||||
|
image: docker.triton2.fet.at/dev_nginx
|
||||||
|
ports:
|
||||||
|
- "5005:80"
|
||||||
|
theia:
|
||||||
|
image: docker.triton2.fet.at/dev_theia
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
- data_dev:/home
|
||||||
|
volumes:
|
||||||
|
data_dev:
|
||||||
|
driver: local
|
||||||
Reference in New Issue
Block a user