diff --git a/.travis.yml b/.travis.yml index 80eb006..1ff75a2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,6 +22,45 @@ matrix: - TRAVIS_NODE_VERSION="7.5" services: - memcached + - + name: "Docker build" + + sudo: required + + env: + - DOCKER_COMPOSE_VERSION=1.22.0 + - APP_NAME_SUITE="docker" + + services: + - docker + + addons: + apt: + packages: + - docker-ce + + before_install: + # Install custom version of docker-composer + - sudo rm /usr/local/bin/docker-compose + - curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose + - chmod +x docker-compose + - sudo mv docker-compose /usr/local/bin + + # Shutdown vanilla mysql + - sudo service mysql stop + - while sudo lsof -Pi :3306 -sTCP:LISTEN -t; do sleep 1; done + + script: + - docker-compose --version + - docker-compose pull --ignore-pull-failures || true + - docker-compose build --pull + - docker-compose up -d + + - sleep 60 + + - docker-compose logs --no-color --tail=10000 + + - curl http://localhost/ - sudo: false php: 7.2 diff --git a/docker-compose.yml b/docker-compose.yml index 2e484af..3b33858 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,12 +6,12 @@ services: context: . target: application_php_runtime cache_from: - - registry.gitlab.com/gabiudrescu/symfonystarter/php:master - - registry.gitlab.com/gabiudrescu/symfonystarter/nodejs:master - - registry.gitlab.com/gabiudrescu/symfonystarter/nginx:master + - monofony/symfonystarter-php:master + - monofony/symfonystarter-nodejs:master + - monofony/symfonystarter-nginx:master args: - USER_UID=1000 - image: registry.gitlab.com/gabiudrescu/symfonystarter/php:master + image: monofony/symfonystarter-php:master depends_on: - mysql environment: @@ -36,12 +36,12 @@ services: context: . target: application_nodejs cache_from: - - registry.gitlab.com/gabiudrescu/symfonystarter/php:master - - registry.gitlab.com/gabiudrescu/symfonystarter/nodejs:master - - registry.gitlab.com/gabiudrescu/symfonystarter/nginx:master + - monofony/symfonystarter-php:master + - monofony/symfonystarter-nodejs:master + - monofony/symfonystarter-nginx:master args: - USER_UID=1000 - image: registry.gitlab.com/gabiudrescu/symfonystarter/nodejs:master + image: monofony/symfonystarter-nodejs:master depends_on: - php environment: @@ -59,10 +59,10 @@ services: context: . target: application_nginx cache_from: - - registry.gitlab.com/gabiudrescu/symfonystarter/php:master - - registry.gitlab.com/gabiudrescu/symfonystarter/nodejs:master - - registry.gitlab.com/gabiudrescu/symfonystarter/nginx:master - image: registry.gitlab.com/gabiudrescu/symfonystarter/nginx:master + - monofony/symfonystarter-php:master + - monofony/symfonystarter-nodejs:master + - monofony/symfonystarter-nginx:master + image: monofony/symfonystarter-nginx:master depends_on: - php - nodejs