Use common base image.
This commit is contained in:
6
partials/fsg-image/Dockerfile
Normal file
6
partials/fsg-image/Dockerfile
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
FROM debian:stable-slim
|
||||||
|
MAINTAINER Stéphane Gourichon <stephane_sysadmin@gourichon.org>
|
||||||
|
|
||||||
|
RUN echo 'Acquire::http { Proxy "http://host.containers.internal:3142"; };' > /etc/apt/apt.conf.d/01proxy
|
||||||
|
|
||||||
|
RUN export DEBIAN_FRONTEND=noninteractive ; apt-get update && apt-get -y upgrade
|
||||||
7
partials/fsg-image/build.sh
Executable file
7
partials/fsg-image/build.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -xv
|
||||||
|
|
||||||
|
cd -P "$(dirname "$(readlink -f "$0")" )"
|
||||||
|
|
||||||
|
podman build -f Dockerfile -t fsg-base
|
||||||
@@ -1,7 +1,5 @@
|
|||||||
FROM debian:stable-slim
|
FROM fsg-base:latest
|
||||||
MAINTAINER Stéphane Gourichon <stephane_sysadmin@gourichon.org>
|
|
||||||
|
|
||||||
RUN export DEBIAN_FRONTEND=noninteractive ; apt-get update && apt-get -y upgrade
|
|
||||||
RUN export DEBIAN_FRONTEND=noninteractive ; apt-get install --no-install-recommends -y bind9
|
RUN export DEBIAN_FRONTEND=noninteractive ; apt-get install --no-install-recommends -y bind9
|
||||||
|
|
||||||
COPY named.conf.local /etc/bind/
|
COPY named.conf.local /etc/bind/
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ function fail_one()
|
|||||||
RC=$(( RC + 1 ))
|
RC=$(( RC + 1 ))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bash partials/fsg-image/build.sh
|
||||||
|
|
||||||
while IFS="" read -u 3 -r SERVICE_PATH
|
while IFS="" read -u 3 -r SERVICE_PATH
|
||||||
do
|
do
|
||||||
pushd "${SERVICE_PATH%/*}"
|
pushd "${SERVICE_PATH%/*}"
|
||||||
|
|||||||
Reference in New Issue
Block a user