-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.drone.yml
97 lines (90 loc) · 2.33 KB
/
.drone.yml
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
compose:
zookeeper:
net: host
image: bobrik/zookeeper
environment:
- ZK_CONFIG=tickTime=2000,initLimit=10,syncLimit=5,maxClientCnxns=128,forceSync=no,clientPort=2181
- ZK_ID=1
mesos-master:
net: host
image: mesosphere/mesos-master:0.28.1
environment:
- MESOS_ZK=zk://127.0.0.1:2181/mesos
- MESOS_QUORUM=1
- MESOS_CLUSTER=docker-compose
- MESOS_REGISTRY=in_memory
mesos-slave1:
net: host
pid: host
image: mesosphere/mesos-slave:0.28.1
environment:
- MESOS_MASTER=zk://127.0.0.1:2181/mesos
- MESOS_CONTAINERIZERS=docker,mesos
- MESOS_PORT=5051
- MESOS_RESOURCES=cpus(*):0.5;mem(*):1024;ports(*):[11000-11999]
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup
- /usr/local/bin/docker:/usr/bin/docker
- /var/run/docker.sock:/var/run/docker.sock
privileged: true
mesos-slave2:
net: host
pid: host
image: mesosphere/mesos-slave:0.28.1
environment:
- MESOS_MASTER=zk://127.0.0.1:2181/mesos
- MESOS_CONTAINERIZERS=docker,mesos
- MESOS_PORT=5052
- MESOS_RESOURCES=cpus(*):1.0;mem(*):2048;ports(*):[11000-11999]
volumes:
- /sys/fs/cgroup:/sys/fs/cgroup
- /usr/local/bin/docker:/usr/bin/docker
- /var/run/docker.sock:/var/run/docker.sock
privileged: true
build:
docker:
image: docker:dind
privileged: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
commands:
- docker build -t lensa/satyr:latest .
test:
image: lensa/satyr:latest
net: host
environment:
- MESOS_MASTER=zk://127.0.0.1:2181/mesos
- ZOOKEEPER_HOST=127.0.0.1:2181
commands:
- export LIBPROCESS_IP=`hostname -I | cut -f1 -d" "`
- python setup.py test
publish:
pypi:
repository: https://pypi.python.org/pypi
username: $$PYPI_USERNAME
password: $$PYPI_PASSWORD
distributions:
- sdist
when:
event: [tag]
docker:
username: $$DOCKERHUB_USERNAME
password: $$DOCKERHUB_PASSWORD
email: $$DOCKERHUB_EMAIL
repo: lensa/satyr
file: Dockerfile
tag:
- $$TAG
- latest
when:
event: [tag]
docker:
username: $$DOCKERHUB_USERNAME
password: $$DOCKERHUB_PASSWORD
email: $$DOCKERHUB_EMAIL
repo: lensa/satyr
file: Dockerfile
tag:
- master
when:
branch: master