Make use of the runtime images
This commit is contained in:
parent
d4aceca201
commit
4be017508b
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
SOURCE_DIR=$(realpath $(dirname "${0}"))/ckan-datapusher
|
SOURCE_DIR=$(realpath $(dirname "${0}"))/ckan-datapusher
|
||||||
|
|
||||||
|
# Check prerequisites
|
||||||
|
docker image ls | grep -q python2 || $(realpath $(dirname "${0}"))/python2.sh
|
||||||
|
|
||||||
# Build Docker container
|
# Build Docker container
|
||||||
docker build -t ckan-datapusher ${SOURCE_DIR}
|
docker build -t ckan-datapusher ${SOURCE_DIR}
|
||||||
cp ${SOURCE_DIR}/etc/init.d/ckan-datapusher /etc/init.d/ckan-datapusher
|
cp ${SOURCE_DIR}/etc/init.d/ckan-datapusher /etc/init.d/ckan-datapusher
|
||||||
|
@ -1,14 +1,6 @@
|
|||||||
FROM alpine:3.7
|
FROM python2
|
||||||
MAINTAINER Disassembler <disassembler@dasm.cz>
|
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 \
|
RUN \
|
||||||
# Install runtime dependencies
|
# Install runtime dependencies
|
||||||
apk --no-cache add libffi libressl uwsgi-python
|
apk --no-cache add libffi libressl uwsgi-python
|
||||||
|
1
ckan.sh
1
ckan.sh
@ -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 ckan-datapusher || $(realpath $(dirname "${0}"))/ckan-datapusher.sh
|
||||||
docker image ls | grep -q postfix || $(realpath $(dirname "${0}"))/postfix.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 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 redis || $(realpath $(dirname "${0}"))/redis.sh
|
||||||
docker image ls | grep -q solr || $(realpath $(dirname "${0}"))/solr.sh
|
docker image ls | grep -q solr || $(realpath $(dirname "${0}"))/solr.sh
|
||||||
service postgres start
|
service postgres start
|
||||||
|
@ -1,19 +1,11 @@
|
|||||||
FROM alpine:3.7
|
FROM python2
|
||||||
MAINTAINER Disassembler <disassembler@dasm.cz>
|
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 \
|
RUN \
|
||||||
# Add edge/testing repository
|
# Add edge/testing repository
|
||||||
echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/testing' >>/etc/apk/repositories \
|
echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/testing' >>/etc/apk/repositories \
|
||||||
# Install runtime dependencies
|
# 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 \
|
RUN \
|
||||||
# Install build dependencies
|
# Install build dependencies
|
||||||
|
1
cts.sh
1
cts.sh
@ -4,6 +4,7 @@ SOURCE_DIR=$(realpath $(dirname "${0}"))/cts
|
|||||||
|
|
||||||
# Check prerequisites
|
# Check prerequisites
|
||||||
docker image ls | grep -q postgres || $(realpath $(dirname "${0}"))/postgres.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
|
service postgres start
|
||||||
|
|
||||||
# Build Docker container
|
# Build Docker container
|
||||||
|
@ -1,15 +1,11 @@
|
|||||||
FROM alpine:3.7
|
FROM python2
|
||||||
MAINTAINER Disassembler <disassembler@dasm.cz>
|
MAINTAINER Disassembler <disassembler@dasm.cz>
|
||||||
|
|
||||||
RUN \
|
|
||||||
# Install Python2 runtime
|
|
||||||
apk --no-cache add python2
|
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
# Add edge/testing repository
|
# Add edge/testing repository
|
||||||
echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/testing' >>/etc/apk/repositories \
|
echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/testing' >>/etc/apk/repositories \
|
||||||
# Install runtime dependencies
|
# Install runtime dependencies
|
||||||
&& apk --no-cache add geos@edge libpq nginx s6 zlib
|
&& apk --no-cache add geos@edge libpq nginx zlib
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
# Install build dependencies
|
# Install build dependencies
|
||||||
|
@ -3,7 +3,7 @@ MAINTAINER Disassembler <disassembler@dasm.cz>
|
|||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
# Install runtime dependencies
|
# 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
|
# Create OS user
|
||||||
&& addgroup -S -g 8018 sms \
|
&& addgroup -S -g 8018 sms \
|
||||||
&& adduser -S -u 8018 -h /srv/frontlinesms -s /bin/sh -g sms -G sms sms \
|
&& adduser -S -u 8018 -h /srv/frontlinesms -s /bin/sh -g sms -G sms sms \
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM alpine:3.7
|
FROM alpine
|
||||||
MAINTAINER Disassembler <disassembler@dasm.cz>
|
MAINTAINER Disassembler <disassembler@dasm.cz>
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM alpine:3.7
|
FROM alpine
|
||||||
MAINTAINER Disassembler <disassembler@dasm.cz>
|
MAINTAINER Disassembler <disassembler@dasm.cz>
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
FROM alpine:3.7
|
FROM alpine
|
||||||
MAINTAINER Disassembler <disassembler@dasm.cz>
|
MAINTAINER Disassembler <disassembler@dasm.cz>
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
# Install PHP runtime
|
# 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 \
|
RUN \
|
||||||
# Install runtime dependencies
|
# Install runtime dependencies
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM alpine:3.7
|
FROM alpine
|
||||||
MAINTAINER Disassembler <disassembler@dasm.cz>
|
MAINTAINER Disassembler <disassembler@dasm.cz>
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
@ -6,7 +6,7 @@ RUN \
|
|||||||
addgroup -S -g 3306 mysql \
|
addgroup -S -g 3306 mysql \
|
||||||
&& adduser -S -u 3306 -h /var/lib/mysql -s /bin/nologin -g mysql -G mysql mysql \
|
&& adduser -S -u 3306 -h /var/lib/mysql -s /bin/nologin -g mysql -G mysql mysql \
|
||||||
# Install MariaDB
|
# Install MariaDB
|
||||||
&& apk --no-cache add mariadb mariadb-client s6 \
|
&& apk --no-cache add mariadb mariadb-client \
|
||||||
# Create socket directory
|
# Create socket directory
|
||||||
&& mkdir /run/mysqld \
|
&& mkdir /run/mysqld \
|
||||||
&& chown mysql:mysql /run/mysqld
|
&& chown mysql:mysql /run/mysqld
|
||||||
|
@ -11,7 +11,7 @@ RUN \
|
|||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
# Install runtime dependencies
|
# Install runtime dependencies
|
||||||
apk --no-cache add libpq s6
|
apk --no-cache add libpq
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
# Install build dependencies for ODK Build
|
# Install build dependencies for ODK Build
|
||||||
|
@ -11,7 +11,7 @@ RUN \
|
|||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
# Install runtime dependencies
|
# Install runtime dependencies
|
||||||
apk --no-cache add python2 s6
|
apk --no-cache add python2
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
# Install build dependencies
|
# Install build dependencies
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM alpine:3.7
|
FROM alpine
|
||||||
MAINTAINER Disassembler <disassembler@dasm.cz>
|
MAINTAINER Disassembler <disassembler@dasm.cz>
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
@ -12,7 +12,7 @@ RUN \
|
|||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
# Install runtime dependencies
|
# 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
|
&& pip3 install pyinotify youtube-dl
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM alpine:3.7
|
FROM alpine
|
||||||
MAINTAINER Disassembler <disassembler@dasm.cz>
|
MAINTAINER Disassembler <disassembler@dasm.cz>
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
@ -8,7 +8,7 @@ RUN \
|
|||||||
# Add edge/main repository
|
# Add edge/main repository
|
||||||
&& echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/main' >>/etc/apk/repositories \
|
&& echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/main' >>/etc/apk/repositories \
|
||||||
# Install Postfix 3.3
|
# Install Postfix 3.3
|
||||||
&& apk --no-cache add ca-certificates postfix@edge s6 \
|
&& apk --no-cache add ca-certificates postfix@edge \
|
||||||
# Build aliases database
|
# Build aliases database
|
||||||
&& newaliases \
|
&& newaliases \
|
||||||
# Cleanup
|
# Cleanup
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
FROM alpine:3.7
|
FROM alpine
|
||||||
MAINTAINER Disassembler <disassembler@dasm.cz>
|
MAINTAINER Disassembler <disassembler@dasm.cz>
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
|
@ -5,6 +5,7 @@ SOURCE_DIR=$(realpath $(dirname "${0}"))/sahana
|
|||||||
# Check prerequisites
|
# Check prerequisites
|
||||||
docker image ls | grep -q postfix || $(realpath $(dirname "${0}"))/postfix.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 postgres || $(realpath $(dirname "${0}"))/postgres.sh
|
||||||
|
docker image ls | grep -q python2 || $(realpath $(dirname "${0}"))/python2.sh
|
||||||
service postgres start
|
service postgres start
|
||||||
|
|
||||||
# Build Docker container
|
# Build Docker container
|
||||||
|
@ -1,19 +1,11 @@
|
|||||||
FROM alpine:3.7
|
FROM python2
|
||||||
MAINTAINER Disassembler <disassembler@dasm.cz>
|
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 \
|
RUN \
|
||||||
# Add edge/testing repository
|
# Add edge/testing repository
|
||||||
echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/testing' >>/etc/apk/repositories \
|
echo '@edge http://dl-cdn.alpinelinux.org/alpine/edge/testing' >>/etc/apk/repositories \
|
||||||
# Install runtime dependencies
|
# 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 \
|
RUN \
|
||||||
# Install build dependencies
|
# Install build dependencies
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
FROM alpine:3.7
|
FROM alpine
|
||||||
MAINTAINER Disassembler <disassembler@dasm.cz>
|
MAINTAINER Disassembler <disassembler@dasm.cz>
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
# Install PHP runtime
|
# 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 \
|
RUN \
|
||||||
# Install runtime dependencies
|
# Install runtime dependencies
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
FROM alpine:3.7
|
FROM alpine
|
||||||
MAINTAINER Disassembler <disassembler@dasm.cz>
|
MAINTAINER Disassembler <disassembler@dasm.cz>
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
# Install PHP runtime
|
# 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 \
|
RUN \
|
||||||
# Install runtime dependencies
|
# Install runtime dependencies
|
||||||
|
Loading…
Reference in New Issue
Block a user