-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b1691ea
commit 869130c
Showing
5 changed files
with
49 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 @@ | ||
.ninja_log |
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,24 @@ | ||
# syntax=docker/dockerfile:1 | ||
ARG CONTAINER_REGISTRY=docker.io | ||
|
||
FROM $CONTAINER_REGISTRY/ubuntu:jammy-20231004 as system-ruby | ||
RUN <<EOF | ||
apt-get update | ||
apt-get install --no-install-recommends --no-install-suggests -y \ | ||
'ruby=*' | ||
rm -rf /var/lib/apt/lists/* | ||
EOF | ||
|
||
FROM system-ruby | ||
|
||
ENV GEM_PATH=/fpm | ||
ENV PATH="/fpm/bin:${PATH}" | ||
RUN <<EOF | ||
useradd --create-home --shell /bin/bash fpm | ||
gem install --no-document --install-dir=/fpm fpm:1.15.1 | ||
EOF | ||
|
||
USER fpm | ||
WORKDIR /src | ||
ENTRYPOINT ["/fpm/bin/fpm"] | ||
CMD ["-h"] |
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 @@ | ||
# fpm |
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,4 @@ | ||
rule lint | ||
command = docker container run --rm -i docker.io/boxcutter/hadolint hadolint - < Containerfile | ||
|
||
build lint: lint |
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,19 @@ | ||
variable "LOCAL_PLATFORM" { | ||
default="${BAKE_LOCAL_PLATFORM}" == "darwin/arm64/v8" ? "linux/arm64/v8" : "${BAKE_LOCAL_PLATFORM}" | ||
} | ||
|
||
target "local" { | ||
dockerfile = "Containerfile" | ||
tags= [ | ||
"docker.io/boxcutter/fpm:latest" | ||
] | ||
platforms = ["${LOCAL_PLATFORM}"] | ||
} | ||
|
||
target "default" { | ||
dockerfile = "Containerfile" | ||
tags= [ | ||
"docker.io/boxcutter/fpm:latest" | ||
] | ||
platforms = ["linux/amd64", "linux/arm64/v8"] | ||
} |