-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Chris Goller <[email protected]>
- Loading branch information
Showing
1 changed file
with
22 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,22 @@ | ||
FROM --platform=$TARGETPLATFORM amazonlinux | ||
|
||
ARG TARGETARCH | ||
ARG BUILDKIT_VERSION | ||
ARG MACHINE_AGENT_VERSION | ||
|
||
RUN dnf upgrade -y && \ | ||
dnf install -y htop wget git lsof fuse3 tar pigz e2fsprogs psmisc && \ | ||
dnf clean all | ||
|
||
SHELL ["/bin/bash", "-o", "pipefail", "-c"] | ||
|
||
RUN mkdir -p /etc/buildkit && \ | ||
curl -L "https://github.com/depot/buildkit/releases/download/${BUILDKIT_VERSION}/buildkit-${BUILDKIT_VERSION}.linux-${TARGETARCH}.tar.gz" | \ | ||
tar -xz -C /usr/bin --strip-components=1 | ||
|
||
RUN curl -L "https://dl.depot.dev/machine-agent/download/linux/$(uname -m)/${MACHINE_AGENT_VERSION}" | \ | ||
tar -zx --strip-components=1 --directory /usr/bin bin/machine-agent | ||
|
||
# TODO: install vector | ||
# TODO: binfmt/dagger engine | ||
|