added check if fetch_locales.rb exists

This commit is contained in:
André Bauer 2017-01-09 15:52:53 +01:00
parent 6d5315aadc
commit 0a0c983cfb
3 changed files with 21 additions and 13 deletions

View File

@ -4,32 +4,36 @@ services:
build: build:
context: . context: .
dockerfile: Dockerfile.elasticsearch dockerfile: Dockerfile.elasticsearch
restart: always
nginx: nginx:
build: build:
context: . context: .
dockerfile: Dockerfile.nginx dockerfile: Dockerfile.nginx
ports:
- "80:80"
links:
- zammad
depends_on: depends_on:
- zammad - zammad
links:
- zammad
ports:
- "80:80"
restart: always
volumes: volumes:
- data-zammad:/home/zammad - data-zammad:/home/zammad
postgresql: postgresql:
build: build:
context: . context: .
dockerfile: Dockerfile.postgresql dockerfile: Dockerfile.postgresql
restart: always
zammad: zammad:
build: build:
context: . context: .
dockerfile: Dockerfile.zammad dockerfile: Dockerfile.zammad
links:
- postgresql
- elasticsearch
depends_on: depends_on:
- postgresql - postgresql
- elasticsearch - elasticsearch
links:
- postgresql
- elasticsearch
restart: always
volumes: volumes:
- data-zammad:/home/zammad - data-zammad:/home/zammad
- data-ruby:/usr/local - data-ruby:/usr/local

View File

@ -2,18 +2,21 @@ version: '2'
services: services:
elasticsearch: elasticsearch:
image: zammad/zammad-docker-compose:elasticsearch image: zammad/zammad-docker-compose:elasticsearch
restart: always
nginx: nginx:
image: zammad/zammad-docker-compose:nginx
ports:
- "80:80"
links:
- zammad
depends_on: depends_on:
- zammad - zammad
image: zammad/zammad-docker-compose:nginx
links:
- zammad
ports:
- "80:80"
restart: always
volumes: volumes:
- data-zammad:/home/zammad - data-zammad:/home/zammad
postgresql: postgresql:
image: zammad/zammad-docker-compose:postgresql image: zammad/zammad-docker-compose:postgresql
restart: always
zammad: zammad:
image: zammad/zammad-docker-compose:zammad image: zammad/zammad-docker-compose:zammad
links: links:
@ -22,6 +25,7 @@ services:
depends_on: depends_on:
- postgresql - postgresql
- elasticsearch - elasticsearch
restart: always
volumes: volumes:
- data-zammad:/home/zammad - data-zammad:/home/zammad
- data-ruby:/usr/local - data-ruby:/usr/local

View File

@ -9,7 +9,7 @@ cp -R /tmp/zammad/.[!.]* ${ZAMMAD_DIR}
cd ${ZAMMAD_DIR} cd ${ZAMMAD_DIR}
rm -rf /tmp/zammad rm -rf /tmp/zammad
bundle install --without test development mysql bundle install --without test development mysql
contrib/packager.io/fetch_locales.rb test -f contrib/packager.io/fetch_locales.rb && contrib/packager.io/fetch_locales.rb
sed -e 's#.*adapter: postgresql# adapter: nulldb#g' -e 's#.*username:.*# username: postgres#g' -e 's#.*password:.*# password: \n host: postgresql\n#g' < config/database.yml.pkgr > config/database.yml sed -e 's#.*adapter: postgresql# adapter: nulldb#g' -e 's#.*username:.*# username: postgres#g' -e 's#.*password:.*# password: \n host: postgresql\n#g' < config/database.yml.pkgr > config/database.yml
bundle exec rake assets:precompile bundle exec rake assets:precompile
sed -e 's#.*adapter: postgresql# adapter: postgresql#g' -e 's#.*username:.*# username: postgres#g' -e 's#.*password:.*# password: \n host: postgresql\n#g' < config/database.yml.pkgr > config/database.yml sed -e 's#.*adapter: postgresql# adapter: postgresql#g' -e 's#.*username:.*# username: postgres#g' -e 's#.*password:.*# password: \n host: postgresql\n#g' < config/database.yml.pkgr > config/database.yml