wpt.fyi icon indicating copy to clipboard operation
wpt.fyi copied to clipboard

wptd_exec_it requires some other step first

Open foolip opened this issue 3 years ago • 0 comments

https://github.com/web-platform-tests/wpt.fyi/blob/main/docs/app-engine.md#deploy-the-app has instructions for deploying using Docker:

wptd_exec_it make deploy_production PROJECT=wptdashboard APP_PATH=webapp/web
wptd_exec_it make deploy_production PROJECT=wptdashboard APP_PATH=results-processor
wptd_exec_it make deploy_production PROJECT=wptdashboard APP_PATH=api/query/cache/service

But something is missing, wptd_exec_it is defined in util/commands.sh and there are no instructions to source that into the current shell or similar.

webapp/README.md says that one should source util/commands.sh so that's probably missing from the docs.

I worked around this by putting this directly into my shell:

DOCKER_INSTANCE=wptd-dev-instance
function wptd_exec_it() {
  docker exec -it -u $(id -u $USER) "${DOCKER_INSTANCE}" sh -c "$*"
}

foolip avatar Mar 03 '22 11:03 foolip