Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Infrastructure GitOps
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Shivering-Isles
Infrastructure GitOps
Commits
8d009abd
Verified
Commit
8d009abd
authored
1 year ago
by
Sheogorath
Browse files
Options
Downloads
Patches
Plain Diff
refactor(synadm): Rework synadm to use Earthly native
parent
509ab7e1
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
images/synadm/Dockerfile
+0
-12
0 additions, 12 deletions
images/synadm/Dockerfile
images/synadm/Earthfile
+15
-2
15 additions, 2 deletions
images/synadm/Earthfile
images/synadm/Makefile
+0
-13
0 additions, 13 deletions
images/synadm/Makefile
images/synadm/README.md
+1
-1
1 addition, 1 deletion
images/synadm/README.md
with
16 additions
and
28 deletions
images/synadm/Dockerfile
deleted
100644 → 0
+
0
−
12
View file @
509ab7e1
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"]
This diff is collapsed.
Click to expand it.
images/synadm/Earthfile
+
15
−
2
View file @
8d009abd
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
This diff is collapsed.
Click to expand it.
images/synadm/Makefile
deleted
100644 → 0
+
0
−
13
View file @
509ab7e1
.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
This diff is collapsed.
Click to expand it.
images/synadm/README.md
+
1
−
1
View file @
8d009abd
...
...
@@ -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
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment