-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First version of Makefile+Dockerfile (#50)
Resolves: #49 Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>
- Loading branch information
Showing
2 changed files
with
52 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,34 @@ | ||
FROM registry-proxy.engineering.redhat.com/rh-osbs/ubi9-minimal:9.2-717 | ||
|
||
ENV SUMMARY="Tang IAM proxy" \ | ||
DESCRIPTION="Tang IAM proxy allows to redirect traffic to tang backend by SPIFFE ID" \ | ||
VERSION=0.1 \ | ||
PORT=8000 | ||
|
||
LABEL name="rhel9/tang-iam-proxy" \ | ||
summary="${SUMMARY}" \ | ||
description="${DESCRIPTION}" \ | ||
version="${VERSION}" \ | ||
usage="podman run -d -p 8000:8000 -v database-dir:/var/db --name tang rhel9/tang-iam-proxy" \ | ||
maintainer="Red Hat, Inc." \ | ||
help="cat /README.md" \ | ||
com.redhat.component="tang-iam-proxy" \ | ||
io.k8s.display-name="Tang IAM Proxy" \ | ||
io.k8s.description="${DESCRIPTION}" \ | ||
io.openshift.expose-services="8000:tang-iam-proxy" \ | ||
io.openshift.tags="tang-iam-proxy,container,NBDE,PBD,clevis,LUKS,McCallum-Relyea,Network Bound Disk Encryption" | ||
|
||
|
||
RUN microdnf update -y && \ | ||
microdnf install -y \ | ||
psmisc \ | ||
procps-ng && \ | ||
microdnf clean all && \ | ||
rm -rf /var/cache/yum | ||
|
||
COPY root / | ||
|
||
VOLUME ["/var/db"] | ||
EXPOSE ${PORT} | ||
|
||
CMD ["/usr/bin/tang-iam-proxy"] |
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,18 @@ | ||
BIN=tang-iam-proxy | ||
ROOT_TARGET=root/usr/bin | ||
BIN_TARGET=$(ROOT_TARGET)/$(BIN) | ||
|
||
.PHONY: all bin img clean test | ||
|
||
all: bin img | ||
echo "Building all ..." | ||
|
||
bin: | ||
mkdir -p $(ROOT_TARGET) | ||
go build -o $(BIN_TARGET) tang_iam_proxy.go | ||
|
||
img: | ||
podman build -t=quay.io/sec-eng-special/tang-iam-proxy . | ||
|
||
clean: | ||
rm -f $(BIN_TARGET) |