-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Knight, Eddie
committed
May 27, 2021
0 parents
commit 410a053
Showing
7 changed files
with
90 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,9 @@ | ||
[submodule "probr"] | ||
path = probr | ||
url = https://github.com/probr/probr.git | ||
[submodule "kubernetes"] | ||
path = kubernetes | ||
url = https://github.com/probr/probr-pack-kubernetes.git | ||
[submodule "aks"] | ||
path = aks | ||
url = https://github.com/probr/probr-pack-aks.git |
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,27 @@ | ||
FROM golang:1.14.4-alpine AS probr-build | ||
|
||
RUN apk add --update make git build-base | ||
|
||
RUN go get -v github.com/markbates/pkger/cmd/pkger | ||
RUN go get -u golang.org/x/lint/golint | ||
|
||
WORKDIR /probr | ||
RUN mkdir -p cmd/bin && \ | ||
mkdir output | ||
COPY . . | ||
|
||
# Args may be overridden at build time | ||
ARG VERSION_PROBR=v0.1.1 | ||
ARG VERSION_K8S=v0.1.0 | ||
ARG VERSION_AKS=v0.1.0 | ||
|
||
RUN make probr VERSION=${VERSION_PROBR} && \ | ||
mv /probr/cmd/bin/probr /probr/cmd/probr | ||
RUN make kubernetes VERSION=${VERSION_K8S} | ||
RUN make aks VERSION=${VERSION_AKS} | ||
|
||
# At runtime: | ||
# Config file and Output directory must be mounted to /probr/run | ||
# Service packs may optionally be overridden by mounting to /probr/cmd/bin | ||
WORKDIR /probr/run | ||
ENTRYPOINT ["/probr/cmd/probr"] |
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,10 @@ | ||
REPO=probr kubernetes aks | ||
|
||
.PHONY: $(REPO) | ||
$(REPO): | ||
cd $@ && \ | ||
git stash && git pull origin main && \ | ||
git fetch --tags && \ | ||
git checkout $(VERSION) && \ | ||
make binary && \ | ||
mv $@ ../cmd/bin |
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,41 @@ | ||
{ | ||
"VarsFile": "C:\\Users\\eknight\\dev\\rearch\\probr-docker\\config.yml", | ||
"Verbose": false, | ||
"ServicePacks": { | ||
"Kubernetes": { | ||
"KeepPods": "false", | ||
"KubeConfigPath": "C:\\Users\\eknight\\.kube\\config", | ||
"KubeContext": "", | ||
"AuthorisedContainerImage": "citihubprod.azurecr.io/citihub/probr-probe", | ||
"ProbeNamespace": "probr-general-test-ns", | ||
"SystemClusterRoles": [ | ||
"system:", | ||
"aks", | ||
"cluster-admin", | ||
"policy-agent" | ||
], | ||
"UnauthorisedContainerImage": "docker.io/citihub/probr-probe", | ||
"ProbeImage": "citihub/probr-probe", | ||
"ContainerRequiredDropCapabilities": [ | ||
"NET_RAW" | ||
], | ||
"ContainerAllowedAddCapabilities": [ | ||
"" | ||
], | ||
"ApprovedVolumeTypes": [ | ||
"configmap", | ||
"emptydir", | ||
"persistentvolumeclaim" | ||
], | ||
"UnapprovedHostPort": "22", | ||
"SystemNamespace": "kube-system", | ||
"DashboardPodNamePrefix": "kubernetes-dashboard", | ||
"Azure": { | ||
"DefaultNamespaceAIB": "probr-aib", | ||
"IdentityNamespace": "kube-system" | ||
}, | ||
"TagInclusions": null, | ||
"TagExclusions": null | ||
} | ||
} | ||
} |
Submodule kubernetes
added at
c91085