Skip to content

feat: EASY_PROXY_DOCKER_RUN_OPTS — extra docker run options (#32)#33

Merged
montoyaedu merged 1 commit into
masterfrom
feat/issue-32-docker-run-opts
May 18, 2026
Merged

feat: EASY_PROXY_DOCKER_RUN_OPTS — extra docker run options (#32)#33
montoyaedu merged 1 commit into
masterfrom
feat/issue-32-docker-run-opts

Conversation

@montoyaedu
Copy link
Copy Markdown
Member

Problem

easy proxy create ran a fixed docker run--name, the volumes, -p 80:80 -p 443:443, the image. No way to add extra options: extra published ports (e.g. -p 8089:8089), resource limits, etc. Operators set EASY_PROXY_DOCKER_RUN_OPTS in their profile expecting it to be honoured — but the CLI never read it, so it was silently ignored.

Fix

easy proxy create splices $EASY_PROXY_DOCKER_RUN_OPTS (word-split) into the docker run, before the image:

export EASY_PROXY_DOCKER_RUN_OPTS="-p 8089:8089"
easy proxy create   # → docker run -d --name easy-proxy ... -p 8089:8089 -t ethiclab/nginx-easy

Unset → behaviour unchanged.

Changes

  • commands/proxy.shcreate reads EASY_PROXY_DOCKER_RUN_OPTS via read -ra into an array spliced into the docker run.
  • test/create.bats — 3 tests (single opt, multiple opts, unset); test_helper.bash unsets the var for test isolation.
  • CLAUDE.md, CHANGELOG.md updated.

Test plan

TDD — tests written first, watched fail, then made green.

npm run lint   # exits 0
bats test/     # 52/52 (49 + 3 new)

Closes #32

🤖 Generated with Claude Code

`easy proxy create` ran a fixed `docker run` — there was no way to add
extra options (extra published ports, resource limits, ...). Operators
set EASY_PROXY_DOCKER_RUN_OPTS expecting it to be honoured, but the CLI
never read it.

`easy proxy create` now splices $EASY_PROXY_DOCKER_RUN_OPTS (word-split)
into the `docker run`, before the image. Unset → behaviour unchanged.

- commands/proxy.sh: create reads EASY_PROXY_DOCKER_RUN_OPTS
- test/create.bats: 3 tests; test_helper unsets the var for isolation
- CLAUDE.md, CHANGELOG.md updated

`npm run lint` exits 0; the bats suite passes 52/52.

Closes #32

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@montoyaedu montoyaedu merged commit bfb0cff into master May 18, 2026
2 checks passed
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

Successfully merging this pull request may close these issues.

EASY_PROXY_DOCKER_RUN_OPTS — pass extra options to docker run

1 participant