From a56292e2e0fb7737eac7be8ccb9adc007b0cfdae Mon Sep 17 00:00:00 2001 From: Alex Goodman Date: Wed, 16 Dec 2020 16:51:57 -0500 Subject: [PATCH] Revert "Add the ability to run syft from a scratch image." Signed-off-by: Alex Goodman --- .github/workflows/release.yaml | 6 ------ .goreleaser.yaml | 16 ---------------- Dockerfile | 20 -------------------- README.md | 8 -------- 4 files changed, 50 deletions(-) delete mode 100644 Dockerfile diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 4edccfe1c..e31af946e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -106,12 +106,6 @@ jobs: ${{ runner.os }}-go-${{ env.GO_VERSION }}-${{ hashFiles('**/go.sum') }}- ${{ runner.os }}-go-${{ env.GO_VERSION }}- - - name: Login to Docker Hub - uses: docker/login-action@v1 - with: - username: ${{ secrets.TOOLBOX_DOCKER_USER }} - password: ${{ secrets.TOOLBOX_DOCKER_PASS }} - - name: Import GPG key id: import_gpg uses: crazy-max/ghaction-import-gpg@v2 diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 1944024b4..f1fd98345 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -47,22 +47,6 @@ builds: -X github.com/anchore/syft/internal/version.buildDate={{.Date}} -X github.com/anchore/syft/internal/version.gitTreeState={{.Env.BUILD_GIT_TREE_STATE}} -dockers: - - - # Docker image name and tags - image_templates: - - "anchore/syft:latest" - - "anchore/syft:{{ .Version }}" - - "anchore/syft:{{ .Major }}.{{ .Minor }}" - - "anchore/syft:{{ .Major }}" - - # name of binary to release. - binaries: - - syft - - # path to Dockerfile. - dockerfile: Dockerfile - archives: - format: tar.gz builds: diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index dea78e257..000000000 --- a/Dockerfile +++ /dev/null @@ -1,20 +0,0 @@ -FROM alpine:latest AS build - -# add required ca-certificates for https request. -RUN apk --no-cache add ca-certificates - -# create empty directory for scratch image cache. -RUN mkdir -p /tmp-syft - -# reduce container image to scratch size. -FROM scratch - -# Copy directories and files needed to execute syft. -COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt -COPY --from=build /tmp-syft /tmp - -# copy syft binary to rootfs -COPY syft / - -# default path -ENTRYPOINT ["/syft"] diff --git a/README.md b/README.md index f5883d36d..efcfbe7eb 100644 --- a/README.md +++ b/README.md @@ -69,14 +69,6 @@ brew tap anchore/syft brew install syft ``` -**Container Image** - - -```bash - -docker run -v /var/run/docker.sock:/var/run/docker.sock anchore/syft:latest -o json alpine:latest -``` - ## Configuration Configuration search paths: