Skip to content

Commit b71caeb

Browse files
Fixed #20 - copy the java/cacerts to a location that does not get clobbered by Concourse
1 parent ce13b44 commit b71caeb

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## 1.3.5 - 2018-03-20
8+
### Fixed
9+
- Interacting with an SSL protected Maven Repository Manager broke with Concourse 3.9.0. The way Concourse now mounts the worker's certificate directory to `/etc/ssl/certs` clobbers the `/etc/ssl/certs/java/cacerts` file placed there by the base [openjdk](https://hub.docker.com/_/openjdk/) image, which is symlinked to at `$JAVA_HOME/jre/lib/security/cacerts`, which of course is needed by Java for SSL stuff.
10+
11+
So... as a workaround we unlink the link and copy the file directly to `$JAVA_HOME/jre/lib/security/cacerts`. Thx to [@elgohr](https://github.com/elgohr) for working with me on this!
12+
13+
### Changed
14+
- Bumped base [openjdk](https://hub.docker.com/_/openjdk/) image to version `8u151` (from `8u131`).
15+
716
## 1.3.4 - 2017-10-03
817
### Fixed
918
- v1.3.3 introduced [Incorrect SNAPSHOT version checking logic](https://github.com/patrickcrocker/maven-resource/issues/12) for the `check` operation for snapshots but was quickly spotted by [@shinmyung0](https://github.com/shinmyung0). This is now fixed and the 1.3.3 release has been yanked!

Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
FROM openjdk:8u131-jdk-alpine
1+
FROM openjdk:8u151-jdk-alpine
22

33
RUN apk add --no-cache curl tar bash jq libxml2-utils
44

5+
# https://github.com/concourse/concourse/issues/2042
6+
RUN unlink $JAVA_HOME/jre/lib/security/cacerts && \
7+
cp /etc/ssl/certs/java/cacerts $JAVA_HOME/jre/lib/security/cacerts
8+
59
ADD assets/ /opt/resource/
610
ADD test/ /opt/resource/test/
711
ADD itest/ /opt/resource/itest/

debian/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
FROM openjdk:8u131-jdk
1+
FROM openjdk:8u151-jdk
22

33
RUN apt-get update && apt-get -y install jq libxml2-utils \
44
&& apt-get clean \
55
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
66

7+
# https://github.com/concourse/concourse/issues/2042
8+
RUN unlink $JAVA_HOME/jre/lib/security/cacerts && \
9+
cp /etc/ssl/certs/java/cacerts $JAVA_HOME/jre/lib/security/cacerts
10+
711
ADD assets/ /opt/resource/
812
ADD test/ /opt/resource/test/
913
ADD itest/ /opt/resource/itest/

0 commit comments

Comments
 (0)