Updated to 4.9.2-fpm
This commit is contained in:
parent
dd62e77524
commit
e3087514ea
@ -7,16 +7,15 @@ stages:
|
||||
variables:
|
||||
VERSION: 4.9.1-fpm
|
||||
CACHETAG: build
|
||||
DOCKER_REGISTRY: registry.leenooks.net
|
||||
DOCKER_HOST: tcp://${DOCKER_REGISTRY}-leenooks-ci-docker:2375
|
||||
DOCKER_HOST: tcp://${CI_REGISTRY}-leenooks-ci-docker:2375
|
||||
|
||||
services:
|
||||
- ${DOCKER_REGISTRY}/leenooks/ci-docker:dind
|
||||
- ${CI_REGISTRY}/leenooks/ci-docker:dind
|
||||
|
||||
before_script:
|
||||
- docker info
|
||||
- docker version
|
||||
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN ${DOCKER_REGISTRY}
|
||||
- echo "$CI_JOB_TOKEN" | docker login -u "$CI_REGISTRY_USER" "$CI_REGISTRY" --password-stdin
|
||||
|
||||
test:
|
||||
stage: test
|
||||
@ -31,6 +30,7 @@ test:
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- if [ -f init ]; then chmod 500 init; fi
|
||||
- docker pull ${CI_REGISTRY_IMAGE}:${CACHETAG} || true
|
||||
- docker build --cache-from ${CI_REGISTRY_IMAGE}:${CACHETAG} -t ${CI_REGISTRY_IMAGE}:${VERSION} -t ${CI_REGISTRY_IMAGE}:${CACHETAG} .
|
||||
- docker push ${CI_REGISTRY_IMAGE}:${VERSION}
|
||||
|
13
Dockerfile
13
Dockerfile
@ -1,14 +1,17 @@
|
||||
# NAME leenooks/wordpress
|
||||
# VERSION 4.9.1-fpm
|
||||
# VERSION 4.9.2-fpm
|
||||
|
||||
FROM wordpress:4.9.1-fpm
|
||||
FROM wordpress:4.9.2-fpm
|
||||
|
||||
RUN apt-get update && apt-get install -y openssh-server && useradd -c "Hosting Admin User" -u 1000 -g users -G www-data -d /var/www/html -M lamp
|
||||
EXPOSE 9000/tcp 22/tcp
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y openssh-server \
|
||||
&& useradd -c "Hosting Admin User" -u 1000 -g users -G www-data -d /var/www/html -M lamp
|
||||
|
||||
COPY sshd_config.patch /tmp
|
||||
RUN (cd / && patch -p0 ) < /tmp/sshd_config.patch && rm /tmp/sshd_config.patch
|
||||
|
||||
EXPOSE 9000/tcp 22/tcp
|
||||
|
||||
COPY start /usr/local/sbin
|
||||
ENTRYPOINT [ "/usr/local/sbin/start" ]
|
||||
CMD ["php-fpm"]
|
||||
CMD [ "php-fpm" ]
|
||||
|
Loading…
Reference in New Issue
Block a user