]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix docker builds/compose (Issue #1021)
authorMichael R Sweet <msweet@msweet.org>
Tue, 17 Sep 2024 23:09:44 +0000 (19:09 -0400)
committerMichael R Sweet <msweet@msweet.org>
Tue, 17 Sep 2024 23:09:44 +0000 (19:09 -0400)
DOCKER.md
Dockerfile
docker-compose.yaml

index fce831d20f227c2c2ff4328663f8d965e76f20a2..d967052c6f691904db4d8c5a84d73c4f0e01c7af 100644 (file)
--- a/DOCKER.md
+++ b/DOCKER.md
@@ -1,28 +1,39 @@
 Creating an OpenPrinting CUPS Docker Image
 ==========================================
 
+
 Prerequisites
 -------------
 
 - Install Docker on your system
 
 
-Building and Running
---------------------
+Building
+--------
 
-To build and run CUPS using Docker, follow these steps:
+To build the CUPS Docker image, follow these steps:
 
 1. Clone this repository to your local machine.
 
 2. Navigate to the root directory of the cloned repository.
 
-3. Run the following command to start the Docker containers in the background:
+3. Run the following command to build the Docker image:
+
+   ```
+   docker build .
+   ```
+
+
+Running
+-------
+
+1. To create and run a container with the CUPS image:
 
    ```
    docker-compose up -d
    ```
 
-4. To start interactive terminal in container
+2. To start an interactive terminal in the container
 
     ```
     docker exec -it cups /bin/bash
index 93d37e1428137add2bd5d21213f0fffb24a7a313..0440e56a88f9d22923435303c14995b88f4efcc8 100644 (file)
@@ -14,12 +14,12 @@ RUN apt-get install -y autoconf build-essential \
     avahi-daemon  libavahi-client-dev \
     libssl-dev libkrb5-dev libnss-mdns libpam-dev \
     libsystemd-dev libusb-1.0-0-dev zlib1g-dev \
-    sudo
+    openssl sudo
 
 # Copy the current directory contents into the container's working directory
 COPY . /root/cups
 WORKDIR /root/cups
-RUN ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var && make && make install
+RUN ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var && make clean && make && make install
 
 # Expose port 631 for CUPS web interface
 EXPOSE 631
index e6edc386b04cda60d8064207cfd99983d2e3c442..bb604846dc55ff0ad6845d33f52d608db04bc131 100644 (file)
@@ -21,11 +21,6 @@ services:
         # Grant sudo privileges to the user 'admin'
         echo 'admin ALL=(ALL:ALL) ALL' >> /etc/sudoers
 
-        # build CUPS
-        ./configure
-        make
-        #make install
-
         # Start the CUPS daemon for remote access
         /usr/sbin/cupsd \
         && while [ ! -f /var/run/cups/cupsd.pid ]; do sleep 1; done \