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

Packr v2 not working with Docker #286

Open
dharmjit opened this issue Apr 3, 2021 · 2 comments
Open

Packr v2 not working with Docker #286

dharmjit opened this issue Apr 3, 2021 · 2 comments

Comments

@dharmjit
Copy link

dharmjit commented Apr 3, 2021

Hello,

I am opening this Issue related to #85 which is marked closed, but I am facing this issue with Packr v2. I am creating a box to include my DB schema migration file as below, it is working locally but not inside Docker Container

migrations := &migrate.PackrMigrationSource{
        Box: packr.New("migrations", "./../../pkg/repository/v1/postgres/schema"),
}
@dharmjit
Copy link
Author

Hello, Any update on this. Thanks

@JDiPierro
Copy link

Packr v2 works fine inside Docker, you just need to make sure the path to the file inside the container is the same as it is in your local environment.

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

2 participants