Skip to content

Commit

Permalink
SYS-318 release 18.06 version number refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
instantlinux committed Jun 5, 2018
1 parent 45d53c8 commit 9325df1
Show file tree
Hide file tree
Showing 35 changed files with 150 additions and 20 deletions.
4 changes: 3 additions & 1 deletion images/dhcpd-dns-pxe/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url=https://github.com/instantlinux/docker-tools

ARG DHCP_VERSION=4.3.5-r0

ENV DHCP_BOOT=pxelinux.0 \
DHCP_ENABLE=yes \
DHCP_LEASE_PATH=/var/lib/misc \
Expand All @@ -32,7 +34,7 @@ ENV DHCP_BOOT=pxelinux.0 \
TFTP_SERVER=self \
TZ=UTC

RUN apk add --no-cache --update dhcp dnsmasq
RUN apk add --no-cache --update dhcp=$DHCP_VERSION dnsmasq

EXPOSE 53/udp 67/udp 69/udp
VOLUME $DHCP_LEASE_PATH $TFTP_ROOT /etc/dhcpd.d/local /etc/dnsmasq.d/local
Expand Down
4 changes: 4 additions & 0 deletions images/dhcpd-dns-pxe/hooks/post_push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
TAG=$(grep "ARG .*_VERSION" Dockerfile | cut -d= -f 2)
docker tag $IMAGE_NAME $DOCKER_REPO:$TAG
docker push $DOCKER_REPO:$TAG
4 changes: 3 additions & 1 deletion images/dovecot/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url=https://github.com/instantlinux/docker-tools

ARG DOVECOT_VERSION=2.2.34-r0
ENV LDAP_PASSWD_SECRET=ldap-ro-password

RUN apk add --no-cache dovecot dovecot-ldap procmail
RUN apk add --no-cache dovecot=$DOVECOT_VERSION dovecot-ldap=$DOVECOT_VERSION \
procmail
EXPOSE 143 993
VOLUME /etc/dovecot/conf.local /home /var/spool/mail

