Skip to content

Commit ef7fde5

Browse files
authored
Helm Dev Image (#114)
* feat: new helm Dockerfile Signed-off-by: Teresa Romero <[email protected]> * feat: new docker-compose with helm build Signed-off-by: Teresa Romero <[email protected]> * refactor: include helm build and push into makefile Signed-off-by: Teresa Romero <[email protected]> --------- Signed-off-by: Teresa Romero <[email protected]>
1 parent 5763a17 commit ef7fde5

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

Makefile

+5
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ build:
1717
--set "*.platform=linux/amd64"
1818
echo "Building dotnet" && docker buildx bake -f docker-compose.dotnet.yml \
1919
--set "*.platform=linux/amd64"
20+
echo "Building helm" && docker buildx bake -f docker-compose.helm.yml \
21+
--set "*.platform=linux/amd64"
2022

2123
push:
2224
docker buildx bake -f docker-compose.dev.yml \
@@ -43,6 +45,9 @@ push:
4345
docker buildx bake -f docker-compose.dotnet.yml \
4446
--push \
4547
--set "*.platform=linux/amd64"
48+
docker buildx bake -f docker-compose.helm.yml \
49+
--push \
50+
--set "*.platform=linux/amd64"
4651

4752
push.rust:
4853
docker buildx bake -f docker-compose.rust.yml \

docker-compose.helm.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: '3.7'
2+
3+
services:
4+
helm3.14.4:
5+
image: okteto/helm:3.14.4
6+
build:
7+
context: .
8+
dockerfile: helm/Dockerfile
9+
args:
10+
VERSION: "3.14.4"
11+
PLUGIN_UNITTEST_VERSION: "0.3.0"

helm/Dockerfile

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FROM golang:1.22-bookworm
2+
3+
ARG VERSION=3.14.4
4+
ARG PLUGIN_UNITTEST_VERSION=0.3.0
5+
6+
RUN curl -sLf --retry 3 -o helm.tar.gz https://get.helm.sh/helm-v${VERSION}-linux-amd64.tar.gz && \
7+
mkdir -p helm && tar -C helm -xf helm.tar.gz && \
8+
cp helm/linux-amd64/helm /usr/local/bin/helm && \
9+
chmod +x /usr/local/bin/helm && \
10+
/usr/local/bin/helm version
11+
12+
RUN helm plugin install https://github.com/helm-unittest/helm-unittest --version v${PLUGIN_UNITTEST_VERSION}
13+
14+
CMD ["/bin/sh"]

0 commit comments

Comments
 (0)