Make use of the runtime images

This commit is contained in:
Disassembler 2018-04-30 22:57:50 +02:00
parent d4aceca201
commit 4be017508b
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499
20 changed files with 31 additions and 53 deletions

View File

@ -2,6 +2,9 @@
SOURCE_DIR=$(realpath $(dirname "${0}"))/ckan-datapusher
# Check prerequisites
docker image ls | grep -q python2 || $(realpath $(dirname "${0}"))/python2.sh
# Build Docker container
docker build -t ckan-datapusher ${SOURCE_DIR}
cp ${SOURCE_DIR}/etc/init.d/ckan-datapusher /etc/init.d/ckan-datapusher

View File

@ -1,14 +1,6 @@
FROM alpine:3.7
FROM python2
MAINTAINER Disassembler <disassembler@dasm.cz>
RUN \
# Install Python2 runtime
apk --no-cache add python2
RUN \
# Install runtime XML dependencies
apk --no-cache add libxml2 libxslt
RUN \
# Install runtime dependencies
apk --no-cache add libffi libressl uwsgi-python

View File

@ -6,6 +6,7 @@ SOURCE_DIR=$(realpath $(dirname "${0}"))/ckan
docker image ls | grep -q ckan-datapusher || $(realpath $(dirname "${0}"))/ckan-datapusher.sh
docker image ls | grep -q postfix || $(realpath $(dirname "${0}"))/postfix.sh
docker image ls | grep -q postgres || $(realpath $(dirname "${0}"))/postgres.sh
docker image ls | grep -q python2 || $(realpath $(dirname "${0}"))/python2.sh
docker image ls | grep -q redis || $(realpath $(dirname "${0}"))/redis.sh
docker image ls | grep -q solr || $(realpath $(dirname "${0}"))/solr.sh
service postgres start

View File

@ -1,19 +1,11 @@
FROM alpine:3.7
FROM python2
MAINTAINER Disassembler <disassembler@dasm.cz>
RUN \
# Install Python2 runtime
apk --no-cache add python2
RUN \
# Install runtime XML dependencies
apk --no-cache add libxml2 libxslt
RUN \
# Add edge/testing repository
echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/testing' >>/etc/apk/repositories \
# Install runtime dependencies
&& apk --no-cache add geos@edge libjpeg-turbo libmagic libpq mailcap py2-pip s6 zlib
&& apk --no-cache add geos@edge libjpeg-turbo libmagic libpq mailcap py2-pip zlib
RUN \
# Install build dependencies

1
cts.sh
View File

@ -4,6 +4,7 @@ SOURCE_DIR=$(realpath $(dirname "${0}"))/cts
# Check prerequisites
docker image ls | grep -q postgres || $(realpath $(dirname "${0}"))/postgres.sh
docker image ls | grep -q python2 || $(realpath $(dirname "${0}"))/python2.sh
service postgres start
# Build Docker container

View File

@ -1,15 +1,11 @@
FROM alpine:3.7
FROM python2
MAINTAINER Disassembler <disassembler@dasm.cz>
RUN \
# Install Python2 runtime
apk --no-cache add python2
RUN \
# Add edge/testing repository
echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/testing' >>/etc/apk/repositories \
# Install runtime dependencies
&& apk --no-cache add geos@edge libpq nginx s6 zlib
&& apk --no-cache add geos@edge libpq nginx zlib
RUN \
# Install build dependencies

View File

@ -3,7 +3,7 @@ MAINTAINER Disassembler <disassembler@dasm.cz>
RUN \
# Install runtime dependencies
apk --no-cache add openjdk8-jre s6 ttf-dejavu xf86-video-dummy xorg-server \
apk --no-cache add openjdk8-jre ttf-dejavu xf86-video-dummy xorg-server \
# Create OS user
&& addgroup -S -g 8018 sms \
&& adduser -S -u 8018 -h /srv/frontlinesms -s /bin/sh -g sms -G sms sms \

View File

@ -1,4 +1,4 @@
FROM alpine:3.7
FROM alpine
MAINTAINER Disassembler <disassembler@dasm.cz>
RUN \

View File

@ -1,4 +1,4 @@
FROM alpine:3.7
FROM alpine
MAINTAINER Disassembler <disassembler@dasm.cz>
RUN \

View File

@ -1,9 +1,9 @@
FROM alpine:3.7
FROM alpine
MAINTAINER Disassembler <disassembler@dasm.cz>
RUN \
# Install PHP runtime
apk --no-cache add nginx php7 php7-ctype php7-fpm php7-gd php7-json php7-mbstring php7-mcrypt php7-opcache php7-session s6
apk --no-cache add nginx php7 php7-ctype php7-fpm php7-gd php7-json php7-mbstring php7-mcrypt php7-opcache php7-session
RUN \
# Install runtime dependencies

View File

