forked from ckan/ckan
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
35 lines (27 loc) · 1.13 KB
/
.travis.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
sudo: required
language: python
services:
- docker
cache:
directories:
- ~/docker
before_install:
- if [[ -e ~/docker/postgresql.tar ]]; then docker load -i ~/docker/postgresql.tar; fi
- if [[ -e ~/docker/solr.tar ]]; then docker load -i ~/docker/solr.tar; fi
- if [[ -e ~/docker/redis.tar ]]; then docker load -i ~/docker/redis.tar; fi
- if [[ -e ~/docker/ckan.tar ]]; then docker load -i ~/docker/ckan.tar; fi
- docker build --rm=false -t postgresql ./contrib/docker/postgresql/
- docker build --rm=false -f contrib/docker/solr/Dockerfile -t solr .
- docker pull redis:latest
- docker build --rm=false -t ckan .
- mkdir -p ~/docker; docker save postgresql > ~/docker/postgresql.tar
- mkdir -p ~/docker; docker save solr > ~/docker/solr.tar
- mkdir -p ~/docker; docker save redis:latest > ~/docker/redis.tar
- mkdir -p ~/docker; docker save ckan > ~/docker/ckan.tar
install:
- docker run -d --name db postgresql
- docker run -d --name solr solr
- docker run -d --name redis redis:latest
- docker run -d --name ckan -p 5000:5000 --link db:db --link redis:redis --link solr:solr ckan
script:
- docker ps -a