Hi,
I'm trying to build a docker image using packer in a Bitbucket Pipeline 
like so:
*- **step: &build*
* image: hashicorp/packer*
* services:*
* - docker*
* script:*
* - export AWS_DEFAULT_REGION=$AWS_REGION*
* - export AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID*
* - export AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY*
* - packer --version*
* - packer build -var 'version=$DOCKER_TAG' cicd/packer/packer.pkr.hcl*

But this fails with the following error:
*==> docker.telsy: Starting docker container...*
* docker.telsy: Run command: docker run -v 
/root/.config/packer/tmp3980589757:/packer-files -d -i -t 
--entrypoint=/bin/sh -- ubuntu:20.04*
*==> docker.telsy: Error running container: Docker exited with a non-zero 
exit status.*
*==> docker.telsy: Stderr: docker: Error response from daemon: 
authorization denied by plugin pipelines: -v only supports 
$BITBUCKET_CLONE_DIR and its subdirectories.*

Is there a way to specify in Packer not to use the default path to mount 
into the container, but rather the BITBUCKET_CLONE_DIR?

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/hashicorp/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/b32f7c1d-8416-4e08-8025-595469a724e2n%40googlegroups.com.

Reply via email to