Skip to content

Commit

Permalink
#4 Убрал кастомное создание имени контейнера. ПОправил поиск по имени…
Browse files Browse the repository at this point in the history
… контейнера. Добавил этапов в дженкинсфайле.
  • Loading branch information
Richard committed Sep 15, 2016
1 parent e375c4a commit 93b3b31
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
10 changes: 6 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,18 @@
node {
stage('Checkout') {
checkout scm
}
stage('Build docker containers') {
sh '''
cp parameters.yml ./base/php-bdd/app/config/
cd ./base/php-bdd/
composer install
cd ../../
docker-compose up -d --build
docker exec `docker ps -q -f name=php_bdd_base` php app/console doctrine:database:drop --force --if-exists
docker exec `docker ps -q -f name=php_bdd_base` php app/console doctrine:database:create
docker exec `docker ps -q -f name=php_bdd_base` php app/console doctrine:schema:update --force
docker exec `docker ps -q -f name=php_bdd_base` php app/console doctrine:fixtures:load
docker exec `docker ps -q -f name=*_base_*` php app/console doctrine:database:drop --force --if-exists
docker exec `docker ps -q -f name=*_base_*` php app/console doctrine:database:create
docker exec `docker ps -q -f name=*_base_*` php app/console doctrine:schema:update --force
docker exec `docker ps -q -f name=*_base_*` php app/console doctrine:fixtures:load
'''
}
}
1 change: 0 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ services:
- '3306:3306'
base:
build: ./base
container_name: php_bdd_base
ports:
- '8000:80'
depends_on:
Expand Down

0 comments on commit 93b3b31

Please sign in to comment.