Initial import

This commit is contained in:
Saúl Ibarra Corretgé
2018-03-14 10:23:13 +01:00
commit 467a149cbb
37 changed files with 1010 additions and 0 deletions

23
base/Dockerfile Normal file
View File

@@ -0,0 +1,23 @@
FROM debian:stretch-slim
ARG JITSI_RELEASE=unstable
ADD https://github.com/just-containers/s6-overlay/releases/download/v1.21.2.2/s6-overlay-amd64.tar.gz /tmp/s6-overlay.tar.gz
ADD https://download.jitsi.org/jitsi-key.gpg.key /tmp/jitsi.key
COPY rootfs /
RUN \
tar xfz /tmp/s6-overlay.tar.gz -C / && \
rm -f /tmp/*.tar.gz && \
apt-dpkg-wrap apt-get update && \
apt-dpkg-wrap apt-get install -y apt-transport-https ca-certificates gnupg && \
apt-key add /tmp/jitsi.key && \
rm -f /tmp/jitsi.key && \
echo "deb https://download.jitsi.org $JITSI_RELEASE/" > /etc/apt/sources.list.d/jitsi.list && \
apt-dpkg-wrap apt-get update && \
apt-dpkg-wrap apt-get dist-upgrade -y && \
apt-dpkg-wrap apt-get autoremove -y --purge gnupg && \
apt-cleanup
ENTRYPOINT [ "/init" ]

14
base/README.md Normal file
View File

@@ -0,0 +1,14 @@
# Debian S6
This is a base Debian image with the [S6 Overlay](https://github.com/just-containers/s6-overlay).
## Usage
See the [S6 Overlay Documentation](https://github.com/just-containers/s6-overlay) for details on how to manage services.
### Parameters
These can be set using environment variables:
* ``TZ``: timezone, defaults to "Europe/Amsterdam".

View File

@@ -0,0 +1,4 @@
Dir::Cache "";
Dir::Cache::archives "";
APT::Install-Recommends "false";
APT::Install-Suggests "false";

View File

View File

View File

@@ -0,0 +1,6 @@
#!/usr/bin/with-contenv sh
if [ $TZ ]; then
[ -f /usr/share/zoneinfo/$TZ ] && cp /usr/share/zoneinfo/$TZ /etc/localtime || echo "WARNING: $TZ is not a valid time zone."
[ -f /usr/share/zoneinfo/$TZ ] && echo "$TZ" > /etc/timezone
fi

View File

View File

View File

@@ -0,0 +1,4 @@
#!/bin/sh
rm -f /*.deb
rm -rf /var/lib/apt/lists/

View File

@@ -0,0 +1,8 @@
#!/bin/sh
export LC_ALL=C
export DEBIAN_FRONTEND=noninteractive
bin=$1
shift
exec "$bin" "$@"