Merge pull request #24 from chuckcharlie:buildtest

Updates and fixes
This commit is contained in:
chuckcharlie
2023-12-11 08:42:20 -07:00
committed by GitHub
3 changed files with 5 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
FROM alpine:3.18
FROM alpine:3.19
# Install the packages we need. Avahi will be included
RUN echo -e "https://dl-cdn.alpinelinux.org/alpine/edge/testing\nhttps://dl-cdn.alpinelinux.org/alpine/edge/main" >> /etc/apk/repositories &&\
@@ -19,12 +19,10 @@ RUN echo -e "https://dl-cdn.alpinelinux.org/alpine/edge/testing\nhttps://dl-cdn.
inotify-tools \
python3 \
python3-dev \
py3-pip \
build-base \
wget \
rsync \
&& pip3 --no-cache-dir install --upgrade pip \
&& pip3 install pycups \
py3-pycups \
&& rm -rf /var/cache/apk/*
# This will use port 631
@@ -44,6 +42,7 @@ CMD ["/root/run_cups.sh"]
# Baked-in config file changes
RUN sed -i 's/Listen localhost:631/Listen 0.0.0.0:631/' /etc/cups/cupsd.conf && \
sed -i 's/Browsing Off/Browsing On/' /etc/cups/cupsd.conf && \
sed -i 's/IdleExitTimeout/#IdleExitTimeout/' /etc/cups/cupsd.conf && \
sed -i 's/<Location \/>/<Location \/>\n Allow All/' /etc/cups/cupsd.conf && \
sed -i 's/<Location \/admin>/<Location \/admin>\n Allow All\n Require user @SYSTEM/' /etc/cups/cupsd.conf && \
sed -i 's/<Location \/admin\/conf>/<Location \/admin\/conf>\n Allow All/' /etc/cups/cupsd.conf && \

View File

@@ -34,6 +34,7 @@ if [ `ls -l /config/cupsd.conf 2>/dev/null | wc -l` -ne 0 ]; then
cp /config/cupsd.conf /etc/cups/cupsd.conf
fi
/usr/sbin/avahi-daemon --daemonize
/root/printer-update.sh &
exec /usr/sbin/cupsd -f

View File

@@ -1 +1 @@
1.1.4
1.1.5