Skip to content
Snippets Groups Projects
Commit e9062db3 authored by tholok97's avatar tholok97
Browse files

#4 dockerfile + dokumentert denne

la også til flere verktøy i requirements.txt
parent 625a4298
No related branches found
No related tags found
No related merge requests found
Pipeline #70085 passed
FROM ubuntu:16.04
# This Dockerfile describes the container used in .gitlab-ci.yml
# Need docker build arg, such as --build-arg FLAKE8_VERSION=3.0.4
ARG FLAKE8_VERSION=3.7
# Installing python3.7
RUN apt-get update
RUN apt-get install software-properties-common -y
RUN add-apt-repository ppa:deadsnakes/ppa -y
RUN apt-get update
RUN apt-get install python3.7 -y
RUN python3.7 -V
RUN apt-get install python3-pip -y
RUN pip3 install --upgrade pip
# To make -platform offscreen,minimal,vnc work
RUN apt-get install -y libegl1-mesa-dev \
libfontconfig1-dev \
libsdl1.2-dev \
libwayland-dev \
libxkbcommon-dev
WORKDIR /code
COPY requirements.txt requirements.txt
RUN pip3 install -r requirements.txt
......@@ -51,4 +51,12 @@ Gjøres med pdoc3:
* `pdoc3 --html --output-dir .\docs .\soitool\main.py`
* Uten kildekode: `pdoc3 --html --config show_source_code=False --output-dir .\docs\ .\soitool\main.py`
\ No newline at end of file
* Uten kildekode: `pdoc3 --html --config show_source_code=False --output-dir .\docs\ .\soitool\main.py`
## Om `Dockerfile`
Docker image som brukes i `.gitlab-ci.yml` er bygget med filen `Dockerfile` og er lastet opp som `morkolai/soitool-ci`. Docker image inneholder alle avhengigheter til prosjektet. Følgende prosedyre brukes for å oppdatere image. Dette må gjøres når `requirements.txt` endrer seg.
* `docker build -t morkolai/soitool-ci .`
* `docker login`
* `docker push morkolai/soitool-ci`
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment