From 8e939eb491565c870e492642a3c0a261bf72eccc Mon Sep 17 00:00:00 2001 From: dannyrb Date: Mon, 6 May 2019 14:11:40 -0400 Subject: [PATCH] Revised dockerfile notes --- docker/OpenResty-Orthanc-Keycloak/README.md | 2 ++ .../docker-compose.yml | 1 - docker/OpenResty-Orthanc-Keycloak/dockerfile | 25 ++++++++++++++----- 3 files changed, 21 insertions(+), 7 deletions(-) diff --git a/docker/OpenResty-Orthanc-Keycloak/README.md b/docker/OpenResty-Orthanc-Keycloak/README.md index 438337d68..cef3f57db 100644 --- a/docker/OpenResty-Orthanc-Keycloak/README.md +++ b/docker/OpenResty-Orthanc-Keycloak/README.md @@ -64,6 +64,8 @@ Interact w/ running container: `docker exec -it CONTAINER_NAME bash` +To delete containers not in use: `docker prune` + ## Resources - http://www.staticshin.com/programming/definitely-an-open-resty-guide/#access_by_lua diff --git a/docker/OpenResty-Orthanc-Keycloak/docker-compose.yml b/docker/OpenResty-Orthanc-Keycloak/docker-compose.yml index b0a2fa274..f3be8368d 100644 --- a/docker/OpenResty-Orthanc-Keycloak/docker-compose.yml +++ b/docker/OpenResty-Orthanc-Keycloak/docker-compose.yml @@ -12,7 +12,6 @@ services: # Project root context: ./../../ dockerfile: ./docker/OpenResty-Orthanc-Keycloak/dockerfile - # image: authproxy:latest # # image: webapp:latest diff --git a/docker/OpenResty-Orthanc-Keycloak/dockerfile b/docker/OpenResty-Orthanc-Keycloak/dockerfile index 4b4edcfcb..dc93f1445 100644 --- a/docker/OpenResty-Orthanc-Keycloak/dockerfile +++ b/docker/OpenResty-Orthanc-Keycloak/dockerfile @@ -1,10 +1,24 @@ -# Build docker container using -# `docker build -t authproxy .` +# docker-compose +# -------------- +# This dockerfile is used by the `docker-compose.yml` adjacent file. When +# running `docker-compose build`, this dockerfile helps build the "webapp" image. +# All paths are relative to the `context`, which is the project root directory. # -# This will create a container named `authproxy` -# that can be run with an Nginx configuration +# docker build +# -------------- +# If you would like to use this dockerfile to build and tag an image, make sure +# you set the context to the project's root directory: +# https://docs.docker.com/engine/reference/commandline/build/ # -# OpenResty is functionally identical to Nginx with the addition of Lua out of +# +# SUMMARY +# -------------- +# This dockerfile has two stages: +# +# 1. Building the React application for production +# 2. Setting up our Nginx (OpenResty*) image w/ step one's output +# +# * OpenResty is functionally identical to Nginx with the addition of Lua out of # the box. @@ -38,7 +52,6 @@ RUN apk add --no-cache gcc RUN luarocks install lua-resty-jwt RUN luarocks install lua-resty-session -RUN luarocks install lua-resty-jwt RUN luarocks install lua-resty-http RUN luarocks install lua-resty-openidc RUN luarocks install luacrypto