-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into fix/allow_null_result_time_db
- Loading branch information
Showing
20 changed files
with
110 additions
and
159 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,28 +21,33 @@ FROM jetty:jre8-alpine | |
|
||
USER root | ||
RUN set -ex \ | ||
&& apk add --no-cache jq \ | ||
&& apk add --no-cache jq gettext \ | ||
&& wget -q -P /usr/local/bin https://raw.githubusercontent.com/52North/arctic-sea/master/etc/faroe-entrypoint.sh \ | ||
&& chmod +x /usr/local/bin/faroe-entrypoint.sh | ||
USER jetty:jetty | ||
|
||
ENV FAROE_CONFIGURATION /etc/sos/configuration.json | ||
ENV WEBAPP ${JETTY_BASE}/webapps/ROOT | ||
ENV HELGOLAND ${WEBAPP}/static/client/helgoland | ||
ENV HELGOLAND_CONFIG ${HELGOLAND}/assets/settings.json | ||
|
||
COPY --from=BUILD /usr/src/app/webapp/target/52n-sos-webapp ${WEBAPP} | ||
COPY ./docker/logback.xml ${WEBAPP}/WEB-INF/classes/ | ||
COPY ./docker/helgoland.json ${HELGOLAND}/assets/settings.json | ||
COPY ./docker/default-config /etc/sos | ||
COPY --chown=jetty:jetty --from=BUILD /usr/src/app/webapp/target/52n-sos-webapp ${WEBAPP} | ||
COPY --chown=jetty:jetty ./docker/logback.xml ${WEBAPP}/WEB-INF/classes/ | ||
COPY --chown=jetty:jetty ./docker/jetty-web.xml ${WEBAPP}/WEB-INF/jetty-web.xml.template | ||
COPY --chown=jetty:jetty ./docker/helgoland.json ${HELGOLAND_CONFIG} | ||
COPY --chown=jetty:jetty ./docker/default-config /etc/sos | ||
|
||
USER root | ||
COPY --from=BCRYPT_BUILD /usr/src/app /usr/lib/java-brcypt | ||
COPY docker/bcrypt/bcrypt.sh /usr/local/bin/bcrypt | ||
COPY docker/sos-entrypoint.sh /usr/local/bin | ||
|
||
|
||
RUN mkdir -p ${WEBAPP}/WEB-INF/tmp \ | ||
&& ln -s /etc/sos ${WEBAPP}/WEB-INF/config \ | ||
&& chown -R jetty:jetty ${WEBAPP} /etc/sos \ | ||
&& chown -R jetty:jetty ${WEBAPP}/WEB-INF/tmp \ | ||
${WEBAPP}/WEB-INF/config \ | ||
/etc/sos \ | ||
&& chmod +x /usr/local/bin/sos-entrypoint.sh \ | ||
/usr/local/bin/bcrypt | ||
USER jetty:jetty | ||
|
@@ -52,7 +57,7 @@ VOLUME /etc/sos | |
|
||
HEALTHCHECK --start-period=60s --interval=30s \ | ||
--timeout=20s --retries=3 \ | ||
CMD wget http://localhost:8080/ -q -O - > /dev/null 2>&1 | ||
CMD wget http://localhost:8080${SOS_CONTEXT_PATH} -q -O - > /dev/null 2>&1 | ||
|
||
LABEL maintainer="Carsten Hollmann <[email protected]>" \ | ||
org.opencontainers.image.title="52°North SOS" \ | ||
|
@@ -76,6 +81,7 @@ ENV SOS_ADMIN_USERNAME=admin \ | |
SOS_DATASOURCE_PASSWORD=postgres \ | ||
SOS_DATASOURCE_DATABASE=sos \ | ||
SOS_DATASOURCE_HOST=db \ | ||
SOS_DATASOURCE_PORT=5432 | ||
SOS_DATASOURCE_PORT=5432 \ | ||
SOS_CONTEXT_PATH=/ | ||
|
||
CMD [ "java", "-jar", "/usr/local/jetty/start.jar" ] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_3.dtd"> | ||
<Configure class="org.eclipse.jetty.webapp.WebAppContext"> | ||
<Set name="contextPath">${SOS_CONTEXT_PATH}</Set> | ||
</Configure> |
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
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
Oops, something went wrong.