This commit is contained in:
andreika-git 2022-05-18 08:39:46 +03:00
parent 0e1afc32ef
commit f8d48511a9
4 changed files with 39 additions and 0 deletions

22
Dockerfile Normal file
View File

@ -0,0 +1,22 @@
FROM python:3.8
# needed by xvfb
ENV DISPLAY :99
RUN mkdir /hellen-one
WORKDIR /hellen-one
# Copy all files
COPY . /hellen-one
# Install all system dependencies
RUN apt-get update && apt-get install -y python3-dev gcc g++ libc-dev libffi-dev libcairo2-dev libjpeg-dev zlib1g-dev xvfb libx11-dev
# Install all python dependencies
RUN pip install --no-cache-dir -r bin/requirements.txt
# Make it executable
RUN chmod a+x run_tests.sh
# Run!
CMD [ "/bin/bash", "run_tests.sh" ]

13
run_tests.sh Normal file
View File

@ -0,0 +1,13 @@
# run virtual framebuffer
Xvfb :99 -screen 0 640x480x24 -nolisten tcp &
# run all dependency checks
./bin/check_all.sh
cd tests
# execute step2
./step2_copy_hellen1test.sh
# execute step3
./step3_create_hellen1test.sh

View File

@ -0,0 +1,2 @@
docker build -t hellen-one .

View File

@ -0,0 +1,2 @@
docker run -it --rm hellen-one %1