Skip to content

Commit afbde91

Browse files
authored
Add Dockerfiles for testing (#228)
1 parent 39276fc commit afbde91

File tree

17 files changed

+163
-4
lines changed

17 files changed

+163
-4
lines changed

.dockerignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
AUTHORS
2+
contrib
3+
COPYING
4+
doc
5+
ISSUE_TEMPLATE
6+
test/docker
7+
*.rst

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@ test/*
2222
!test/*.c
2323
!test/*.py
2424
!test/*.mk
25+
!test/docker

test/GNUmakefile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
DIR = $(dir $(abspath $(firstword $(MAKEFILE_LIST))))
1+
DIR = $(dir $(abspath $(firstword $(MAKEFILE_LIST))))
22
ROOTFS = $(DIR)/rootfs
3-
PROOT = $(DIR)/../src/proot
4-
CARE = $(DIR)/../src/care
5-
CC = gcc
3+
SRC_DIR = $(DIR)/../src
4+
PROOT = $(SRC_DIR)/proot
5+
CARE = $(SRC_DIR)/care
6+
CC = gcc
67
PROOT_RAW = $(PROOT)
78

89
CHECK_TESTS = $(patsubst %,check-%, $(wildcard test-*.sh) $(wildcard test-*.c))

test/docker/alpine/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM alpine:latest
2+
3+
COPY . /usr/src/proot
4+
WORKDIR /usr/src/proot
5+

test/docker/alpine/x86_64/Dockerfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
FROM proot-me/proot:alpine
2+
3+
RUN apk update && \
4+
apk upgrade && \
5+
apk add \
6+
bash \
7+
bsd-compat-headers \
8+
coreutils \
9+
git \
10+
grep \
11+
libarchive-dev \
12+
libxslt \
13+
linux-headers \
14+
lzo \
15+
make \
16+
mcookie \
17+
musl-dev \
18+
python3-dev \
19+
py3-docutils \
20+
strace \
21+
swig \
22+
talloc-dev \
23+
uthash-dev
24+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM proot-me/proot:alpine-x86_64
2+
3+
RUN apk add clang clang-analyzer
4+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM proot-me/proot:alpine-x86_64
2+
3+
RUN apk add \
4+
--repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing \
5+
gcc \
6+
gdb \
7+
lcov
8+

test/docker/centos/Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
FROM centos:latest
2+
3+
COPY . /usr/src/proot
4+
WORKDIR /usr/src/proot
5+

test/docker/centos/x86_64/Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM proot-me/proot:centos
2+
3+
RUN yum update -y && \
4+
yum install -y yum-utils && \
5+
yum-config-manager --enable extras && \
6+
yum makecache && \
7+
yum group install -y 'Development Tools' && \
8+
yum install -y \
9+
git \
10+
libarchive-devel \
11+
libtalloc-devel \
12+
python-devel \
13+
sloccount \
14+
strace \
15+
swig \
16+
uthash-devel
17+
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
FROM proot-me/proot:centos-x86_64
2+
3+
RUN yum install -y \
4+
clang \
5+
clang-analyzer
6+

0 commit comments

Comments
 (0)