-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.drone.yml
119 lines (112 loc) · 3.05 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
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-slave:
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(*):1.5;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
marathon:
net: host
image: mesosphere/marathon
environment:
- MARATHON_MASTER=zk://localhost:2181/mesos
chronos:
net: host
image: mesosphere/chronos
command: ["/usr/bin/chronos", --http_port, "4400", --master, "zk://localhost:2181/mesos", --zk_hosts, "localhost:2181"]
hdfs:
net: host
image: dockmob/hadoop:2.7.1
command: [-t, "pseudodistributed"]
kafka:
net: host
image: wurstmeister/kafka
environment:
- KAFKA_BROKER_ID=0
- KAFKA_NUM_PARTITIONS=1
- KAFKA_ADVERTISED_HOST_NAME=localhost
- KAFKA_ADVERTISED_PORT=9092
- KAFKA_ZOOKEEPER_CONNECT=127.0.0.1:2181
- KAFKA_LOG_DIRS=/var/log/kafka
# cassandra:
# net: host
# image: cassandra
# environment:
# - CASSANDRA_START_RPC=true
build:
docker:
image: docker:dind
privileged: true
volumes:
- /var/run/docker.sock:/var/run/docker.sock
commands:
- docker build -t lensa/epos:latest .
test:
image: lensa/epos:latest
net: host
environment:
- MESOS_MASTER=zk://127.0.0.1:2181/mesos
- ZOOKEEPER_HOST=localhost:2181
- ZOOKEEPER_PATH=/usr/share/java
- HDFS_HOST=localhost:8020
- CASSANDRA_HOST=localhost:9042
- MARATHON_HOST=localhost:8080
- CHRONOS_HOST=localhost:4400
- KAFKA_HOST=localhost:9092
commands:
- export LIBPROCESS_IP=`hostname -I | cut -f1 -d" "`
- export SPARK_LOCAL_IP=`hostname -I | cut -f1 -d" "`
#- echo 'spark.jars.packages datastax:spark-cassandra-connector:1.6.0-M2-s_2.10' >> $SPARK_HOME/conf/spark-defaults.conf
- 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/epos
file: Dockerfile
tag:
- $$TAG
- latest
when:
event: [tag]
docker:
username: $$DOCKERHUB_USERNAME
password: $$DOCKERHUB_PASSWORD
email: $$DOCKERHUB_EMAIL
repo: lensa/epos
file: Dockerfile
tag:
- master
when:
branch: master