-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from bottlerocket-os/setup
initial project setup
- Loading branch information
Showing
12 changed files
with
3,387 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
BOTTLEROCKET_SDK_VERSION = 0.15.0 | ||
BOTTLEROCKET_SDK_SITE = cache.bottlerocket.aws | ||
LOCAL_ARCH = $(shell uname -m) | ||
TARGET_ARCH = x86_64 | ||
|
||
# the docker image that will be used to compile rust code | ||
BUILDER_IMAGE = bottlerocket/sdk-${TARGET_ARCH}:v${BOTTLEROCKET_SDK_VERSION}-${LOCAL_ARCH} | ||
|
||
# the target triple that will be passed to the cargo build command with as --target | ||
RUST_TARGET = ${TARGET_ARCH}-bottlerocket-linux-musl | ||
|
||
.PHONY: image # creates a docker image with the updater binary | ||
image: fetch-sdk | ||
DOCKER_BUILDKIT=1 \ | ||
docker build \ | ||
-t bottlerocket-ecs-updater:latest \ | ||
--build-arg BUILDER_IMAGE=${BUILDER_IMAGE} \ | ||
--build-arg RUST_TARGET=${RUST_TARGET} \ | ||
"${PWD}/updater" | ||
|
||
.PHONY: fetch-sdk | ||
fetch-sdk: # fetches and loads the image we use to build the updater docker image | ||
scripts/load-bottlerocket-sdk.sh --site ${BOTTLEROCKET_SDK_SITE} --image ${BUILDER_IMAGE} |
Oops, something went wrong.