new file: sidecar/Dockerfile

new file:   sidecar/Jenkinsfile
	new file:   sidecar/start.sh
Added sidecar image to load databases into ramdisk and periodically back
them up
This commit is contained in:
Jonathan Ervine
2020-03-19 09:44:25 +08:00
parent 055d6e1f84
commit cacd9ca4c2
3 changed files with 73 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
# Base on latest (edge) alpine image
FROM harbor.ervine.dev/library/x86_64/alpine/alpine-3.11
MAINTAINER “Jonathan Ervine” <docker@ervine.org>
# Install updates
ENV LANG='en_US.UTF-8' \
LANGUAGE='en_US.UTF-8' \
TERM='xterm' \
VERSION='develop' \
WATCHER_USER='mediaservice' \
WATCHER_GROUP='mediaservice' \
WATCHER_UID='1003' \
WATCHER_GID='1003'
RUN echo http://dl-4.alpinelinux.org/alpine/edge/testing >> /etc/apk/repositories && \
apk -U update && \
apk -U upgrade && \
apk -U add nfs-utils e2fsprogs util-linux&& \
rm -rf /tmp/src && \
rm -rf /var/cache/apk/*
COPY start.sh /usr/local/bin/start.sh
RUN chmod 755 /usr/local/bin/start.sh
CMD [ "/usr/local/bin/start.sh" ]