forked from user-cont/colin
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.tests
25 lines (19 loc) · 991 Bytes
/
Dockerfile.tests
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
FROM registry.fedoraproject.org/fedora:29
ENV PYTHONDONTWRITEBYTECODE=yes-please
# atomic in F28 can't mount: can't find the image
RUN dnf install -y make python3-pytest python3-pyxattr python3-pytest-cov \
skopeo \
https://kojipkgs.fedoraproject.org/packages/podman/0.9.1/3.gitaba58d1.fc29/x86_64/podman-0.9.1-3.gitaba58d1.fc29.x86_64.rpm \
https://kojipkgs.fedoraproject.org/packages/containernetworking-plugins/0.7.3/2.fc29/x86_64/containernetworking-plugins-0.7.3-2.fc29.x86_64.rpm \
https://kojipkgs.fedoraproject.org/packages/buildah/1.4/1.dev.git0a7389c.fc29/x86_64/buildah-1.4-1.dev.git0a7389c.fc29.x86_64.rpm \
https://kojipkgs.fedoraproject.org//packages/atomic/1.22.1/27.gitb507039.fc29/x86_64/atomic-1.22.1-27.gitb507039.fc29.x86_64.rpm \
&& dnf clean all
# podman
RUN useradd podm
RUN echo "podm:231072:65536" > /etc/subuid
RUN echo "podm:231072:65536" > /etc/subgid
USER podm
WORKDIR /src
COPY ./tests /tests
COPY . /src
RUN pip3 install --user .