Skip to content

Commit

Permalink
Update Ubuntu RTOS image version (#3365)
Browse files Browse the repository at this point in the history
Co-authored-by: Abhay Krishna Arunachalam <arnchlm@amazon.com>
  • Loading branch information
eks-distro-pr-bot and abhay-krishna authored Jun 25, 2024
1 parent f71fcdd commit 3ace70f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 1 addition & 2 deletions projects/canonical/ubuntu/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ REPO_OWNER=canonical
RTOS_BUCKET_NAME?=
RTOS_IMAGE_DATE=$(shell cat RTOS_IMAGE_DATE)
RELEASE_BRANCH=1-29
RTOS_SOURCE_URL=https://$(RTOS_BUCKET_NAME).s3.us-west-2.amazonaws.com/ubuntu/jammy/$(RTOS_IMAGE_DATE)/ubuntu-jammy-eks-anywhere-pro-realtime-minimal-amd64-eks-anywhere-$(RELEASE_BRANCH)-pro-realtime.raw.gz

HAS_S3_ARTIFACTS=true
SIMPLE_CREATE_BINARIES=false
Expand Down Expand Up @@ -35,7 +34,7 @@ s3-artifacts: download-rtos-image

.PHONY: download-rtos-image
download-rtos-image:
build/download_rtos_image.sh $(RTOS_SOURCE_URL) $(ARTIFACTS_PATH)
build/download_rtos_image.sh $(RTOS_BUCKET_NAME) $(RTOS_IMAGE_DATE) $(ARTIFACTS_PATH) $(RELEASE_BRANCH)


########### DO NOT EDIT #############################
Expand Down
2 changes: 1 addition & 1 deletion projects/canonical/ubuntu/RTOS_IMAGE_DATE
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20240414
20240624
10 changes: 6 additions & 4 deletions projects/canonical/ubuntu/build/download_rtos_image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,15 @@ set -x
set -o errexit
set -o pipefail

RTOS_SOURCE_URL="${1?Specify first argument - source URL for the Ubuntu RTOS image}"
ARTIFACTS_PATH="${2?Specify second argument - artifacts path}"
RTOS_BUCKET_NAME="${1?Specify first argument - Ubuntu RTOS image bucket name}"
RTOS_IMAGE_DATE="${2?Specify second argument - Ubuntu RTOS image build date}"
ARTIFACTS_PATH="${3?Specify third argument - artifacts path}"
RELEASE_BRANCH="${4?Specify fourth argument - release branch}"

function build::download::ubuntu::rtos::image(){
mkdir -p $ARTIFACTS_PATH
filename=$(basename $RTOS_SOURCE_URL)
curl -s $RTOS_SOURCE_URL -o $ARTIFACTS_PATH/ubuntu.gz
download_path=s3://$RTOS_BUCKET_NAME/ubuntu/jammy/$RTOS_IMAGE_DATE/ubuntu-jammy-eks-anywhere-pro-realtime-minimal-amd64-eks-anywhere-$RELEASE_BRANCH-pro-realtime.raw.gz
aws s3 cp $download_path $ARTIFACTS_PATH/ubuntu.gz
}

build::download::ubuntu::rtos::image

0 comments on commit 3ace70f

Please sign in to comment.