Skip to content

Commit

Permalink
Merge pull request #3374 from mapfish/audit-3.29
Browse files Browse the repository at this point in the history
Use a maintained Tomcat Docker image
  • Loading branch information
sbrunner authored Aug 21, 2024
2 parents fcb7937 + f0b2d9f commit aaa0044
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 99 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ jobs:
- run: docker cp builder:/src/core/build/ core/build/ || true
if: always()

- run: docker cp mapfish-print_tests_1:/src/examples/build/ examples/build/ || true
- run: docker cp mapfish-print-tests-1:/src/examples/build/ examples/build/ || true
if: always()

- run: docker-compose logs || true
- run: docker compose logs || true
if: failure()

- run: mkdir -p core/build/resources/actual examples/build/reports core/build/reports examples/build/resources/test/examples
Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ build:

.PHONY: acceptance-tests-up
acceptance-tests-up:
docker-compose down --remove-orphan
docker compose down

mkdir /tmp/geoserver-data || true
docker run --rm --volume=/tmp/geoserver-data:/mnt/geoserver_datadir camptocamp/geoserver \
Expand All @@ -23,17 +23,17 @@ acceptance-tests-up:
cp -r examples/geoserver-data/* /tmp/geoserver-data/
cp -r core/src/test/resources/map-data/* /tmp/geoserver-data/www/

docker-compose up -d
docker compose up -d

.PHONY: acceptance-tests-run
acceptance-tests-run:
docker-compose exec -T tests gradle :examples:integrationTest
docker compose exec -T tests gradle :examples:integrationTest
ci/check-fonts
ci/validate-container

.PHONY: acceptance-tests-down
acceptance-tests-down:
docker-compose down || true
docker compose down || true
docker run --rm --volume=/tmp/geoserver-data:/mnt/geoserver_datadir camptocamp/geoserver \
bash -c 'rm -rf /mnt/geoserver_datadir/*'
rmdir /tmp/geoserver-data
2 changes: 1 addition & 1 deletion core/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM mapfish_print_builder AS builder


FROM tomcat:9.0.65-jdk11-openjdk-slim-bullseye AS runner
FROM tomcat:9.0.93-jdk11-temurin-jammy AS runner
LABEL maintainer="Camptocamp <info@camptocamp.com>"

RUN perl -0777 -i -pe 's/(<Valve className="org.apache.catalina.valves.AccessLogValve"[^>]*>)/<Valve className="ch.qos.logback.access.tomcat.LogbackValve" quiet="true"\/>/s' "${CATALINA_HOME}/conf/server.xml" && \
Expand Down
3 changes: 1 addition & 2 deletions core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@ dependencies {
"io.dropwizard.metrics:metrics-servlets:$metricsVersion",
"io.dropwizard.metrics:metrics-jvm:$metricsVersion",
"io.dropwizard.metrics:metrics-jmx:$metricsVersion",
"io.dropwizard.metrics:metrics-logback:$metricsVersion",
'com.readytalk:metrics3-statsd:4.2.0'
"io.dropwizard.metrics:metrics-logback:$metricsVersion"
)
geotools(
"org.geotools:gt-epsg-hsql:$geotoolsVersion",
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
<bean id="loggingMetricsConfigurator" class="org.mapfish.print.metrics.LoggingMetricsConfigurator" lazy-init="false"/>
<bean id="jvmMetricsConfigurator" class="org.mapfish.print.metrics.JvmMetricsConfigurator" lazy-init="false"/>
<bean id="jmxMetricsReporter" class="org.mapfish.print.metrics.JmxMetricsReporter" lazy-init="false"/>
<bean id="statsDReporterInit" class="org.mapfish.print.metrics.StatsDReporterInit" lazy-init="false"/>
<bean id="accounting" class="org.mapfish.print.servlet.job.Accounting" lazy-init="false"/>

<bean id="forkJoinPool" class="java.util.concurrent.ForkJoinPool" destroy-method="shutdownNow">
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit aaa0044

Please sign in to comment.