how can run multiple commands for. I try to run krakend and export the openapi document.
version: "3"
services:
krakend_ce:
image: devopsfaith/krakend:watch
volumes:
- ./krakend:/etc/krakend
ports:
- "9000:9000"
command: ["run", "-d", "-c", "/etc/krakend/krakend.json"]
# how to run krakend openapi export -h
i want to krakend openapi export -hafter container is started
Judging by their Dockerfile from here, they set
ENTRYPOINT ["/entrypoint.sh"]andCMD ["krakend" "run" "-c" "/etc/krakend/krakend.json"].What you need to do, is:
/bin/bash.cmdto use the new file.I'd build a custom Docker image for that, but setting it in docker-compose.yml is also feasible.