An example Diego Docker container gotcha
How to get a Permission denied from Bundler using Diego
- Install Lattice
- Make sure it's running:
ltc listshould say "No apps to display." - Start watching logs in one terminal:
ltc logs task1 - In another: clone this repo and cd to the dir
- Push this task:
curl -i -XPOST http://192.168.11.11:8888/v1/tasks -d@task-payload.json - The exception should appear in the watched logs
This contrived example reflects a mistake I made in the real world: I bundled once in the Dockerfile and again in the script I wanted to run. A similar situation might occur if the /app dir was only accessible by root.