-
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.
adding unprivileged minimal container
Signed-off-by: Michael Haigh <[email protected]>
- Loading branch information
1 parent
00b4708
commit 585f7fe
Showing
2 changed files
with
39 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,31 @@ | ||
# This workflow builds and uploads a the minimal docker image | ||
# It's only meant to be manually invoked when the automated python-docker-publish.yml | ||
# file errors out and the image needs to be rebuilt. | ||
|
||
name: Manual Docker Min Build | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: "docker image tag" | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
docker-image: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Docker Setup Buildx | ||
uses: docker/[email protected] | ||
- name: Build and push the Docker image | ||
env: | ||
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} | ||
DOCKERHUB_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} | ||
DOCKERIMAGE_TAG: ${{ inputs.tag }} | ||
run: | | ||
docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD | ||
docker buildx build . --push --file Dockerfile.minimal-unprivileged \ | ||
--tag netapp/astra-toolkits:latest-minimal-unprivileged --tag netapp/astra-toolkits:$DOCKERIMAGE_TAG-minimal-unprivileged \ | ||
--platform linux/amd64,linux/arm64 |
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,8 @@ | ||
FROM python:3.12.3-alpine3.19 | ||
RUN apk add --no-cache jq curl | ||
RUN adduser -D worker | ||
USER worker | ||
WORKDIR /home/worker | ||
ENV PATH="/home/worker/.local/bin:${PATH}" | ||
RUN pip install --user actoolkit | ||
CMD ["/bin/sh"] |