Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

Pkger does not work in a scratch image #146

Open
mmohaveri opened this issue Mar 16, 2021 · 0 comments
Open

Pkger does not work in a scratch image #146

mmohaveri opened this issue Mar 16, 2021 · 0 comments

Comments

@mmohaveri
Copy link

I'm trying to pack all of my SQL migrations into the final binary, when I do it in my local, or even in a docker image with golang:alpine as base everything works as planned.
But as soon as I switch to to a docker image with scratch as base image I get the "no file or directory" error when trying to read the files using pkger API.

Here someone has mentioned that pkger requires golang in runtime, and as a result it won't work in any docker image that does not have golang installed, i.e. scratch. First of all, is it true, if yes, why is it necessary and how can we go around the issue? And finally I think something like this should have been mentioned in the readme or documentations.

kevinbheda pushed a commit to raystack/siren that referenced this issue Mar 22, 2021
ravisuhag pushed a commit to raystack/siren that referenced this issue Aug 21, 2022
ravisuhag pushed a commit to raystack/siren that referenced this issue Aug 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant