File tree Expand file tree Collapse file tree 5 files changed +35
-14
lines changed Expand file tree Collapse file tree 5 files changed +35
-14
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ services:
77 expose :
88 - " 80"
99
10- svn_adminrest :
10+ svn-adminrest :
1111 build : ../httpd
1212 environment :
1313 ADMIN_REST_ACCESS : " true"
1414 expose :
1515 - " 80"
1616
17- svn_authz :
17+ svn-authz :
1818 build : ../httpd
1919 environment :
2020 ADMIN_REST_ACCESS : " true"
@@ -59,16 +59,30 @@ services:
5959 links :
6060 - rweb-httpd:svn
6161
62- debian- svnclient :
63- build : ../debian- svnclient
64- image : solsson/debian- svnclient
62+ svnclient :
63+ build : ../svnclient
64+ image : solsson/svnclient
6565
6666 svntest :
6767 depends_on :
68- - debian- svnclient
68+ - svnclient
6969 build : ./svntest
7070 labels :
7171 com.yolean.build-contract : " *"
7272 links :
7373 - svn
74- - svn_adminrest
74+ - svn-adminrest
75+
76+ httpd-curl :
77+ build : ../httpd
78+ labels :
79+ - com.yolean.build-contract
80+ entrypoint : curl
81+ command : [-I, "https://svn.apache.org/repos/asf/subversion/trunk/", "-k"]
82+
83+ httpd-svn-client :
84+ build : ../httpd
85+ labels :
86+ - com.yolean.build-contract
87+ entrypoint : svn
88+ command : [info, "https://svn.apache.org/repos/asf/subversion/trunk/", "--trust-server-cert"]
Original file line number Diff line number Diff line change 11
2- FROM solsson/debian- svnclient
2+ FROM solsson/svnclient
33
44COPY . /test/
55
Original file line number Diff line number Diff line change 44
55[[ -z " $RETRY " ]] && RETRY=" --retry 3 --retry-delay 5"
66
7- curl $RETRY -f http://svn_adminrest /svn/ -I || exit 1
7+ curl $RETRY -f http://svn-adminrest /svn/ -I || exit 1
88
9- curl $RETRY -f http://svn_adminrest /admin/repocreate -d reponame=test1 || exit 1
9+ curl $RETRY -f http://svn-adminrest /admin/repocreate -d reponame=test1 || exit 1
1010
11- curl $RETRY -f http://svn_adminrest /svn/test1/ -I || exit 1
11+ curl $RETRY -f http://svn-adminrest /svn/test1/ -I || exit 1
1212
1313# noaccess=$(curl $RETRY -f http://svn_noadminrest/admin/repocreate -I)
1414# echo $noaccess
Original file line number Diff line number Diff line change @@ -8,9 +8,13 @@ ENV SVN_BZ2_SHA1 0999f5e16b146f824b952a5552826b9cb5c47b13
88
99ENV DEBIAN_FRONTEND noninteractive
1010
11+ # we have the stretch package repo from upstream, so let's use https://packages.debian.org/stretch/ca-certificates
12+ ENV CA_CERTIFICATES_VERSION 20161130
13+
1114RUN depsRuntime=" \
1215 libsqlite3-0 \
1316 curl \
17+ libserf-1-1 \
1418 " \
1519 && depsBuild=" \
1620 ca-certificates \
@@ -20,13 +24,14 @@ RUN depsRuntime=" \
2024 libssl-dev=$OPENSSL_VERSION \
2125 make \
2226 libsqlite3-dev \
23- libz-dev \
27+ zlib1g-dev \
28+ libneon27-dev \
29+ libserf-dev \
2430 " \
2531 set -x \
2632 && apt-get update \
2733 && apt-get install -y --no-install-recommends $depsRuntime \
2834 && apt-get install -y --no-install-recommends $depsBuild \
29- && rm -r /var/lib/apt/lists/* \
3035 && curl -SL "$SVN_BZ2_URL" -o subversion-$SVN_VERSION.tar.bz2 \
3136 && echo "$SVN_BZ2_SHA1 subversion-$SVN_VERSION.tar.bz2" | sha1sum -c - \
3237 && mkdir -p src/svn \
@@ -40,6 +45,8 @@ RUN depsRuntime=" \
4045 && cd ../../ \
4146 && rm -r src/svn \
4247 && apt-get purge -y --auto-remove $depsBuild \
48+ && apt-get install -y ca-certificates=$CA_CERTIFICATES_VERSION \
49+ && rm -r /var/lib/apt/lists/* \
4350 && echo "Include conf/svn/httpd.conf" >> conf/httpd.conf
4451
4552COPY conf conf/svn
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ Include conf/svn/load.conf
66<IfDefine AUTHZ=inrepo >
77 Include conf/svn/load-authz.conf
88</IfDefine >
9- <IfDefine AUTHZ=admin >
9+ <IfDefine AUTHZ=admrepo >
1010 Include conf/svn/load-authz.conf
1111</IfDefine >
1212
You can’t perform that action at this time.
0 commit comments