Skip to content

Commit 78aa0d8

Browse files
authored
Adds support for helm-charts repo and local helm deploys to minikube (#7)
-Adds helm-charts repo - Adds k-alias commands - Adds custom ca certs to minikube so it can pull container images
1 parent c9e590a commit 78aa0d8

File tree

4 files changed

+34
-10
lines changed

4 files changed

+34
-10
lines changed

.devcontainer/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,9 @@ RUN set -eux; \
3131
&& chmod +x /usr/local/bin/vale \
3232
&& vale --version
3333

34+
# Install k-alias
35+
RUN git clone https://github.com/jaggedmountain/k-alias.git /tmp/k-alias && \
36+
cp /tmp/k-alias/[h,k]* /usr/local/bin
37+
3438
# Switch back to vscode user
3539
USER vscode

.devcontainer/postcreate.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,14 @@ sudo chmod +x .devcontainer/clone-repos.sh
1111

1212
dotnet tool install -g Aspire.Cli
1313
dotnet dev-certs https --trust
14+
15+
# Stage custom CA certs so Minikube trusts them
16+
CUSTOM_CERT_SOURCE="/usr/local/share/ca-certificates/custom"
17+
MINIKUBE_CERT_DEST="${HOME}/.minikube/files/etc/ssl/certs/custom"
18+
if compgen -G "${CUSTOM_CERT_SOURCE}"'/*.crt' > /dev/null; then
19+
mkdir -p "${MINIKUBE_CERT_DEST}"
20+
cp "${CUSTOM_CERT_SOURCE}"/*.crt "${MINIKUBE_CERT_DEST}/"
21+
echo "Copied custom CA certificates to ${MINIKUBE_CERT_DEST}"
22+
else
23+
echo "No custom CA certificates found in ${CUSTOM_CERT_SOURCE}; skipping copy."
24+
fi

.devcontainer/poststart.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
minikube start --mount-string="/mnt/data/terraform/root:/terraform/root"
3+
minikube start --mount-string="/mnt/data/terraform/root:/terraform/root" --embed-certs

.devcontainer/repos.json

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,6 @@
7373
}
7474
]
7575
},
76-
{
77-
"name": "crucible-docs",
78-
"repos": [
79-
{
80-
"name": "crucible-docs",
81-
"url": "https://github.com/cmu-sei/crucible"
82-
}
83-
]
84-
},
8576
{
8677
"name": "steamfitter",
8778
"repos": [
@@ -133,6 +124,24 @@
133124
"url": "https://github.com/cmu-sei/blueprint.ui"
134125
}
135126
]
127+
},
128+
{
129+
"name": "crucible-docs",
130+
"repos": [
131+
{
132+
"name": "crucible-docs",
133+
"url": "https://github.com/cmu-sei/crucible"
134+
}
135+
]
136+
},
137+
{
138+
"name": "helm-charts",
139+
"repos": [
140+
{
141+
"name": "helm-charts",
142+
"url": "https://github.com/cmu-sei/helm-charts"
143+
}
144+
]
136145
}
137146
]
138147
}

0 commit comments

Comments
 (0)