2017-10-02 04:02:03 +00:00
|
|
|
language: python
|
|
|
|
python:
|
|
|
|
- "2.7"
|
2017-08-01 16:24:40 +00:00
|
|
|
env:
|
|
|
|
- DOCKER_COMPOSE_VERSION: 1.8.0
|
2017-10-02 04:02:03 +00:00
|
|
|
|
|
|
|
services:
|
|
|
|
- docker
|
|
|
|
|
|
|
|
install:
|
2017-08-01 13:18:28 +00:00
|
|
|
- docker-compose build
|
|
|
|
- docker-compose up -d
|
2017-08-02 12:09:33 +00:00
|
|
|
- docker exec -it -u root frappe bash -c "cd /home/frappe && chown -R frappe:frappe ./*"
|
2017-08-02 11:28:05 +00:00
|
|
|
- docker exec -i frappe bash -c "cd .. && bench init frappe-bench --skip-bench-mkdir --skip-redis-config-generation && cd frappe-bench"
|
|
|
|
- docker exec -i frappe bash -c "mv Procfile_docker Procfile && mv sites/common_site_config_docker.json sites/common_site_config.json"
|
2017-08-02 12:20:09 +00:00
|
|
|
- docker exec -i frappe bash -c "bench new-site site1.local"
|
2017-08-02 11:28:05 +00:00
|
|
|
- docker exec -i frappe bash -c "bench get-app erpnext https://github.com/frappe/erpnext"
|
|
|
|
- docker exec -i frappe bash -c "bench --site site1.local install-app erpnext"
|
|
|
|
- docker exec -i -u root frappe bash -c "echo 127.0.0.1 site1.local >> /etc/hosts"
|
2017-08-02 12:29:39 +00:00
|
|
|
- sudo echo 127.0.0.1 site1.local >> /etc/hosts
|
2017-08-02 11:28:05 +00:00
|
|
|
- docker exec -id frappe bash -c "bench start"
|
2017-10-02 04:02:03 +00:00
|
|
|
|
|
|
|
script:
|
2017-08-01 13:18:28 +00:00
|
|
|
- docker-compose ps | grep -i frappe
|
|
|
|
- docker-compose ps | grep -i redis-cache
|
|
|
|
- docker-compose ps | grep -i redis-queue
|
|
|
|
- docker-compose ps | grep -i redis-socketio
|
|
|
|
- docker-compose ps | grep -i mariadb
|
2017-08-02 11:16:50 +00:00
|
|
|
- python test.py
|