Add local build...

master
May B. 2020-03-12 19:01:26 +01:00
parent a477da44db
commit e142f2fb25
5 changed files with 93 additions and 10 deletions

View File

@ -7,7 +7,7 @@ steps:
settings:
context: postgres
dockerfile: postgres/Dockerfile
repo: http://green.wadza.fr:5000/postgres
repo: green.wadza.fr:5000/postgres
tags: latest
- name: postgres-alpine
@ -15,7 +15,7 @@ steps:
settings:
context: postgres
dockerfile: postgres/Dockerfile.alpine
repo: http://green.wadza.fr:5000/postgres
repo: green.wadza.fr:5000/postgres
tags: alpine
- name: postgres-9-alpine
@ -23,7 +23,7 @@ steps:
settings:
context: postgres
dockerfile: postgres/Dockerfile.9.alpine
repo: http://green.wadza.fr:5000/postgres
repo: green.wadza.fr:5000/postgres
tags: 9-alpine
- name: mariadb
@ -31,7 +31,7 @@ steps:
settings:
context: mariadb
dockerfile: mariadb/DockerFile
repo: http://green.wadza.fr:5000/mariadb
repo: green.wadza.fr:5000/mariadb
tags: latest
- name: registry-2
@ -39,7 +39,7 @@ steps:
settings:
context: registry
dockerfile: registry/Dockerfile.2
repo: http://green.wadza.fr:5000/registry
repo: green.wadza.fr:5000/registry
tags: 2
- name: drone-1
@ -47,7 +47,7 @@ steps:
settings:
context: drone
dockerfile: drone/Dockerfile.1
repo: http://green.wadza.fr:5000/drone
repo: green.wadza.fr:5000/drone
tags: 1
- name: drone-runner-docker-1
@ -55,7 +55,7 @@ steps:
settings:
context: drone
dockerfile: drone/Dockerfile.runner.docker.1
repo: http://green.wadza.fr:5000/drone-runner-docker
repo: green.wadza.fr:5000/drone-runner-docker
tags: 1
- name: bind
@ -63,7 +63,7 @@ steps:
settings:
context: bind
dockerfile: bind/Dockerfile
repo: http://green.wadza.fr:5000/bind
repo: green.wadza.fr:5000/bind
tags: latest
- name: amule
@ -71,7 +71,7 @@ steps:
settings:
context: amule
dockerfile: amule/Dockerfile
repo: http://green.wadza.fr:5000/amule
repo: green.wadza.fr:5000/amule
tags: latest
- name: nextcloud
@ -79,5 +79,13 @@ steps:
settings:
context: nextcloud
dockerfile: nextcloud/Dockerfile
repo: http://green.wadza.fr:5000/nextcloud
repo: green.wadza.fr:5000/nextcloud
tags: latest
- name: gotify
image: plugins/docker
settings:
context: gotify
dockerfile: gotify/Dockerfile
repo: green.wadza.fr:5000/gotify
tags: latest

View File

@ -6,5 +6,12 @@ Local docker images with HEALTHCHECK tag and some other features.
Inspired of https://github.com/docker-library/healthcheck.
## Build
### Drone
Use `.drone.yml` as source
### Compose
Run `docker-compose build`
## Licence
Distributed under the GPL3 license.

59
docker-compose.yml Normal file
View File

@ -0,0 +1,59 @@
version: '2'
services:
postgres:
image: local/postgres
build:
context: postgres
postgres-alpine:
image: local/postgres:alpine
build:
context: postgres
dockerfile: Dockerfile.alpine
postgres-9-alpine:
image: local/postgres:9-alpine
build:
context: postgres
dockerfile: Dockerfile.9.alpine
mariadb:
image: local/mariadb
build:
context: mariadb
registry-2:
image: local/registry:2
build:
context: registry
dockerfile: Dockerfile.2
drone-1:
image: local/drone:1
build:
context: drone
dockerfile: Dockerfile.1
drone-runner-docker-1:
image: local/drone-runner-docker:1
build:
context: drone
dockerfile: Dockerfile.runner.docker.1
bind:
image: local/bind
build:
context: bind
amule:
image: local/amule
build:
context: amule
nextcloud:
image: local/nextcloud
build:
context: nextcloud
gotify:
image: local/gotify
build:
context: gotify

9
gotify/Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM gotify/server
RUN set -ex \
&& apk add --no-cache curl
HEALTHCHECK --interval=5m --timeout=3s \
CMD curl -f $(hostname -i || echo '127.0.0.1')/health || exit 1
COPY config.yml /etc/gotify/config.yml

0
gotify/config.yml Normal file
View File