-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (65 loc) · 2.15 KB
/
docker-compose.yml
File metadata and controls
65 lines (65 loc) · 2.15 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# For development at http://svn/, assuming local scripts build and libs install
# and /etc/hosts file record for 127.0.0.1 svn
# Image builds see https://github.com/Reposoft/docker-svn
# Create repo: docker exec -ti rweb-svn-1 repocreate test -o daemon
# Install libs: http://svn/repos-web/lib/smarty/install.php
# or: docker exec -ti rweb_rweb_1 php /opt/rweb/repos-web/lib/smarty/install.php
# Unit tests:
# docker-compose exec rweb php /opt/rweb/repos-web/lib/simpletest/install.php
# http://svn/repos-web/conf/repos.properties.test.php
version: '2.1'
services:
svn:
image: docker.io/solsson/rweb-httpd:${REPOSOFT_DOCKERSVN_TAG:-latest}
expose:
- "80"
ports:
- "80:80"
command:
- -DADMIN_REST_ACCESS=true
- -DRWEB=fpm
# - -DAUTHN=anon
volumes:
- .:/opt/rweb
rweb:
image: docker.io/solsson/rweb-fpm:${REPOSOFT_DOCKERSVN_TAG:-latest}
expose:
- "9000"
links:
- svn:svn
environment:
REPOS_DOWNLOAD_RULE: "|^/svn/[^/]+/downloadableDirs/.+|"
volumes:
- .:/opt/rweb
rebuild:
build: ./releaser
volumes:
- .:/opt/rweb
command:
- /bin/bash
- -cex
- |
cd /opt/rweb
cd repos-web/scripts/ && ./build-defaultexcludes.bat && cd ../../
releaser:
build: ./releaser
volumes:
- .:/opt/rweb
command:
- /bin/bash
- -cex
- |
cd /opt/rweb
VERSION=${RELEASE_VERSION:?err}
rm -Rf target
mkdir target
cp -r repos-plugins target/
cp -r repos-web target/
sed -i "s|[\x24]Rev[\x24]|$$VERSION|g" target/repos-web/view/repos.xsl
! diff -u repos-web/view/repos.xsl target/repos-web/view/repos.xsl
php target/repos-web/lib/smarty/install.php
php target/repos-web/lib/simpletest/install.php
cd target/repos-plugins/highlight/ && npm install --ignore-scripts && ./node_modules/.bin/webpack --bail && rm -Rf node_modules && cd ../../../
cd target/repos-web/scripts/ && ./build-defaultexcludes.bat && cd ../../../
cd target && tar cfz ../ReposWeb-$$VERSION.tgz repos-web/ repos-plugins/ && cd ..
cd target && zip -qr ../ReposWeb-$$VERSION.zip repos-web/ repos-plugins/ && cd ..