Found in the hands-on acceptance test of next (092176d), #356.
Steps
On a fresh clone of next, run make devserver.
What happened
The target builds the image, then runs it with -v $(CURDIR)/config.dev.yml:/etc/pixa/config.yml:ro.
No config.dev.yml exists. It is listed in .gitignore, and no script or document says to create it.
Docker therefore creates a root-owned directory named config.dev.yml in the checkout. pixad exits at once: failed to parse config file /etc/pixa/config.yml: failed to read config: read /etc/pixa/config.yml: is a directory.
Even with a valid file, the target sets no PIXA_SIGNING_KEY, so the file must hold the key. debug is also off, so the login page at http://localhost:8080/ refuses its form.
Disclosure: this replays the target's docker run line with the built image, rather than running make devserver itself, to keep off the shared host port 8080.
What should happen
make devserver on a fresh clone starts a server whose login page works at http://localhost:8080/:
no config file mount (environment variables cover every setting);
a fresh random PIXA_SIGNING_KEY each run, made as script/docker-smoke makes it, and printed so the developer can log in;
PIXA_DEBUG=true.
Model: opus-5-5
Found in the hands-on acceptance test of `next` (`092176d`), https://git.eeqj.de/sneak/pixa/issues/356.
## Steps
On a fresh clone of `next`, run `make devserver`.
## What happened
- The target builds the image, then runs it with `-v $(CURDIR)/config.dev.yml:/etc/pixa/config.yml:ro`.
- No `config.dev.yml` exists. It is listed in `.gitignore`, and no script or document says to create it.
- Docker therefore creates a root-owned directory named `config.dev.yml` in the checkout. pixad exits at once: `failed to parse config file /etc/pixa/config.yml: failed to read config: read /etc/pixa/config.yml: is a directory`.
- Even with a valid file, the target sets no `PIXA_SIGNING_KEY`, so the file must hold the key. `debug` is also off, so the login page at `http://localhost:8080/` refuses its form.
Disclosure: this replays the target's `docker run` line with the built image, rather than running `make devserver` itself, to keep off the shared host port 8080.
## What should happen
`make devserver` on a fresh clone starts a server whose login page works at `http://localhost:8080/`:
- no config file mount (environment variables cover every setting);
- a fresh random `PIXA_SIGNING_KEY` each run, made as `script/docker-smoke` makes it, and printed so the developer can log in;
- `PIXA_DEBUG=true`.
Model: opus-5-5
make devserver now mounts no config file. Each run it sets a new random PIXA_SIGNING_KEY, printed for login, and PIXA_DEBUG=true. The .gitignore entry for config.dev.yml is removed.
Model: opus-5-5
PR: https://git.eeqj.de/sneak/pixa/pulls/364 (branch `issue-360-devserver-env`).
`make devserver` now mounts no config file. Each run it sets a new random `PIXA_SIGNING_KEY`, printed for login, and `PIXA_DEBUG=true`. The `.gitignore` entry for `config.dev.yml` is removed.
Model: opus-5-5
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Found in the hands-on acceptance test of
next(092176d), #356.Steps
On a fresh clone of
next, runmake devserver.What happened
-v $(CURDIR)/config.dev.yml:/etc/pixa/config.yml:ro.config.dev.ymlexists. It is listed in.gitignore, and no script or document says to create it.config.dev.ymlin the checkout. pixad exits at once:failed to parse config file /etc/pixa/config.yml: failed to read config: read /etc/pixa/config.yml: is a directory.PIXA_SIGNING_KEY, so the file must hold the key.debugis also off, so the login page athttp://localhost:8080/refuses its form.Disclosure: this replays the target's
docker runline with the built image, rather than runningmake devserveritself, to keep off the shared host port 8080.What should happen
make devserveron a fresh clone starts a server whose login page works athttp://localhost:8080/:PIXA_SIGNING_KEYeach run, made asscript/docker-smokemakes it, and printed so the developer can log in;PIXA_DEBUG=true.Model: opus-5-5
PR: #364 (branch
issue-360-devserver-env).make devservernow mounts no config file. Each run it sets a new randomPIXA_SIGNING_KEY, printed for login, andPIXA_DEBUG=true. The.gitignoreentry forconfig.dev.ymlis removed.Model: opus-5-5