Change order of python and node setup (#8471)
I was getting the following error since the frontend container was declared to depend onthe backend container when running `inv new-env`: ``` Error response from daemon: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "dockerpythonvenv/bin/python": stat dockerpythonvenv/bin/python: no such file or directory: unknown ``` To fix this issue, the order or node and python setup in the task need to match the order of the containers.
This commit is contained in:
Родитель
57bbc0d7ea
Коммит
6fd556a789
4
tasks.py
4
tasks.py
|
@ -146,13 +146,13 @@ def setup(ctx):
|
|||
ctx.run("docker-compose down --volumes")
|
||||
print("* Building Docker images")
|
||||
ctx.run("docker-compose build")
|
||||
print("* Install Node dependencies")
|
||||
npm_install(ctx)
|
||||
print("* Creating a Python virtualenv")
|
||||
ctx.run(
|
||||
"docker-compose run --rm backend python -m venv dockerpythonvenv",
|
||||
**PLATFORM_ARG,
|
||||
)
|
||||
print("* Install Node dependencies")
|
||||
npm_install(ctx)
|
||||
print("Done!")
|
||||
print("* Updating pip")
|
||||
ctx.run(
|
||||
|
|
Загрузка…
Ссылка в новой задаче