-
Notifications
You must be signed in to change notification settings - Fork 359
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
WX-719 modernize cromwell-publish
image
#7013
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,12 @@ | |
|
||
set -euo pipefail | ||
|
||
export DOCKER_CLI_EXPERIMENTAL=enabled | ||
|
||
docker buildx rm cromwell-multi-arch-builder || true | ||
docker buildx create --use --name cromwell-multi-arch-builder | ||
|
||
build_root="$( dirname "${BASH_SOURCE[0]}" )" | ||
docker build "${build_root}" -t broadinstitute/cromwell-publish | ||
docker push broadinstitute/cromwell-publish | ||
docker buildx build "${build_root}" --platform linux/amd64,linux/arm64 -t broadinstitute/cromwell-publish:ubuntu-nobrew --push | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This and other changes in this file necessary for Apple CPU support |
||
|
||
docker buildx rm cromwell-multi-arch-builder |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,36 +4,32 @@ | |
|
||
set -eou pipefail | ||
|
||
apt-get update | ||
apt-get install \ | ||
apt update | ||
apt install \ | ||
apt-transport-https \ | ||
curl \ | ||
git \ | ||
gnupg \ | ||
wget \ | ||
ca-certificates \ | ||
unzip \ | ||
zip \ | ||
-y --no-install-recommends | ||
|
||
# setup install for adoptopenjdk | ||
# https://adoptopenjdk.net/installation.html#linux-pkg-deb | ||
wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | apt-key add - | ||
echo "deb https://adoptopenjdk.jfrog.io/adoptopenjdk/deb $( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This listing is abandoned since 2021 and has no recent releases, replacement steps below are from current instructions |
||
grep UBUNTU_CODENAME /etc/os-release | cut -d = -f 2 | ||
) main" | | ||
tee /etc/apt/sources.list.d/adoptopenjdk.list | ||
mkdir -p /etc/apt/keyrings | ||
wget -O - https://packages.adoptium.net/artifactory/api/gpg/key/public | tee /etc/apt/keyrings/adoptium.asc | ||
echo "deb [signed-by=/etc/apt/keyrings/adoptium.asc] https://packages.adoptium.net/artifactory/deb $(awk -F= '/^VERSION_CODENAME/{print$2}' /etc/os-release) main" | tee /etc/apt/sources.list.d/adoptium.list | ||
apt update | ||
apt install -y temurin-11-jdk | ||
|
||
# Install jq 1.6 to ensure --rawfile is supported | ||
curl -L https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 -o /usr/bin/jq | ||
chmod +x /usr/bin/jq | ||
|
||
apt-get update | ||
apt-get install \ | ||
adoptopenjdk-11-hotspot \ | ||
-y --no-install-recommends | ||
|
||
# sbt launcher non-deb package installation instructions adapted from | ||
# - https://github.com/sbt/sbt/releases/tag/v1.4.9 | ||
# - https://github.com/broadinstitute/scala-baseimage/pull/4/files | ||
curl --location --fail --silent --show-error "https://github.com/sbt/sbt/releases/download/v1.5.5/sbt-1.5.5.tgz" | | ||
curl --location --fail --silent --show-error "https://github.com/sbt/sbt/releases/download/v1.8.2/sbt-1.8.2.tgz" | | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would be nice to automatically get latest but using official SBT instructions for |
||
tar zxf - -C /usr/share | ||
update-alternatives --install /usr/bin/sbt sbt /usr/share/sbt/bin/sbt 1 | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to do the naming shuffle and formally call this the latest version of this image?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. I wanted to make sure the release well and truly works before doing so - e.g. make sure we don't need to put the SBT path in the workflow.