Skip to content

Commit

Permalink
Convert to use TAG_PREFIX
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorific committed Sep 14, 2024
1 parent f7a0860 commit bacdca1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 14 deletions.
7 changes: 5 additions & 2 deletions nvidia/l4t-base/Containerfile.r35
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
FROM docker.io/arm64v8/ubuntu:20.04 as nvidia-l4t-base
# syntax=docker/dockerfile:1
ARG BASE_IMAGE=docker.io/arm64v8/ubuntu:20.04
# hadolint ignore=DL3006
FROM ${BASE_IMAGE} AS nvidia-l4t-base

ARG RELEASE=r35.4
ARG DEBIAN_FRONTEND=noninteractive
Expand Down Expand Up @@ -76,4 +79,4 @@ RUN ldconfig
ENV NVIDIA_VISIBLE_DEVICES all
ENV NVIDIA_DRIVER_CAPABILITIES all

CMD ["/bin/bash"]
CMD ["/bin/bash"]
5 changes: 4 additions & 1 deletion nvidia/l4t-base/Containerfile.r36
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
FROM docker.io/arm64v8/ubuntu:22.04 as nvidia-l4t-base
# syntax=docker/dockerfile:1
ARG BASE_IMAGE=docker.io/arm64v8/ubuntu:22.04
# hadolint ignore=DL3006
FROM ${BASE_IMAGE} AS nvidia-l4t-base

ARG RELEASE=r36.2
ARG DEBIAN_FRONTEND=noninteractive
Expand Down
19 changes: 8 additions & 11 deletions nvidia/l4t-base/docker-bake.hcl
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
variable "CONTAINER_REGISTRY" {
default = "docker.io/boxcutter"
}

variable "IMAGE_NAME" {
default = "nvidia-l4t-base"
variable "TAG_PREFIX" {
default = "docker.io/boxcutter/nvidia-l4t-base"
}

target "default" {
name = "${IMAGE_NAME}-${replace(item.version, ".", "-")}"
name = "${TAG_PREFIX}-${replace(item.version, ".", "-")}"
target = "nvidia-l4t-base"
args = {
RELEASE = item.release
}
tags = [
"${CONTAINER_REGISTRY}/${IMAGE_NAME}:${item.version}"
"${TAG_PREFIX}:${item.version}"
]
dockerfile = item.dockerfile
platforms = ["linux/arm64/v8"]
labels = {
"org.opencontainers.image.created" = timestamp()
"org.opencontainers.image.description" = "Linux for Tegra (L4T) base image for the NVIDIA Jetson embedded computing platform."
"org.opencontainers.image.licenses" = "Apache-2.0"
"org.opencontainers.image.source" = "https://github.com/boxcutter/oci"
"org.opencontainers.image.licenses" = "Apache-2.0"
"org.opencontainers.image.description" = "Linux for Tegra (L4T) base image for the NVIDIA Jetson embedded computing platform."
"org.opencontainers.image.title" = "${TAG_PREFIX}"
"org.opencontainers.image.created" = timestamp()
}
matrix = {
item = [
Expand Down

0 comments on commit bacdca1

Please sign in to comment.