Skip to content

Commit

Permalink
Merge pull request #157 from cloud-gov/update-java-image
Browse files Browse the repository at this point in the history
use general-task image and install jdk
  • Loading branch information
dandersonsw authored Jul 9, 2024
2 parents 92811f9 + c987de5 commit 398c056
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
9 changes: 9 additions & 0 deletions java-see/build-java-see.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions java-see/build-java-see.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 398c056

Please sign in to comment.