Skip to content
Snippets Groups Projects
Verified Commit 8d009abd authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

refactor(synadm): Rework synadm to use Earthly native

parent 509ab7e1
No related branches found
No related tags found
No related merge requests found
FROM docker.io/library/python:3
COPY requirements.txt .
RUN true \
&& pip3 install -r requirements.txt \
&& mkdir -p /workspace \
&& true
WORKDIR /workspace
ENTRYPOINT ["/usr/local/bin/synadm"]
VERSION 0.7
container-interal:
FROM docker.io/library/python:3
COPY requirements.txt .
RUN pip3 install -r requirements.txt
RUN mkdir -p /workspace
WORKDIR /workspace
ENTRYPOINT ["/usr/local/bin/synadm"]
container:
FROM ../mirror+alpine
ARG registry=quay.io/shivering-isles/synadm
COPY .release ./
ARG tag=$(awk -F'=' '$1 == "release" {print $2}' .release)
ARG latest=false
FROM DOCKERFILE --platform=linux/amd64 -f "./Dockerfile" "./"
FROM +container-interal
IF [ $latest = "true" ]
SAVE IMAGE --push ${registry}:latest
ELSE
LABEL "quay.expires-after"="12w"
END
SAVE IMAGE --push ${registry}:${tag}
\ No newline at end of file
SAVE IMAGE --push ${registry}:${tag}
install:
BUILD +container
LOCALLY
RUN install -m 755 ./synadm ~/bin/synadm
\ No newline at end of file
.DEFAULT_GOAL := help
include ../.utils/container-build.mk
include ../../utils/help.mk
.PHONY: preflight
preflight:
# Check for required tools
command -v podman > /dev/null
.PHONY: install
install: preflight build ## Install koolbox, the Kubernetes Toolbox for SI-Infrastructure
install -m 755 ./synadm ~/bin/synadm
......@@ -14,6 +14,6 @@ Installation
In order to install it, you just build the container yourself and get a neat little shell script installed in `~/bin/`
```
make install REGISTRY_HOST=quay.io USERNAME=shivering-isles
earthly +install
synadm --help
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment