kevinsullivan / moralpain_dev

VSCode + Docker container development environment for moral distress project
0 stars 9 forks source link

Config problems on new install #138

Open kevinsullivan opened 1 year ago

kevinsullivan commented 1 year ago

I just cloned my repo to my local machine, cd'd into directory, did "code ." and re-open in container. I got some error messages as follows. Off to debug them now if I can.

Running the postCreateCommand from devcontainer.json...

[235048 ms] Start: Run in container: /bin/sh -c /opt/bootstrap Running "flutter pub get" in moraldistress... 16.5s Running "flutter pub get" in dart... 5.3s /opt/bootstrap: line 15: cd: /workspaces/moralpain_dev/infrastructure/submissions_site: No such file or directory Running "flutter pub get" in dart... 2,405ms /opt/bootstrap: line 19: cd: /workspaces/moralpain_dev/infrastructure/analytics_site: No such file or directory Running "flutter pub get" in dart... 2,549ms /opt/bootstrap: line 23: cd: /workspaces/moralpain_dev/infrastructure/collection_site: No such file or directory Waiting for another flutter command to release the startup lock... Running "flutter pub get" in dart... 1,988ms Running the postStartCommand from devcontainer.json...

[273089 ms] Start: Run in container: /bin/sh -c adb connect host.docker.internal:5555 failed to connect to 'host.docker.internal:5555': Connection refused Done. Press any key to close the terminal.

kevinsullivan commented 1 year ago

Ok, it looks like collection_site, analytics_site, and submission_site directories no longer exist in this project. That must be the result of needed clean-up, so that's good.

The problem is that to fix this minor problem I have to load and build the separate container project, as the file needing changing is in /opt and thus not under version control of this project.

kevinsullivan commented 1 year ago

To fix the problem, I've moved the bootstrap script from the container definition project into the bin directory in this project (and have updated this project's devcontainer.json file accordingly. FIXED.