-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
52 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
FROM registry.cloudogu.com/official/base:3.15.3-1 | ||
FROM registry.cloudogu.com/official/base:3.15.8-1 as swaggerui | ||
ENV SWAGGERUI_VERSION=4.9.0-1 \ | ||
SWAGGERUI_ZIP_SHA256="0bfecf30a09247936eed6ec2d5d8ddba3b1a847e24017cd3876ddce5b33736ce" | ||
RUN apk update && apk add curl | ||
RUN curl -Lsk --fail --silent --location --retry 3 https://github.com/cloudogu/swagger-ui/releases/download/v${SWAGGERUI_VERSION}/swagger-ui-${SWAGGERUI_VERSION}.zip -o /tmp/swagger-ui.zip | ||
RUN echo "${SWAGGERUI_ZIP_SHA256} */tmp/swagger-ui.zip" | sha256sum -c - | ||
RUN unzip /tmp/swagger-ui.zip -d /tmp | ||
|
||
FROM registry.cloudogu.com/official/base:3.15.8-1 | ||
LABEL NAME="official/swaggerui" \ | ||
VERSION="4.9.0-1" \ | ||
VERSION="4.9.0-2" \ | ||
maintainer="[email protected]" | ||
|
||
ENV SERVICE_TAGS=webapp \ | ||
SWAGGERUI_VERSION=4.9.0-1 \ | ||
SWAGGERUI_ZIP_SHA256="0bfecf30a09247936eed6ec2d5d8ddba3b1a847e24017cd3876ddce5b33736ce" \ | ||
NGINX_HOME="/var/www/html" | ||
|
||
COPY resources / | ||
|
@@ -22,20 +28,16 @@ RUN set -x -o errexit -o nounset -o pipefail \ | |
&& ln -sf /dev/stderr /var/log/nginx/error.log \ | ||
# cleanup apk cache | ||
&& rm -rf /var/cache/apk/* \ | ||
&& mkdir -p ${NGINX_HOME} \ | ||
# install swaggerui from fork https://github.com/cloudogu/swagger-ui/releases/ \ | ||
&& curl -Lsk --fail --silent --location --retry 3 https://github.com/cloudogu/swagger-ui/releases/download/v${SWAGGERUI_VERSION}/swagger-ui-${SWAGGERUI_VERSION}.zip -o /tmp/swagger-ui.zip \ | ||
&& echo "${SWAGGERUI_ZIP_SHA256} */tmp/swagger-ui.zip" | sha256sum -c - \ | ||
&& unzip /tmp/swagger-ui.zip -d ${NGINX_HOME} \ | ||
&& mv ${NGINX_HOME}/dist/* ${NGINX_HOME} \ | ||
# cleanup | ||
&& rm -r ${NGINX_HOME}/dist && rm /tmp/swagger-ui.zip | ||
&& mkdir -p ${NGINX_HOME} | ||
|
||
# install swaggerui from fork https://github.com/cloudogu/swagger-ui/releases/ \ | ||
COPY --from=swaggerui /tmp/dist/* ${NGINX_HOME}/ | ||
|
||
# copy files | ||
# Define working directory. | ||
WORKDIR /etc/nginx | ||
|
||
HEALTHCHECK CMD doguctl healthy swaggerui || exit 1 | ||
HEALTHCHECK --interval=5s CMD doguctl healthy swaggerui || exit 1 | ||
|
||
# Expose ports. | ||
EXPOSE 8080 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters