Skip to content

Commit

Permalink
Move spiffe-vault binary in the docker image to /usr/local/bin
Browse files Browse the repository at this point in the history
  • Loading branch information
marcofranssen committed Oct 1, 2021
1 parent 9a8b610 commit dcd25d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ RUN mkdir -p /app
WORKDIR /app
ENV VAULT_ADDR=
COPY --from=certs /etc/ssl/certs /etc/ssl/certs
COPY --from=builder build/bin/spiffe-vault .
COPY --from=builder build/bin/spiffe-vault /usr/local/bin/spiffe-vault
COPY --from=vault-binary bin/vault /usr/local/bin/vault
ENTRYPOINT [ "/app/spiffe-vault" ]
ENTRYPOINT [ "/usr/local/bin/spiffe-vault" ]
4 changes: 2 additions & 2 deletions example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ $ kubectl exec -n my-app -i -t \
$(kubectl -n my-app get pods -l app.kubernetes.io/name=spiffe-vault -o jsonpath="{.items[0].metadata.name}") \
-c spiffe-vault -- sh
$ export VAULT_ADDR=http://vault-internal.my-vault:8200
$ eval "$(./spiffe-vault auth -role local)"
$ eval "$(spiffe-vault auth -role local)"
$ vault list transit/keys
Keys
----
Expand Down Expand Up @@ -133,7 +133,7 @@ Using default tag: latest
The push refers to repository [docker.io/marcofranssen/busybox]
cfd97936a580: Mounted from library/busybox
latest: digest: sha256:febcf61cd6e1ac9628f6ac14fa40836d16f3c6ddef3b303ff0321606e55ddd0b size: 527
$ eval "$(./spiffe-vault auth -role local)"
$ eval "$(spiffe-vault auth -role local)"
$ cosign sign -key hashivault://cosign marcofranssen/busybox:latest
Pushing signature to: index.docker.io/marcofranssen/busybox:sha256-febcf61cd6e1ac9628f6ac14fa40836d16f3c6ddef3b303ff0321606e55ddd0b.sig
$ cosign verify -key hashivault://cosign marcofranssen/busybox:latest
Expand Down

0 comments on commit dcd25d2

Please sign in to comment.