Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .dockerignore

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/pullrequest.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/release-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ jobs:
go-version: "1.20"

- name: Build
run: make build
run: make

- name: Compress binary
run: tar -C bin -czvf helmbin.tgz helmbin
run: tar -C output/bin -czvf helmvm.tgz helmvm

- name: Publish release
uses: marvinpinto/action-automatic-releases@latest
Expand Down
9 changes: 5 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/bin/
/static/bin/
/static/helm/*tgz
dist/
output
bundle
pkg/goods/bins
pkg/goods/images
*tgz
70 changes: 0 additions & 70 deletions .golangci.yml

This file was deleted.

10 changes: 4 additions & 6 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
project_name: helmbin
project_name: helmvm
release:
github:
owner: replicatedhq
name: helmbin
name: helmvm
builds:
- id: helmbin
- id: helmvm
goos:
- linux
goarch:
Expand All @@ -13,6 +13,4 @@ builds:
- CGO_ENABLED=0
hooks:
pre: make static
main: cmd/helmbin/main.go
snapshot:
name_template: "devel"
main: ./cmd
39 changes: 19 additions & 20 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
# TODO
ARG ARCH

FROM docker.io/library/golang:1.20-alpine as build
RUN apk add --no-cache bash curl make openssl
WORKDIR /go/src/github.com/replicatedhq/helmbin
FROM golang:1.20.6-bullseye AS builder
RUN apt update -y
RUN apt install -y unzip
WORKDIR /helmvm-builder
COPY go.mod go.sum ./
COPY . .
ARG VERSION="dev"
RUN make build

FROM docker.io/library/${ARCH}alpine

RUN apk add --no-cache bash coreutils curl findutils iptables tini

ENV KUBECONFIG=/var/lib/replicated/k0s/pki/admin.conf

ADD docker-entrypoint.sh /entrypoint.sh
COPY --from=build /go/src/github.com/replicatedhq/helmbin/bin/helmbin /usr/local/bin/helmbin

ENTRYPOINT ["/sbin/tini", "--", "/bin/sh", "/entrypoint.sh" ]
RUN make builder && mv output/bin/builder builder
RUN make helmvm-linux-amd64 && mv output/bin/helmvm helmvm-linux-amd64
RUN make clean
RUN make helmvm-darwin-amd64 && mv output/bin/helmvm helmvm-darwin-amd64
RUN make clean
RUN make helmvm-darwin-arm64 && mv output/bin/helmvm helmvm-darwin-arm64

CMD ["helmbin", "run"]
FROM alpine:3.18.2
RUN mkdir /helmvm
COPY --from=builder /helmvm-builder/helmvm-linux-amd64 /helmvm/helmvm-linux-amd64
COPY --from=builder /helmvm-builder/helmvm-darwin-amd64 /helmvm/helmvm-darwin-amd64
COPY --from=builder /helmvm-builder/helmvm-darwin-arm64 /helmvm/helmvm-darwin-arm64
COPY --from=builder /helmvm-builder/builder /helmvm/builder
EXPOSE 8080/tcp
CMD ["/helmvm/builder"]
Loading