first import

This commit is contained in:
Cabillot Julien 2018-05-09 19:57:19 -04:00
commit 0e06d8b45a
2 changed files with 38 additions and 0 deletions

23
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,23 @@
image: "docker:latest"
services:
- "docker:dind"
before_script:
- "docker login -u \"$CI_REGISTRY_USER\" -p \"$CI_REGISTRY_PASSWORD\" $CI_REGISTRY"
build-master:
stage: "build"
script:
- "docker build --pull -t \"$CI_REGISTRY_IMAGE\" ."
- "docker push \"$CI_REGISTRY_IMAGE\""
only:
- "master"
build:
stage: "build"
script:
- "docker build --pull -t \"$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG\" ."
- "docker push \"$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG\""
except:
- "master"

15
Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM "alpine:3.7"
LABEL maintainer="Cabillot Julien <dockerimages@cabillot.eu>"
RUN apk add --no-cache mysql-client && \
adduser -D muser
# Add Tini
#ENV "TINI_VERSION" "v0.16.1"
#ADD "https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini" "/tini"
#RUN chmod +x "/tini"
#ENTRYPOINT ["/tini", "--"]
USER "muser"
ENTRYPOINT [ "/usr/local/bin/mysql" ]