Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Directory structure

Code Block
├── app
│   └── start.sh
├── build_opoidc-rp.sh
├── config
│   └── etccerts
│       ├── poundrp.inacademia.local.crt          └── pound.cfg
       └── ssl           └── private
│               ├── op└── rp.inacademia.local.crtkey            ├── op.inacademia.local.key
│     └── rp.conf          └── server.pem
├── Dockerfile
└── run_opoidc-rp.sh


The Dockerfile is the basis for the docker to be build. The build_rp.sh and run_rp.sh scripts will build and run the docker image respectively. The run_rp.sh script will test if the image exists, and if not, try to build it before running it.

...

The docker file is completely self contained, so it will build the OP based on the condig and by pulling relevant repositories if needed

FROM debian:stretch
MAINTAINER leifj@sunet.se
RUN apt-get update
RUN apt-get -y dist-upgrade
RUN apt-get install -y pound ssl-cert
RUN apt-get -y clean
ADD app/start.sh /start.sh
COPY config/etc/pound/pound.cfg /etc/pound/pound.cfg
RUN chmod a+rx /start.sh
VOLUME /etc/ssl
ENV HTTP_PORT 80
ENV REWRITE_LOCATION 1
EXPOSE 443
ENTRYPOINT ["/start.sh"]

Now run the run script to build and run our docker based RP

...