Skip to content

Commit 9810e70

Browse files
committed
Updated Dockerfile to use latest Devuan release (beowulf) as base image. Added syslog support.
- Legacy-Id: 18253
1 parent 28e5e03 commit 9810e70

2 files changed

Lines changed: 28 additions & 19 deletions

File tree

docker/Dockerfile

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# but the database has *not* been loaded with a dump, and supporting files (drafts, charters, etc.)
2020
# have *not* been downloaded.
2121

22-
FROM dyne/devuan:ascii
22+
FROM dyne/devuan:beowulf
2323
LABEL maintainer="Henrik Levkowetz <henrik@levkowetz.com>"
2424

2525
# Default django runserver port
@@ -29,14 +29,23 @@ EXPOSE 8000
2929
ENV DEBIAN_FRONTEND=noninteractive
3030
ENV DEVUAN_FRONTEND=noninteractive
3131

32-
RUN apt-get update
32+
# Uncomment this to be able to install and run apt-show-versions:
33+
RUN rm -v /etc/apt/apt.conf.d/docker-compress
34+
RUN rm -v /var/lib/apt/lists/*lz4
35+
36+
RUN apt-get update --allow-releaseinfo-change
3337
RUN apt-get install -qy apt-transport-https
3438

3539
# Use backports, updates, and security updates
36-
RUN echo "deb http://deb.devuan.org/merged ascii main contrib non-free" > /etc/apt/sources.list
37-
RUN echo "deb http://deb.devuan.org/merged ascii-security main contrib non-free" >> /etc/apt/sources.list
38-
RUN echo "deb http://deb.devuan.org/merged ascii-updates main contrib non-free" >> /etc/apt/sources.list
39-
RUN echo "deb http://deb.devuan.org/merged ascii-backports main contrib non-free" >> /etc/apt/sources.list
40+
RUN echo "deb http://deb.devuan.org/merged beowulf main contrib non-free" > /etc/apt/sources.list
41+
RUN echo "deb http://deb.devuan.org/merged beowulf-security main contrib non-free" >> /etc/apt/sources.list
42+
RUN echo "deb http://deb.devuan.org/merged beowulf-updates main contrib non-free" >> /etc/apt/sources.list
43+
RUN echo "deb http://deb.devuan.org/merged beowulf-backports main contrib non-free" >> /etc/apt/sources.list
44+
45+
# Remove some excludes for the docker image
46+
RUN sed -i -e '/^path-exclude=.*\/groff/d' \
47+
-e '/^path-exclude=.*\/locale/d' \
48+
-e '/^path-exclude=.*\/man/d' /etc/dpkg/dpkg.cfg.d/docker-excludes
4049

4150
# Install needed packages
4251
#
@@ -88,12 +97,8 @@ RUN apt-get install -qy \
8897
patch \
8998
procps \
9099
pv \
91-
python \
92-
python-dev \
93-
python-m2crypto \
94-
python-subversion \
95-
realpath \
96100
rsync \
101+
rsyslog \
97102
subversion \
98103
sudo \
99104
uuid-dev \
@@ -132,19 +137,17 @@ RUN echo "root:root" | chpasswd
132137
# MySQL
133138
VOLUME /var/lib/mysql
134139

135-
# Pip
136-
ENV PYTHONWARNINGS="ignore:a true SSLContext object,ignore:An HTTPS request has been made"
137-
WORKDIR /usr/src
138-
RUN wget -q https://bootstrap.pypa.io/get-pip.py && python get-pip.py && rm get-pip.py
139-
RUN pip install certifi
140-
RUN pip install virtualenv
141-
142140
# idnits and dependencies
143141
ADD https://tools.ietf.org/tools/idnits/idnits /usr/local/bin/
144142
RUN chmod +rx /usr/local/bin/idnits
145143

144+
# Directory for Mac certs
145+
RUN mkdir /etc/certificates
146+
146147
# # Python 3
147-
ENV PYVER=3.6.9
148+
# # Comment in if OS does not provide python3.6, which is the current
149+
# # production version
150+
ENV PYVER=3.6.10
148151
ENV PYREV=3.6
149152

150153
WORKDIR /usr/src

docker/docker-init.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ if ! /etc/init.d/mysql status; then
3838
/etc/init.d/mysql start
3939
fi
4040

41+
echo "Checking if syslog is running ..."
42+
if ! /etc/init.d/rsyslog status; then
43+
echo "Starting syslog ..."
44+
/etc/init.d/rsyslog start
45+
fi
46+
4147
# Give debian-sys-maint access, to avoid complaints later
4248
mysql mysql <<< "GRANT ALL PRIVILEGES on *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY '$(awk '/^password/ {print $3; exit}' /etc/mysql/debian.cnf )' WITH GRANT OPTION; FLUSH PRIVILEGES;"
4349

0 commit comments

Comments
 (0)