@ -1,4 +1,4 @@
FROM alpine:3.7
FROM alpine
MAINTAINER Disassembler <disassembler@dasm.cz>
RUN \
@ -6,7 +6,7 @@ RUN \
addgroup -S -g 3306 mysql \
&& adduser -S -u 3306 -h /var/lib/mysql -s /bin/nologin -g mysql -G mysql mysql \
# Install MariaDB
&& apk --no-cache add mariadb mariadb-client s6 \
&& apk --no-cache add mariadb mariadb-client \
# Create socket directory
&& mkdir /run/mysqld \
&& chown mysql:mysql /run/mysqld

View File

@ -11,7 +11,7 @@ RUN \
RUN \
# Install runtime dependencies
apk --no-cache add libpq s6
apk --no-cache add libpq
RUN \
# Install build dependencies for ODK Build

View File

@ -11,7 +11,7 @@ RUN \
RUN \
# Install runtime dependencies
apk --no-cache add python2 s6
apk --no-cache add python2
RUN \
# Install build dependencies

View File

@ -1,4 +1,4 @@
FROM alpine:3.7
FROM alpine
MAINTAINER Disassembler <disassembler@dasm.cz>
RUN \
@ -12,7 +12,7 @@ RUN \
RUN \
# Install runtime dependencies
apk --no-cache add ffmpeg imagemagick imlib2 libogg libtheora libvpx mkvtoolnix nginx poppler-utils py3-geoip py3-lxml py3-numpy py3-pillow py3-psycopg2 s6 \
apk --no-cache add ffmpeg imagemagick imlib2 libogg libtheora libvpx mkvtoolnix nginx poppler-utils py3-geoip py3-lxml py3-numpy py3-pillow py3-psycopg2 \
&& pip3 install pyinotify youtube-dl
RUN \

View File

@ -1,4 +1,4 @@
FROM alpine:3.7
FROM alpine
MAINTAINER Disassembler <disassembler@dasm.cz>
RUN \
@ -8,7 +8,7 @@ RUN \
# Add edge/main repository
&& echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/main' >>/etc/apk/repositories \
# Install Postfix 3.3
&& apk --no-cache add ca-certificates postfix@edge s6 \
&& apk --no-cache add ca-certificates postfix@edge \
# Build aliases database
&& newaliases \
# Cleanup

View File

@ -1,4 +1,4 @@
FROM alpine:3.7
FROM alpine
MAINTAINER Disassembler <disassembler@dasm.cz>
RUN \

View File

@ -5,6 +5,7 @@ SOURCE_DIR=$(realpath $(dirname "${0}"))/sahana
# Check prerequisites
docker image ls | grep -q postfix || $(realpath $(dirname "${0}"))/postfix.sh
docker image ls | grep -q postgres || $(realpath $(dirname "${0}"))/postgres.sh
docker image ls | grep -q python2 || $(realpath $(dirname "${0}"))/python2.sh
service postgres start
# Build Docker container

View File

@ -1,19 +1,11 @@
FROM alpine:3.7
FROM python2
MAINTAINER Disassembler <disassembler@dasm.cz>
RUN \
# Install Python2 runtime
apk --no-cache add python2
RUN \
# Install runtime XML dependencies
apk --no-cache add libxml2 libxslt
RUN \
# Add edge/testing repository
echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/testing' >>/etc/apk/repositories \
# Install runtime dependencies
&& apk --no-cache add geos@edge nginx py-gdal@edge py2-dateutil py2-lxml py2-numpy py2-pillow py2-psycopg2 py2-requests s6 uwsgi-python
&& apk --no-cache add geos@edge nginx py-gdal@edge py2-dateutil py2-lxml py2-numpy py2-pillow py2-psycopg2 py2-requests uwsgi-python
RUN \
# Install build dependencies

View File

@ -1,9 +1,9 @@
FROM alpine:3.7
FROM alpine
MAINTAINER Disassembler <disassembler@dasm.cz>
RUN \
# Install PHP runtime
apk --no-cache add nginx php7 php7-ctype php7-fpm php7-gd php7-json php7-mbstring php7-mcrypt php7-opcache php7-session s6
apk --no-cache add nginx php7 php7-ctype php7-fpm php7-gd php7-json php7-mbstring php7-mcrypt php7-opcache php7-session
RUN \
# Install runtime dependencies

View File

@ -1,9 +1,9 @@
FROM alpine:3.7
FROM alpine
MAINTAINER Disassembler <disassembler@dasm.cz>
RUN \
# Install PHP runtime
apk --no-cache add nginx php7 php7-ctype php7-fpm php7-gd php7-json php7-mbstring php7-mcrypt php7-opcache php7-session s6
apk --no-cache add nginx php7 php7-ctype php7-fpm php7-gd php7-json php7-mbstring php7-mcrypt php7-opcache php7-session
RUN \
# Install runtime dependencies