Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use general-task image and install jdk #157

Merged
merged 1 commit into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
dandersonsw marked this conversation as resolved.
Show resolved Hide resolved
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