-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathcircle.yml
More file actions
25 lines (23 loc) · 932 Bytes
/
circle.yml
File metadata and controls
25 lines (23 loc) · 932 Bytes
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
machine:
services:
- docker
environment:
PASSWORD: AdminPassword
DOMAIN: test.example.org
ROOT_PASS: MyRootPassword
ATOM_SUPPORT: true
dependencies:
pre:
- docker pull million12/ssh
post:
- docker build -t million12/citadel .
test:
override:
- docker run -d -h $DOMAIN --name citadel --dns 8.8.8.8 -p 80:8080 -p 10022:22 --env="ROOT_PASS=$ROOT_PASS" --env="PASSWORD=$PASSWORD" --env="DOMAIN=$DOMAIN" --env="ATOM_SUPPORT=$ATOM_SUPPORT" million12/citadel
- docker logs -f citadel | tee -a ${CIRCLE_ARTIFACTS}/citadel.log:
background: true
- while true; do if grep "sshd entered RUNNING state" -a ${CIRCLE_ARTIFACTS}/citadel.log; then break; else sleep 1; fi done
# Check Citadel Web interface status
- curl -s -L --head http://127.0.0.1/ | grep "HTTP/1.1 200 OK"
# Check if root password was set correctly
- grep "$ROOT_PASS" ${CIRCLE_ARTIFACTS}/citadel.log