Skip to content

Commit

Permalink
Update JDK for UAA development Docker container
Browse files Browse the repository at this point in the history
Update JDK to enable building a container with the latest stable version of UAA
  • Loading branch information
chombium authored and johha committed Oct 31, 2023
1 parent 7e646e1 commit 18dc64c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .devcontainer/images/uaa/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Build image
FROM openjdk:11.0-jdk AS builder
FROM sapmachine:21-jdk-headless-ubuntu-jammy AS builder

WORKDIR /uaa

# Patch admin client, add authority password.write
COPY PatchAdminOAuthClient.java /PatchAdminOAuthClient.java
RUN apt-get update && apt-get install jq -y \
RUN apt-get update && apt-get install jq git curl -y \
&& git clone -b $(curl -s https://api.github.com/repos/cloudfoundry/uaa/releases/latest | jq -r '.tag_name') https://github.com/cloudfoundry/uaa.git . --recursive --depth=1 --shallow-submodules \
&& git clone -b $(curl -s https://api.github.com/repos/pivotal/credhub-release/releases/latest | jq -r '.tag_name') https://github.com/pivotal/credhub-release /credhub-release --recursive --depth=1 --shallow-submodules \
&& javac /PatchAdminOAuthClient.java -d / \
Expand Down Expand Up @@ -35,7 +35,7 @@ RUN yq e '.issuer.uri = "http://localhost:8080"' -i /uaa.yml \
&& yq ea 'select(fi == 0) * select(fi == 1)' -i /uaa.yml /credhub-uaa.yml

# Runtime image
FROM tomcat:9-jdk11
FROM tomcat:9-jdk21

# Copy config file from yq image
COPY --from=yq /uaa.yml /uaa.yml
Expand Down

0 comments on commit 18dc64c

Please sign in to comment.