Skip to content

Commit

Permalink
Add multiarch openark docker image support
Browse files Browse the repository at this point in the history
  • Loading branch information
HoKim98 committed Oct 8, 2023
1 parent a015231 commit 3cf3d1f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
export ALPINE_VERSION := env_var_or_default('ALPINE_VERSION', '3.17')
export OCI_IMAGE := env_var_or_default('OCI_IMAGE', 'quay.io/ulagbulag/openark')
export OCI_IMAGE_VERSION := env_var_or_default('OCI_IMAGE_VERSION', 'latest')
export OCI_PLATFORMS := env_var_or_default('OCI_PLATFORMS', 'linux/arm64,linux/amd64')

export DEFAULT_RUNTIME_PACKAGE := env_var_or_default('DEFAULT_RUNTIME_PACKAGE', 'dash-cli')

Expand Down Expand Up @@ -30,10 +31,11 @@ run *ARGS:
cargo run --package "${DEFAULT_RUNTIME_PACKAGE}" --release -- {{ ARGS }}

oci-build:
docker build \
docker buildx build \
--file './Dockerfile' \
--tag "${OCI_IMAGE}:${OCI_IMAGE_VERSION}" \
--build-arg ALPINE_VERSION="${ALPINE_VERSION}" \
--platform "${OCI_PLATFORMS}" \
.

oci-build-devel:
Expand All @@ -44,10 +46,11 @@ oci-build-devel:
.

oci-build-full:
docker build \
docker buildx build \
--file './Dockerfile.full' \
--tag "${OCI_IMAGE}:${OCI_IMAGE_VERSION}-full" \
--build-arg ALPINE_VERSION="${ALPINE_VERSION}" \
--platform "${OCI_PLATFORMS}" \
.

oci-push: oci-build
Expand Down

0 comments on commit 3cf3d1f

Please sign in to comment.