first import
This commit is contained in:
commit
0e06d8b45a
23
.gitlab-ci.yml
Normal file
23
.gitlab-ci.yml
Normal 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
15
Dockerfile
Normal 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" ]
|
||||
Loading…
x
Reference in New Issue
Block a user