First commit
This commit is contained in:
parent
dc85972115
commit
9b305f20a8
@ -34,7 +34,6 @@ RUN apt-get update \
|
|||||||
hpijs-ppds \
|
hpijs-ppds \
|
||||||
hp-ppd \
|
hp-ppd \
|
||||||
hplip \
|
hplip \
|
||||||
wget \
|
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
@ -6,8 +6,4 @@ if [ ! -f /etc/cups/cupsd.conf ]; then
|
|||||||
cp -rpn /etc/cups-skel/* /etc/cups/
|
cp -rpn /etc/cups-skel/* /etc/cups/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
wget https://gdlp01.c-wss.com/gds/9/0100010919/01/cnijfilter2-6.10-1-deb.tar.gz -O canon.tar.gz && \
|
|
||||||
tar -xvf canon.tar.gz && \
|
|
||||||
cd cnijfilter2-6.10-1-deb/ && ./install.sh
|
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
71
old
Normal file
71
old
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
# Base Image
|
||||||
|
ARG ARCH=amd64
|
||||||
|
FROM $ARCH/debian:bullseye-slim
|
||||||
|
|
||||||
|
# Args
|
||||||
|
ARG VCS_REF
|
||||||
|
ARG BUILD_DATE
|
||||||
|
|
||||||
|
# Environment
|
||||||
|
ENV ADMIN_PASSWORD=admin
|
||||||
|
ENV ADMIN_USERNAME=admin
|
||||||
|
|
||||||
|
# Labels
|
||||||
|
LABEL maintainer="Sthope <hopelessautomations@gmail.com>" \
|
||||||
|
org.label-schema.schema-version="1.0" \
|
||||||
|
org.label-schema.name="sthopeless/cups" \
|
||||||
|
org.label-schema.description="Simple CUPS docker image" \
|
||||||
|
org.label-schema.version="0.1" \
|
||||||
|
org.label-schema.url="https://hub.docker.com/r/sthopeless/cups" \
|
||||||
|
org.label-schema.vcs-url="https://git.sthope.dev/sthope/Docker-cups" \
|
||||||
|
org.label-schema.vcs-ref=$VCS_REF \
|
||||||
|
org.label-schema.build-date=$BUILD_DATE
|
||||||
|
|
||||||
|
# Install Packages
|
||||||
|
RUN apt-get update \
|
||||||
|
&& apt-get install -y \
|
||||||
|
sudo \
|
||||||
|
cups \
|
||||||
|
cups-bsd \
|
||||||
|
cups-filters \
|
||||||
|
foomatic-db-compressed-ppds \
|
||||||
|
printer-driver-all \
|
||||||
|
openprinting-ppds \
|
||||||
|
hpijs-ppds \
|
||||||
|
hp-ppd \
|
||||||
|
hplip \
|
||||||
|
wget \
|
||||||
|
&& apt-get clean \
|
||||||
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Add Print Username
|
||||||
|
RUN adduser --home /home/admin --shell /bin/bash --gecos "admin" --disabled-password admin \
|
||||||
|
&& adduser admin sudo \
|
||||||
|
&& adduser admin lp \
|
||||||
|
&& adduser admin lpadmin
|
||||||
|
|
||||||
|
# Disable Sudo Password Checking
|
||||||
|
RUN echo 'admin ALL=(ALL:ALL) ALL' >> /etc/sudoers
|
||||||
|
|
||||||
|
# Enable Access to CUPS
|
||||||
|
RUN /usr/sbin/cupsd \
|
||||||
|
&& while [ ! -f /var/run/cups/cupsd.pid ]; do sleep 1; done \
|
||||||
|
&& cupsctl --remote-admin --remote-any --share-printers \
|
||||||
|
&& kill $(cat /var/run/cups/cupsd.pid) \
|
||||||
|
&& echo "ServerAlias *" >> /etc/cups/cupsd.conf
|
||||||
|
|
||||||
|
# Copy /etc/cups for skeleton usage
|
||||||
|
RUN cp -rp /etc/cups /etc/cups-skel
|
||||||
|
|
||||||
|
# Entrypoint
|
||||||
|
ADD docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
|
||||||
|
ENTRYPOINT [ "docker-entrypoint.sh" ]
|
||||||
|
|
||||||
|
# Default Command
|
||||||
|
CMD ["cupsd", "-f"]
|
||||||
|
|
||||||
|
# Volumes
|
||||||
|
VOLUME ["/etc/cups"]
|
||||||
|
|
||||||
|
# Ports
|
||||||
|
EXPOSE 631
|
Loading…
x
Reference in New Issue
Block a user