add autovault container
This commit is contained in:
parent
c699f5919e
commit
f57fd4c5c2
8
autovault/Dockerfile
Normal file
8
autovault/Dockerfile
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
FROM almalinux:9
|
||||||
|
|
||||||
|
COPY *.repo /etc/yum.repos.d/
|
||||||
|
|
||||||
|
RUN dnf install -y kubectl vault jq && dnf clean all
|
||||||
|
RUN setcap -r /usr/bin/vault
|
||||||
|
|
||||||
|
ENTRYPOINT ["/vault/scripts/autovault.sh"]
|
22
autovault/Makefile
Normal file
22
autovault/Makefile
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
VERSION=0.1.0
|
||||||
|
BUILD=1
|
||||||
|
IMAGE=autovault
|
||||||
|
REGISTRY=gitea.geekhome.org/ghp
|
||||||
|
|
||||||
|
.PHONY: build push all
|
||||||
|
|
||||||
|
ifeq ($(shell command -v podman 2> /dev/null),)
|
||||||
|
CMD=docker
|
||||||
|
FORMAT=
|
||||||
|
else
|
||||||
|
CMD=podman
|
||||||
|
FORMAT=--format docker
|
||||||
|
endif
|
||||||
|
|
||||||
|
build:
|
||||||
|
$(CMD) build $(NO_CACHE) $(FORMAT) -t $(REGISTRY)/$(IMAGE):$(VERSION)-$(BUILD) .
|
||||||
|
|
||||||
|
push:
|
||||||
|
$(CMD) push $(REGISTRY)/$(IMAGE):$(VERSION)-$(BUILD)
|
||||||
|
|
||||||
|
all: build push
|
13
autovault/hashicorp.repo
Normal file
13
autovault/hashicorp.repo
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
[hashicorp]
|
||||||
|
name=Hashicorp Stable - $basearch
|
||||||
|
baseurl=https://rpm.releases.hashicorp.com/RHEL/$releasever/$basearch/stable
|
||||||
|
enabled=1
|
||||||
|
gpgcheck=1
|
||||||
|
gpgkey=https://rpm.releases.hashicorp.com/gpg
|
||||||
|
|
||||||
|
[hashicorp-test]
|
||||||
|
name=Hashicorp Test - $basearch
|
||||||
|
baseurl=https://rpm.releases.hashicorp.com/RHEL/$releasever/$basearch/test
|
||||||
|
enabled=0
|
||||||
|
gpgcheck=1
|
||||||
|
gpgkey=https://rpm.releases.hashicorp.com/gpg
|
6
autovault/kubernetes.repo
Normal file
6
autovault/kubernetes.repo
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[kubernetes]
|
||||||
|
name=Kubernetes
|
||||||
|
baseurl=https://pkgs.k8s.io/core:/stable:/v1.32/rpm/
|
||||||
|
enabled=1
|
||||||
|
gpgcheck=1
|
||||||
|
gpgkey=https://pkgs.k8s.io/core:/stable:/v1.32/rpm/repodata/repomd.xml.key
|
Loading…
x
Reference in New Issue
Block a user