From d4aceca201fd0a2e8f3cdc66565d08ab5a7cd509 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Mon, 30 Apr 2018 22:39:44 +0200 Subject: [PATCH] Introduce basic images with s6 and python2 --- basic.sh | 3 +++ basic/Dockerfile | 6 ++++++ python2.sh | 6 ++++++ python2/Dockerfile | 6 ++++++ 4 files changed, 21 insertions(+) create mode 100644 basic/Dockerfile create mode 100755 python2.sh create mode 100644 python2/Dockerfile diff --git a/basic.sh b/basic.sh index ff3ea59..b68a162 100755 --- a/basic.sh +++ b/basic.sh @@ -57,5 +57,8 @@ cp ${SOURCE_DIR}/etc/init.d/docker /etc/init.d/docker rc-update add docker service docker start +# Create basic image +docker build -t alpine ${SOURCE_DIR} + # Set dummy domain and generate related files spotter-appmgr update-domain spotter.vm 443 diff --git a/basic/Dockerfile b/basic/Dockerfile new file mode 100644 index 0000000..a3689b7 --- /dev/null +++ b/basic/Dockerfile @@ -0,0 +1,6 @@ +FROM alpine:3.7 +MAINTAINER Disassembler + +RUN \ + # Install S6 supervisor + apk --no-cache add s6 diff --git a/python2.sh b/python2.sh new file mode 100755 index 0000000..2dff104 --- /dev/null +++ b/python2.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +SOURCE_DIR=$(realpath $(dirname "${0}"))/python2 + +# Build Docker container +docker build -t python2 ${SOURCE_DIR} diff --git a/python2/Dockerfile b/python2/Dockerfile new file mode 100644 index 0000000..a0b0995 --- /dev/null +++ b/python2/Dockerfile @@ -0,0 +1,6 @@ +FROM alpine +MAINTAINER Disassembler + +RUN \ + # Install Python2 runtime + apk --no-cache add libxml2 libxslt python2