From c987de5c4105c5af0dfea2063032f99598af247f Mon Sep 17 00:00:00 2001 From: David Anderson Date: Mon, 8 Jul 2024 17:52:46 -0400 Subject: [PATCH] use general-task image and install jdk --- java-see/build-java-see.sh | 9 +++++++++ java-see/build-java-see.yml | 8 ++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/java-see/build-java-see.sh b/java-see/build-java-see.sh index 0b341d5..aecc3cd 100755 --- a/java-see/build-java-see.sh +++ b/java-see/build-java-see.sh @@ -4,6 +4,15 @@ set -ex export TERM=${TERM:-dumb} +wget https://download.oracle.com/java/22/latest/jdk-22_linux-x64_bin.tar.gz +tar -xvf jdk-22_linux-x64_bin.tar.gz +mv jdk-22.0.1 /opt/ + +JAVA_HOME='/opt/jdk-22.0.1' +export JAVA_HOME +PATH="JAVA_HOME/bin:$PATH" +export PATH + pushd cf-hello-worlds/java-see ./mvnw compile ./mvnw package diff --git a/java-see/build-java-see.yml b/java-see/build-java-see.yml index a550eb6..29c61e4 100644 --- a/java-see/build-java-see.yml +++ b/java-see/build-java-see.yml @@ -2,9 +2,13 @@ platform: linux image_resource: - type: docker-image + type: registry-image source: - repository: adoptopenjdk/openjdk11 + aws_access_key_id: ((ecr_aws_key)) + aws_secret_access_key: ((ecr_aws_secret)) + repository: general-task + aws_region: us-gov-west-1 + tag: latest inputs: - name: cf-hello-worlds