Expand Down
2 changes: 1 addition & 1 deletion images/dovecot/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ services:
deploy:
placement:
constraints:
- node.labels.swarm-sync-member == true
- node.labels.mail-sync-member == true
logging:
driver: json-file
options:
Expand Down
3 changes: 3 additions & 0 deletions images/dovecot/entrypoint-dovecot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ if [ -s $ETC/conf.local/dovecot-ldap.conf ]; then
sed -i -e "s/PASSWORD/`cat /run/secrets/$LDAP_PASSWD_SECRET`/" \
$ETC/dovecot-ldap.conf
fi
if [ -f /etc/postfix/transport ]; then
postmap /etc/postfix/transport
fi
mkdir -p -m 700 /etc/ssl/private
cp /run/secrets/*key.pem /etc/ssl/private

Expand Down
4 changes: 4 additions & 0 deletions images/dovecot/hooks/post_push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
TAG=$(grep "ARG .*_VERSION" Dockerfile | cut -d= -f 2)
docker tag $IMAGE_NAME $DOCKER_REPO:$TAG
docker push $DOCKER_REPO:$TAG
4 changes: 4 additions & 0 deletions images/duplicati/hooks/post_push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
TAG=$(grep "ARG DUPLICATI_VERSION" Dockerfile | cut -d= -f 2)
docker tag $IMAGE_NAME $DOCKER_REPO:$TAG
docker push $DOCKER_REPO:$TAG
3 changes: 2 additions & 1 deletion images/ez-ipupdate/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url=https://github.com/instantlinux/docker-tools

ARG EZ_VERSION=3.0.10-r9
ENV HOST=must_be_set \
INTERVAL=3600 \
IPLOOKUP_URI=http://ipinfo.io/ip \
SERVICE_TYPE=easydns \
USER_SECRET=ez-ipupdate-user

RUN apk add --update curl ez-ipupdate && \
RUN apk add --update curl ez-ipupdate=$EZ_VERSION && \
rm -fr /var/log/* /var/cache/apk/*

CMD sh -c 'echo "user=`cat /run/secrets/$USER_SECRET`" > /run/ez.conf && \
Expand Down
4 changes: 4 additions & 0 deletions images/ez-ipupdate/hooks/post_push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
TAG=$(grep "ARG .*_VERSION" Dockerfile | cut -d= -f 2)
docker tag $IMAGE_NAME $DOCKER_REPO:$TAG
docker push $DOCKER_REPO:$TAG
5 changes: 3 additions & 2 deletions images/git-dump/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ ENV API_TOKEN_SECRET= \
USERNAME=git-dump \
TZ=UTC

ARG UID=212
ARG GIT_VERSION=2.15.0-r1
ARG GROUP=care
ARG GID=505
ARG UID=212

COPY *.sh /usr/local/bin/
RUN apk add --no-cache --update curl dcron git jq openssh-client && \
RUN apk add --no-cache --update curl dcron git=$GIT_VERSION jq openssh-client && \
addgroup -g $GID $GROUP && \
adduser -u $UID -s /bin/sh -G $GROUP -g "git backup" -D $USERNAME && \
chmod o+rx,g+rx /usr/local/bin/*.sh
Expand Down
2 changes: 1 addition & 1 deletion images/git-dump/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ networks:
secrets:
git-dump_sshkey:
external: true
git.${MYDOMAIN}-api-token:
git.instantlinux.net-api-token:
external: true
4 changes: 4 additions & 0 deletions images/git-dump/hooks/post_push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
TAG=$(grep "ARG .*_VERSION" Dockerfile | cut -d= -f 2)
docker tag $IMAGE_NAME $DOCKER_REPO:$TAG
docker push $DOCKER_REPO:$TAG
3 changes: 2 additions & 1 deletion images/git-pull/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url=https://github.com/instantlinux/docker-tools

ARG GIT_VERSION=2.15.0-r1
ENV DEST=. \
GIT_COMMIT=master \
GIT_HOST=github.com \
GIT_REPO=uri \
INTERVAL=0

RUN apk add --no-cache --update git openssh-client
RUN apk add --no-cache --update git=$GIT_VERSION openssh-client

VOLUME /git

Expand Down
4 changes: 4 additions & 0 deletions images/jenkins-master/hooks/post_push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
TAG=$(grep "ARG _JENKINS_VERSION" Dockerfile | cut -d= -f 2)
docker tag $IMAGE_NAME $DOCKER_REPO:$TAG
docker push $DOCKER_REPO:$TAG
4 changes: 4 additions & 0 deletions images/mythtv-backend/hooks/post_push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
TAG=$(grep "ARG .*_VERSION" Dockerfile | cut -d= -f 2)
docker tag $IMAGE_NAME $DOCKER_REPO:$TAG
docker push $DOCKER_REPO:$TAG
8 changes: 6 additions & 2 deletions images/nut-upsd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url=https://github.com/instantlinux/docker-tools

ARG NUT_VERSION=2.7.4-r5
ENV API_USER=upsmon \
DESCRIPTION=UPS \
DRIVER=usbhid-ups \
Expand All @@ -19,9 +20,12 @@ ENV API_USER=upsmon \
SERVER=master \
USER=nut

RUN echo '@testing http://nl.alpinelinux.org/alpine/edge/testing' \
RUN echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/main' \
>>/etc/apk/repositories && \
apk add --update nut@testing
echo '@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing' \
>>/etc/apk/repositories && \
apk add --update nut@testing=$NUT_VERSION \
libressl2.7-libcrypto@edge libressl2.7-libssl@edge

EXPOSE 3493
COPY entrypoint.sh /usr/local/bin/
Expand Down
4 changes: 4 additions & 0 deletions images/nut-upsd/hooks/post_push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
TAG=$(grep "ARG .*_VERSION" Dockerfile | cut -d= -f 2)
docker tag $IMAGE_NAME $DOCKER_REPO:$TAG
docker push $DOCKER_REPO:$TAG
4 changes: 4 additions & 0 deletions images/open-xchange-appsuite/hooks/post_push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
TAG=$(grep "ARG .*_VERSION" Dockerfile | cut -d= -f 2)
docker tag $IMAGE_NAME $DOCKER_REPO:$TAG
docker push $DOCKER_REPO:$TAG
3 changes: 2 additions & 1 deletion images/postfix/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url=https://github.com/instantlinux/docker-tools

ARG POSTFIX_VERSION=3.2.4-r1
ENV SASL_PASSWD_SECRET=postfix-sasl-passwd \
TZ=US/Pacific

RUN apk add --no-cache postfix rsyslog spamassassin-client
RUN apk add --no-cache postfix=$POSTFIX_VERSION rsyslog spamassassin-client

EXPOSE 25 3525

Expand Down
4 changes: 4 additions & 0 deletions images/postfix/hooks/post_push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
TAG=$(grep "ARG .*_VERSION" Dockerfile | cut -d= -f 2)
docker tag $IMAGE_NAME $DOCKER_REPO:$TAG
docker push $DOCKER_REPO:$TAG
7 changes: 5 additions & 2 deletions images/proftpd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url=https://github.com/instantlinux/docker-tools

ARG PROFTPD_VERSION=1.3.6-r5
ENV ALLOW_OVERWRITE=on \
ANONYMOUS_DISABLE=off \
ANON_UPLOAD_ENABLE=DenyAll \
Expand All @@ -25,9 +26,11 @@ ENV ALLOW_OVERWRITE=on \
TZ=UTC \
WRITE_ENABLE=AllowAll

RUN echo '@testing http://nl.alpinelinux.org/alpine/edge/testing' \
RUN echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/main' \
>>/etc/apk/repositories && \
apk add --update proftpd@testing tzdata
echo '@testing http://dl-cdn.alpinelinux.org/alpine/edge/testing' \
>>/etc/apk/repositories && \
apk add --update libressl2.7-libcrypto@edge proftpd@testing=$PROFTPD_VERSION tzdata
COPY proftpd.conf.j2 /etc/proftpd/proftpd.conf

VOLUME /etc/proftpd/conf.d /etc/proftpd/modules.d /var/lib/ftp
Expand Down
4 changes: 4 additions & 0 deletions images/proftpd/hooks/post_push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
TAG=$(grep "ARG .*_VERSION" Dockerfile | cut -d= -f 2)
docker tag $IMAGE_NAME $DOCKER_REPO:$TAG
docker push $DOCKER_REPO:$TAG
4 changes: 3 additions & 1 deletion images/rsyslogd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url=https://github.com/instantlinux/docker-tools

ARG RSYSLOG_VERSION=8.31.0-r0
ENV TZ=US/Pacific
RUN apk add --update gzip logrotate rsyslog rsyslog-mysql tar xz && \
RUN apk add --update gzip logrotate rsyslog=$RSYSLOG_VERSION \
rsyslog-mysql=$RSYSLOG_VERSION tar xz && \
rm -fr /var/log/* /var/cache/apk/*

VOLUME /var/log /etc/logrotate.d /etc/rsyslog.d
Expand Down
4 changes: 4 additions & 0 deletions images/rsyslogd/hooks/post_push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
TAG=$(grep "ARG .*_VERSION" Dockerfile | cut -d= -f 2)
docker tag $IMAGE_NAME $DOCKER_REPO:$TAG
docker push $DOCKER_REPO:$TAG
3 changes: 2 additions & 1 deletion images/samba-dc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ ENV ADMIN_PASSWORD_SECRET=samba-admin-password \

ARG BIND9_VER=9.11.2
ARG BIND9_SHA=7f46ad8620f7c3b0ac375d7a5211b15677708fda84ce25d7aeb7222fe2e3c77a
ARG SAMBA_VERSION=4.7.6-r0

RUN apk add --update --no-cache krb5 ldb-tools samba-dc tdb \
RUN apk add --update --no-cache krb5 ldb-tools samba-dc=$SAMBA_VERSION tdb \
libxml2 libcrypto1.0 && \

# The bind-tools package on Alpine omits gssapi, so build it here.
Expand Down
4 changes: 4 additions & 0 deletions images/samba-dc/hooks/post_push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
TAG=$(grep "ARG .*_VERSION" Dockerfile | cut -d= -f 2)
docker tag $IMAGE_NAME $DOCKER_REPO:$TAG
docker push $DOCKER_REPO:$TAG
3 changes: 2 additions & 1 deletion images/samba/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url=https://github.com/instantlinux/docker-tools

ARG SAMBA_VERSION=4.7.6-r0
ENV DOMAIN_LOGONS=no \
LOGON_DRIVE=H \
NETBIOS_NAME=samba \
SERVER_STRING="Samba Server" \
TZ=UTC \
WORKGROUP=WORKGROUP

RUN apk add --update --no-cache samba shadow
RUN apk add --update --no-cache samba=$SAMBA_VERSION shadow

VOLUME /etc/samba/conf.d /var/log/samba
EXPOSE 137-138/udp 139 445
Expand Down
4 changes: 4 additions & 0 deletions images/samba/hooks/post_push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
TAG=$(grep "ARG .*_VERSION" Dockerfile | cut -d= -f 2)
docker tag $IMAGE_NAME $DOCKER_REPO:$TAG
docker push $DOCKER_REPO:$TAG
2 changes: 2 additions & 0 deletions images/swarm-sync/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ $(HOME)/.docker/$(KEY_NAME).pub.env:
label_nodes:
@docker node update --label-add swarm-sync=primary $(PRIMARY)
@docker node update --label-add swarm-sync-member=true $(PRIMARY)
@docker node update --label-add mail-sync-member=true $(PRIMARY)
@docker node update --label-add swarm-sync=peer $(PEER)
@docker node update --label-add swarm-sync-member=true $(PEER)
@docker node update --label-add mail-sync-member=true $(PRIMARY)
@echo "Nodes labeled, use node.labels.swarm-sync-member == true"

nagios_nrpe:
Expand Down
2 changes: 1 addition & 1 deletion images/swarm-sync/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
image: ${REGISTRY_URI:-instantlinux}/swarm-sync:${VERSION_SWARMSYNC:-latest}
environment:
SYNC_INTERVAL: "2"
TZ: ${TZ:-GMT]
TZ: ${TZ:-UTC}
volumes:
- logs:/var/log/unison
- syncarchive:/root/.unison
Expand Down
3 changes: 2 additions & 1 deletion images/vsftpd/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url=https://github.com/instantlinux/docker-tools

ARG VSFTPD_VERSION=3.0.3-r4
ENV ANONYMOUS_ENABLE=YES \
ANON_MKDIR_WRITE_ENABLE=NO \
ANON_UPLOAD_ENABLE=NO \
Expand All @@ -24,7 +25,7 @@ ENV ANONYMOUS_ENABLE=YES \
VSFTPD_LOG_FILE=/dev/stdout \
WRITE_ENABLE=YES

RUN apk add --update --no-cache tzdata vsftpd && \
RUN apk add --update --no-cache tzdata vsftpd=$VSFTPD_VERSION && \
passwd -l root

VOLUME /etc/vsftpd.d /var/lib/ftp
Expand Down
4 changes: 4 additions & 0 deletions images/vsftpd/hooks/post_push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
TAG=$(grep "ARG .*_VERSION" Dockerfile | cut -d= -f 2)
docker tag $IMAGE_NAME $DOCKER_REPO:$TAG
docker push $DOCKER_REPO:$TAG
3 changes: 2 additions & 1 deletion stacks/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ STACKS = $(basename $(wildcard *.yml))
DEPLOY = $(STACKS:%=.deploy/%)

db00: CLUSTER_NAME = db00
db02: CLUSTER_NAME = db02

default: $(DEPLOY)

Expand All @@ -21,6 +22,7 @@ cloud: .deploy/cloud
crashplan: .deploy/crashplan
davite: .deploy/davite
db00: .deploy/db00
db02: .deploy/db02
docs: .deploy/docs
dovecot: .deploy/dovecot
dropbox: .deploy/dropbox
Expand Down Expand Up @@ -53,7 +55,6 @@ www00: .deploy/www00
wwwext: .deploy/wwwext
wx-nginx: .deploy/wx-nginx
wxcam-upload: .deploy/wxcam-upload
vsftpd: .deploy/vsftpd

net_create::
docker network create dbcluster --driver overlay $(LABELS)
Expand Down
2 changes: 1 addition & 1 deletion stacks/db00.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ services:
restart_policy:
condition: any
delay: 20s
max_attempts: 20
max_attempts: 30

volumes:
data:
Expand Down
44 changes: 44 additions & 0 deletions stacks/db02.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
version: "3.2"

services:
peer:
hostname: "{{.Service.Name}}-{{.Task.Slot}}"
image: ${REGISTRY_URI:-instantlinux}/mariadb-galera:${VERSION_MARIADB:-latest}
environment:
CLUSTER_NAME: ${CLUSTER_NAME:-cluster01}
DISCOVERY_SERVICE: ${ETCD_HOST:-etcd}:2379
CLUSTER_SIZE: 3
ports:
- target: 3306
published: 18306
protocol: tcp
mode: host
volumes:
- data:/var/lib/mysql
- logs:/var/log/mysql
- ${ADMIN_PATH:-/opt}/mariadb/etc/:/etc/mysql/my.cnf.d:ro
secrets:
- mysql-root-password
deploy:
mode: global
labels:
- ${LABEL:-service_type=mariadb}
restart_policy:
condition: any
delay: 20s
max_attempts: 20

volumes:
data:
labels:
- ${LABEL:-service_type=mariadb}
logs:
labels:
- ${LABEL:-service_type=mariadb}
db_etc:
external: true
networks:
default:
secrets:
mysql-root-password:
external: true

0 comments on commit 9325df1

Please sign in to comment.