Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails locally with volume issue #15

Open
elliott-king opened this issue Mar 27, 2024 · 1 comment
Open

Fails locally with volume issue #15

elliott-king opened this issue Mar 27, 2024 · 1 comment

Comments

@elliott-king
Copy link

Running make develop locally fails with a volume issue:

Error response from daemon: invalid mount config for type "bind": bind source path does not exist: /.../react-flask-starter/volume

The default volume dir does not exist. Adding a volume directory fixes this.

May just be caused by my older version of Docker:

;docker --version
Docker version 20.10.5, build 55c4c88
@creaturenex
Copy link
Contributor

Hello @elliott-king

I had a chance to look at what is causing this issue. This app differs from all the other starter apps per line 73 on docker-compose.yml on the volume configuration. It also specifies v2.3.0 for the image which added lots of S3 features rather than lastest.

volumes:
- "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"

Based on recent documentation this seems to be preferred method from Localstack filesystems. If the host doesn't have a local cache it creates one in the app working directory.

The other starter apps use the following, which I believe based on my research that it creates a cache or tmp directory for the localstack not within the app directory, but on the host machine hence you don't see a volume directory in the other apps when running make develop

volumes:
- 'localstack:/var/lib/localstack'`

Additionally, in troubleshooting this issue, I tried to access the localhost bucket via localhost:4566, 0.0.0.0:4566, 127.0.0.1:4566, and https://localhost.localstack.cloud:4566/ and it would not work for me. Which led me to this issue at local stack #1392 . The thread saying the local dashboard isn't working but the cloud version does at app.localstack.cloud. This cloud dashboard did work for me.

@nbeck415 what are your thoughts?

  • Update all other repo that use localstack to the new documentation?
  • Add .volumes to gitignore from make develop?
  • Uses latest image?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants