Skip to content

Commit

Permalink
chore: miscellaneous repo updates
Browse files Browse the repository at this point in the history
dockerfile switches to use boringcrypto instead of the regular crypto
module (I think that would make it FIPS-compliant).
  • Loading branch information
tommyknows committed Feb 23, 2023
1 parent 5056d98 commit 7352b75
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.bin/
.circleci/
.github/
test/results/
.git*
*.js
*.md
*.yaml
config.secret.json
64 changes: 64 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
### Git ###
# Created by git for backups. To disable backups in Git:
# $ git config --global mergetool.keepBackup false
*.orig

# Created by git when using merge tools for conflicts
*.BACKUP.*
*.BASE.*
*.LOCAL.*
*.REMOTE.*
*_BACKUP_*.txt
*_BASE_*.txt
*_LOCAL_*.txt
*_REMOTE_*.txt

### Go ###
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Dependency directories (remove the comment below to include it)
# /vendor/

# Go workspace file
go.work

### Go Patch ###
/vendor/
/Godeps/

### Helm ###
# Chart dependencies
/helm/**/charts/*.tgz

/helm/config.secret.json

### Test results ###
/test/results

### IDEs ###
.idea
.vscode
.dccache

### Tooling ###
/.bin/

### Local development ###
# Local config file
/config.local.json
# Local build system configuration
/local.mk

### Node.js ###
/node_modules
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ARG COMMIT_SHA
ARG GIT_TAG

RUN go mod download
RUN CGO_ENABLED=0 go build \
RUN CGO_ENABLED=0 GOEXPERIMENT=boringcrypto go build \
-ldflags="-s -w \
-X github.com/snyk/kubernetes-scanner/build.commitSHA=$COMMIT_SHA \
-X github.com/snyk/kubernetes-scanner/build.tag=$GIT_TAG\
Expand All @@ -18,4 +18,4 @@ RUN CGO_ENABLED=0 go build \
FROM gcr.io/distroless/static

COPY --from=build /go/bin/kubernetes-scanner /
CMD ["/kubernetes-scanner"]
ENTRYPOINT ["/kubernetes-scanner"]

0 comments on commit 7352b75

Please sign in to comment.