notary icon indicating copy to clipboard operation
notary copied to clipboard

Fix Dockerfile permissions and add .dockerignore

Open thaJeztah opened this issue 5 years ago • 0 comments

Dockerfile: fix permissions, use "notary" as default user

Before this, running the circle-ci integration tests showed some failures:

pkcs11 import was not found anywhere without a build tag, yay
find: './cmd/notary/tuf/gun': Permission denied
find: './cmd/notary/tuf/gun': Permission denied
find: './cmd/notary/tuf/gun': Permission denied
find: './cmd/notary/tuf/gun': Permission denied
find: './cmd/notary/tuf/gun': Permission denied
find: './cmd/notary/tuf/gun': Permission denied
lstat cmd/notary/tuf/gun: permission denied
lstat cmd/notary/tuf/gun: permission denied

With this patch applied, the tests run without issues.

This patch modifies the circle-ci script accordingly, and makes a small convenience change when running the tests locally; adding -it allows for the containers to be terminated (CTRL-C), which was not possible previously.

Add .dockerignore to ignore build and test artefacts

Ignore files that are unlikely needed in the dockerfile

thaJeztah avatar Oct 16 '19 11:10 thaJeztah