dawarich icon indicating copy to clipboard operation
dawarich copied to clipboard

Failing to start dev container (error: "Could not locate Gemfile")

Open markkorput opened this issue 5 months ago • 0 comments

OS & Hardware Apple M2 MacBook Pro macOS 15.6.1 (24G90)

Version Dawarich: 7f4403021f75307f275134ecf850e980d605c2a6 (current master branch) VSCode: 1.104.2

Describe the bug I'm trying to follow the instructions in the DEVELOPMENT.md and start a dev container. (I haven't been developing using Ruby and/or Rails for a long time and would very much like to keep all the ruby-specific dependencies inside docker containers as much as possible).

Trying to start the dev container fails with the following error:

Running the postCreateCommand from devcontainer.json...

[33107 ms] Start: Run in container: /bin/sh -c yarn install && bundle config set --local path 'vendor/bundle' && bundle install --jobs 20 --retry 5
yarn install v1.22.22
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...

success Saved lockfile.
Done in 0.10s.
Could not locate Gemfile

What's next:
    Try Docker Debug for seamless, persistent debugging tools in any container or image → docker debug da1d0258a7f2eea59858dd808a68aa0210fc60f3b9bd846be7af18e0ee4c7967
    Learn more at https://docs.docker.com/go/debug-cli/
[34341 ms] postCreateCommand from devcontainer.json failed with exit code 10. Skipping any further user-provided commands.
Done. Press any key to close the terminal.

Note that I've made two one-liner patches to use the kartoza/postgis image instead of the postgis/postgis:17-3.5-alpine image in the .devcontainer/docker-compose.yml and the docker/docker-compose.yml (which works for getting dawarich to run locally using docker compose).

To Reproduce Steps to reproduce the behavior:

  1. I open the clean checkout of the master branch
  2. I apply the postgis/postgis:17-3.5-alpine -> kartoza/postgis patch mentioned above
  3. I press CMD+SHIFT+P to open the vscode command palette and select the Dev Containers: Rebuild Without Cache and Reopen in Container command
  4. I get the Could not locate Gemfile error

Expected behavior A running dev container without errors

Screenshots N/A

Logs See bug description above

Additional context I'm not familiar with dev containers, but looking at .devcontainer/docker-compose.yml and .devcontainer/Dockerfile I'm failing to see where/how the application's content (including the missing Gemfile) should be added to the docker container.

markkorput avatar Sep 28 '25 12:09 markkorput