Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Knight, Eddie committed May 27, 2021
0 parents commit 410a053
Show file tree
Hide file tree
Showing 7 changed files with 90 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitmodules
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
27 changes: 27 additions & 0 deletions Dockerfile
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"]
10 changes: 10 additions & 0 deletions Makefile
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
1 change: 1 addition & 0 deletions aks
Submodule aks added at 96d96c
41 changes: 41 additions & 0 deletions config.json
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
}
}
}
1 change: 1 addition & 0 deletions kubernetes
Submodule kubernetes added at c91085
1 change: 1 addition & 0 deletions probr
Submodule probr added at f005d2

0 comments on commit 410a053

Please sign in to comment.