Closed andreareginato closed 4 months ago
@kentcdodds @fredericrous do you have any hint on how to approach this issue? Happy to give some time, if I can be guided on where the changes should be made.
im not a litefs/consul expert but one idea to make litefs go away for your use case: you could create a multi stage docker build, install litefs in stage 2. and target stage 1 when you docker build for local dev. target stage 2 for CI. have a look at https://docs.docker.com/build/building/multi-stage/ there is also a good example of multi stage docker build on the pnpm documentation website https://pnpm.io/docker
This could be closed now. https://github.com/epicweb-dev/epic-stack/pull/741 addresses this.
After a short conversation with @kentcdodds on Discord, I'm opening this issue in order to run the docker image locally. As Kent said, it may be worth removing LiteFS from the stack for this use case (doing that would allow you to avoid the consul service, which is the core issue I'm facing). Could be useful to add some docs on this.
Here I share my (failed) attempts.
When I run the docker image I get the following error connected to consul.
I believe there is the need to install and configure consul, but here comes my lack of knowledge on the topic. What I did was to run Consul locally, which seems to work just fine.
Then I tell the remix app container to access the host machine's localhost in order to connect to Consul, but still, I get similar errors. It seems I'm missing some important pieces due to my lack of Docker and dev-ops knowledge.
This makes me think that Kent idea, of removing litefs locally, could be the best way to go (to simplify things).
Thanks everyone