From 655160ddb2ec87a61d5614b00100c4b40d461169 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 26 Sep 2023 09:26:50 -0400 Subject: [PATCH] Some Docker cleanup/clarifications. --- DOCKER.md | 11 +++++++++-- Dockerfile | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/DOCKER.md b/DOCKER.md index 3e6111e2..54c1763b 100644 --- a/DOCKER.md +++ b/DOCKER.md @@ -15,11 +15,18 @@ containing this docker file run: docker build -t ippsample . You now can run the container with a bash terminal and go to the -`/root/ippsample` folder manually. +`/root/ippsample` folder manually: docker run -it ippsample bash -You can also run one of the IPP binaries instead of the bash terminal. +Similarly, you can run the ippsample test suite with: + + docker run -it ippsample make test + +You can also run one of the IPP binaries instead of the bash terminal, for +example: + + docker run -it ippsample ipptool -tv ipp://example.local/ipp/print get-printer-attributes.test Building and Running with Docker Compose diff --git a/Dockerfile b/Dockerfile index c4eff54d..a4ae953c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,4 +17,4 @@ ENTRYPOINT ["/usr/bin/entrypoint.sh"] # Copy source files to image COPY . /root/ippsample/ WORKDIR /root/ippsample -RUN ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var; test -f server/ippserver && make clean; make; make install +RUN ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var; test -f server/ippserver && make clean; make && make install