Disabled gitlib runner built for improved container caching
This commit is contained in:
parent
e1da6bacd6
commit
c1cc7151d2
@ -1,46 +0,0 @@
|
|||||||
image: docker:latest
|
|
||||||
|
|
||||||
stages:
|
|
||||||
- test
|
|
||||||
- build
|
|
||||||
|
|
||||||
variables:
|
|
||||||
VERSION: php70
|
|
||||||
DOCKER_IMAGE: leenooks/lamps
|
|
||||||
DOCKER_REGISTRY: registry.leenooks.net
|
|
||||||
DOCKER_HOST: tcp://${DOCKER_REGISTRY}-leenooks-ci-docker:2375
|
|
||||||
|
|
||||||
services:
|
|
||||||
- ${DOCKER_REGISTRY}/leenooks/ci-docker:dind
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- docker info
|
|
||||||
- docker version
|
|
||||||
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN ${DOCKER_REGISTRY}
|
|
||||||
|
|
||||||
test:
|
|
||||||
stage: test
|
|
||||||
script:
|
|
||||||
- cat /etc/hosts
|
|
||||||
- env|sort
|
|
||||||
- docker build -t ${DOCKER_IMAGE}:${VERSION} .
|
|
||||||
- docker images
|
|
||||||
only:
|
|
||||||
- debug
|
|
||||||
|
|
||||||
build:
|
|
||||||
stage: build
|
|
||||||
script:
|
|
||||||
- chmod 600 .my.cnf
|
|
||||||
- chmod 500 init
|
|
||||||
- chmod 644 10-default.conf
|
|
||||||
- docker build -t ${DOCKER_IMAGE}:${VERSION} .
|
|
||||||
- docker tag ${DOCKER_IMAGE}:${VERSION} ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${VERSION}
|
|
||||||
- docker push ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:${VERSION}
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
- php55
|
|
||||||
- php56
|
|
||||||
- php70
|
|
@ -24,6 +24,8 @@ FROM registry.leenooks.net/leenooks/base:7
|
|||||||
|
|
||||||
RUN yum -y install epel-release && yum clean all
|
RUN yum -y install epel-release && yum clean all
|
||||||
|
|
||||||
|
RUN yum -y install tsmpipe && yum clean all
|
||||||
|
|
||||||
RUN yum -y install http://rpms.famillecollet.com/enterprise/remi-release-7.rpm && yum clean all && rm -rf /var/tmp/*
|
RUN yum -y install http://rpms.famillecollet.com/enterprise/remi-release-7.rpm && yum clean all && rm -rf /var/tmp/*
|
||||||
|
|
||||||
# EPEL & Leenooks packages
|
# EPEL & Leenooks packages
|
||||||
@ -63,6 +65,4 @@ COPY init /sbin/
|
|||||||
ENTRYPOINT [ "/sbin/init" ]
|
ENTRYPOINT [ "/sbin/init" ]
|
||||||
CMD [ "start" ]
|
CMD [ "start" ]
|
||||||
|
|
||||||
RUN yum -y install tsmpipe && yum clean all
|
|
||||||
|
|
||||||
RUN useradd -rc "Composer" -m composer -s /sbin/nologin && su composer -s /bin/bash -lc "composer global require laravel/installer && composer require --dev --no-update xethron/migrations-generator:dev-l5 && composer require --dev --no-update way/generators:dev-feature/laravel-five-stable && composer config repositories.repo-name git git@github.com:jamisonvalenta/Laravel-4-Generators.git"
|
RUN useradd -rc "Composer" -m composer -s /sbin/nologin && su composer -s /bin/bash -lc "composer global require laravel/installer && composer require --dev --no-update xethron/migrations-generator:dev-l5 && composer require --dev --no-update way/generators:dev-feature/laravel-five-stable && composer config repositories.repo-name git git@github.com:jamisonvalenta/Laravel-4-Generators.git"
|
||||||
|
Loading…
Reference in New Issue
Block a user