forked from jgehrcke/github-repo-stats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ci.Dockerfile
40 lines (32 loc) · 1.52 KB
/
ci.Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM jgehrcke/github-repo-stats-base:e87aa5891
# Install GNU parallel
RUN apt-get update && apt-get install -y -q --no-install-recommends \
parallel && rm -rf /var/lib/apt/lists/*
COPY requirements-ci.txt .
RUN pip install -r requirements-ci.txt
# Install bats for running cmdline tests. This is the image used when invoking
# `make bats-test`.
RUN git clone https://github.com/bats-core/bats-core.git && cd bats-core && \
git checkout v1.10.0 && ./install.sh /usr/local
RUN mkdir -p /bats-libraries
RUN git clone https://github.com/bats-core/bats-support /bats-libraries/bats-support
RUN git clone https://github.com/bats-core/bats-assert /bats-libraries/bats-assert
RUN git clone https://github.com/bats-core/bats-file /bats-libraries/bats-file
# check that this file exists
RUN stat /bats-libraries/bats-assert/load.bash
# Expect `bats` to work.
RUN bats --help
# Pre-create /.wdm directory and provide wide access to all unix users
# # 220422-15:33:16.426 INFO: Trying to download new driver from https://chromedriver.storage.googleapis.com/96.0.4664.45/chromedriver_linux64.zip
# Traceback (most recent call last):
# ...
# File "/cwd/pdf.py", line 83, in gen_pdf_bytes
# ChromeDriverManager().install(), options=wd_options
# ...
# File "/usr/local/lib/python3.10/os.py", line 225, in makedirs
# mkdir(name, mode)
# PermissionError: [Errno 13] Permission denied: '/.wdm'
RUN mkdir -p /.wdm && chmod ugo+rwx /.wdm
# This is also where the current checkout will be mounted to.
RUN mkdir -p /checkout
WORKDIR /checkout