Skip to content
This repository has been archived by the owner on Mar 7, 2020. It is now read-only.

Commit

Permalink
add dockerhub registry
Browse files Browse the repository at this point in the history
  • Loading branch information
gabiudrescu committed Jan 6, 2020
1 parent 3a38aae commit 1a92dd5
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 12 deletions.
39 changes: 39 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 12 additions & 12 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 1a92dd5

Please sign in to comment.