forked from martingabelmann/docker-nextcloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshippable.yml
20 lines (20 loc) · 976 Bytes
/
shippable.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
build:
pre_ci:
- docker build -t test/nextcloud:latest .
- docker rm -f nc || true
- docker run -d --name=nc -p 80:80 -p 443:443 test/nextcloud:latest
ci:
- >
while ! docker logs --tail=5 nc |& grep 'Gratulations'; do
sleep 1 && ((c=c+1)) && ((c!=40))
done;
- docker logs nc
- docker exec -i --user apache nc occ maintenance:install --database mysql --database-name nextcloud_db --database-user nextcloud --database-pass changemepls --admin-user admin --admin-pass changemepls --data-dir "/var/lib/nextcloud/data"
- sleep 3
- docker exec nc wget --no-check-certificate https://localhost || true
- docker exec --user apache nc ./occ --no-ansi status
- docker exec nc cat /var/log/apache2/error.log
- docker exec nc cat /var/log/apache2/ssl_error.log
- docker exec nc cat /var/lib/nextcloud/data/nextcloud.log
- >
docker exec --user apache nc ./occ --no-ansi status |& grep "installed: true"