-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It's basically just the harness base + the aws cli in a full ubuntu container to ensure awscli doesn't bork. Will serve as good working documentation of how to build your own custom stack
- Loading branch information
1 parent
f092adf
commit 825dc38
Showing
2 changed files
with
81 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
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,26 @@ | ||
ARG HARNESS_BASE_IMAGE_TAG=latest | ||
ARG HARNESS_BASE_IMAGE_REPO=ghcr.io/pluralsh/stackrun-harness-base | ||
ARG HARNESS_BASE_IMAGE=$HARNESS_BASE_IMAGE_REPO:$HARNESS_BASE_IMAGE_TAG | ||
|
||
FROM $HARNESS_BASE_IMAGE as harness | ||
|
||
FROM debian:12-slim | ||
|
||
COPY --from=harness /harness /usr/local/bin/harness | ||
|
||
# Change ownership of the harness binary to UID/GID 65532 | ||
RUN addgroup --gid 65532 nonroot && \ | ||
adduser --uid 65532 --gid 65532 --home /home/nonroot nonroot && \ | ||
chown -R 65532:65532 /usr/local/bin/harness | ||
|
||
RUN apt-get -y update && apt-get -y install curl unzip && \ | ||
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \ | ||
unzip awscliv2.zip && \ | ||
./aws/install | ||
|
||
# Switch to the non-root user | ||
USER 65532:65532 | ||
|
||
WORKDIR /plural | ||
|
||
ENTRYPOINT ["harness", "--working-dir=/plural"] |