Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin Not Found in K8s Sample #136

Open
5t33 opened this issue Apr 18, 2022 · 1 comment
Open

Plugin Not Found in K8s Sample #136

5t33 opened this issue Apr 18, 2022 · 1 comment

Comments

@5t33
Copy link

5t33 commented Apr 18, 2022

When navigating to "samples" and running:

 docker run \
  --rm \
  --privileged \
  -v /dev:/dev \
  -v ${PWD}:/build:ro \
  -v ${PWD}/packer_cache:/build/packer_cache \
  -v ${PWD}/output-arm-image:/build/output-arm-image \
  -v ${HOME}/.ssh/id_rsa.pub:/config/id_rsa.pub:ro \
  -e PACKER_CACHE_DIR=/build/packer_cache \
  -w /build/k8s \
  ghcr.io/solo-io/packer-plugin-arm-image:v0.2.3 build -var local_ssh_public_key=/config/id_rsa.pub .

I get the following error:

Error: no plugin installed for github.com/solo-io/arm-image >= 0.2.5

Did you run packer init for this project ?

I can solve this by adding the /root/.config directory as a volume:

-v ${PWD}/.config:/root/.config

and then running init like so:

docker run \
  --rm \
  --privileged  \
  -v ${PWD}/.config:/root/.config \
  -v /dev:/dev \
  -v ${PWD}:/build:ro \
  -v ${PWD}/packer_cache:/build/packer_cache \
  -v ${PWD}/output-arm-image:/build/output-arm-image \
  -v ${HOME}/.ssh/id_rsa.pub:/config/id_rsa.pub:ro \
  -e PACKER_CACHE_DIR=/build/packer_cache \
  -w /build/k8s \
 ghcr.io/solo-io/packer-plugin-arm-image:latest init .

followed by the build command, which then works.

So one solution might just be to add .config to the gitignore and update the docs.

@5t33
Copy link
Author

5t33 commented Apr 20, 2022

I tried moving the build location of the plugin in the docker file to a few different locations, such as /root/packer/plugins, /root/.packer.d/plugins, etc and none of them have worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant