Skip to content

Commit

Permalink
Added certificates in scratch base image: (#70)
Browse files Browse the repository at this point in the history
* added certificates in scratch base image:

* fix command for adding certs

* update goreleaser and removed deprecated function

* revert changed function

* change goarch

* go checkout

* added goarm option for gorach

* revert changes to the dockerfile to test

* added back alpine

* test arm64

* added back v8

* try running as alpine instead of scratch

* try without adding certs

Co-authored-by: Luke Reed <luke@lreed.net>
  • Loading branch information
makoscafee and lucasreed authored Feb 16, 2022
1 parent ead0ec4 commit 6cfd1af
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
working_directory: /go/src/github.com/fairwindsops/nova
resource_class: large
docker:
- image: goreleaser/goreleaser:v1.3.0
- image: goreleaser/goreleaser:v1.4.1
steps:
- checkout
- setup_remote_docker:
Expand All @@ -62,7 +62,7 @@ jobs:
resource_class: large
shell: /bin/bash
docker:
- image: goreleaser/goreleaser:v1.3.0
- image: goreleaser/goreleaser:v1.4.1
steps:
- checkout
- setup_remote_docker:
Expand Down
5 changes: 4 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ dockers:
- "quay.io/fairwinds/nova:v{{ .Major }}.{{ .Minor }}-arm64v8"
use: buildx
goarch: arm64
goos: linux
dockerfile: Dockerfile
build_flag_templates:
- "--platform=linux/arm64/v8"
Expand All @@ -66,7 +67,9 @@ dockers:
- "quay.io/fairwinds/nova:v{{ .Major }}-armv7"
- "quay.io/fairwinds/nova:v{{ .Major }}.{{ .Minor }}-armv7"
use: buildx
goarch: arm64
goarch: arm
goarm: 7
goos: linux
dockerfile: Dockerfile
build_flag_templates:
- "--platform=linux/arm/v7"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM scratch
FROM alpine:3.15

USER nobody
COPY nova /
Expand Down

0 comments on commit 6cfd1af

Please sign in to comment.