add autovault container

This commit is contained in:
ace 2025-04-10 00:22:38 +03:00
parent c699f5919e
commit f57fd4c5c2
Signed by: ace
GPG Key ID: 49AC1F8C597F4B59
4 changed files with 49 additions and 0 deletions

8
autovault/Dockerfile Normal file
View 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
View 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
View 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

View 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