Claude-skill-registry docker-testing
Guidance for running and debugging tests in Docker environments for FastAPI + Vue/Tailwind projects.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/docker-testing" ~/.claude/skills/majiayu000-claude-skill-registry-docker-testing && rm -rf "$T"
manifest:
skills/data/docker-testing/SKILL.mdsource content
Docker Testing Skill
Use this skill whenever you need to run the project’s test suite or diagnose issues inside Docker containers. It provides a summary of common commands and troubleshooting steps.
Running the test suite
- Build and start services: Use
to build all images and start the services in development mode.docker compose -f docker/docker-compose.yaml up --build - Run backend tests: Execute
to run the backend test suite.docker compose -f docker/docker-compose.yaml exec backend python -m pytest - Run frontend tests: For frontend unit tests, run
or use the appropriate Vitest command.docker compose -f docker/docker-compose.yaml exec frontend npm run test - Check logs: View logs for all services with
or for a specific service withdocker compose -f docker/docker-compose.yaml logs -f
ordocker compose -f docker/docker-compose.yaml logs -f backend
.frontend - Stop services: Shut down all running containers with
. Include thedocker compose -f docker/docker-compose.yaml down
flag to remove volumes for a clean start.-v
Troubleshooting tips
- Port conflicts: If services fail to start, check that the default ports (backend 8000, frontend 8080) are free. Modify port mappings in the compose file if necessary.
- Database issues: Ensure that the database service is healthy by running
and looking for the “(healthy)” status. Checkdocker compose -f docker/docker-compose.yaml ps
for errors.docker compose -f docker/docker-compose.yaml logs db - API connection errors: Test the backend directly with
to confirm it’s running. Verify the Nginx configuration incurl http://localhost:8000/docs
if the frontend cannot reachclient/nginx.conf
endpoints./api/*
Best practices
- Run tests in a clean environment. Stop containers and remove volumes if you suspect stale state.
- Use relative paths and environment variables. Avoid hard‑coded host dependencies so your setup is portable.
- When debugging, read container logs before rerunning tests. This saves time and surfaces issues like missing migrations or syntax errors.