N
Size: a a a
N
ПГ
A
frontend:
image: ${REGISTRY}/image:${IMAGE_TAG}
deploy:
mode: replicated
replicas: 2
update_config:
parallelism: 1
delay: 10s
api:
image: ${REGISTRY}/image:${IMAGE_TAG}
deploy:
mode: replicated
replicas: 2
update_config:
parallelism: 1
delay: 10s
docker service ps ...
все ок, docker service log my_service
- показывает что nginx поднимается, проходит несколько хелсчеков и уходит в ребут.docker-compose
- работает без проблем. Ресурсов на сервере хватает точно. Может подскажите что упустил или как и писал выше готов оплатить консультациюPP
LS
❯ docker run --rm -v `pwd`/artifacts:`pwd`/artifacts 292114b50f9e sh -c "pytest --cov=. --cov-report xml:artifacts/cobertura-coverage.xml --junitxml=artifacts/rspec.xml -vvv . && ls -la artifacts" && ls -la artifacts
============================= test session starts ==============================
platform linux -- Python 3.8.3, pytest-6.1.1, py-1.9.0, pluggy-0.13.1 -- /usr/local/bin/python
cachedir: .pytest_cache
rootdir: /app
plugins: cov-2.10.1
collecting ... collected 1 item
test_main.py::test_read_main PASSED [100%]
----------------- generated xml file: /app/artifacts/rspec.xml -----------------
----------- coverage: platform linux, python 3.8.3-final-0 -----------
Coverage XML written to file artifacts/cobertura-coverage.xml
============================== 1 passed in 0.41s ===============================
total 16
drwxr-xr-x 2 app app 4096 Oct 14 11:28 .
drwxr-xr-x 1 app app 4096 Oct 14 11:28 ..
-rw-r--r-- 1 app app 1705 Oct 14 11:28 cobertura-coverage.xml
-rw-r--r-- 1 app app 291 Oct 14 11:28 rspec.xml
total 0
drwxr-xr-x 2 wizard staff 64 Oct 14 12:57 .
drwxr-xr-x 15 wizard staff 480 Oct 14 12:57 ..
GG
LS
artifacts
контейнера, окажутся в директории хоста artifacts
LS
pwd в
нутри контейнера, берет путь до моей локальной директории 🙁LS
PG
GG
LS
GG
/artifacts:
./artifacts
?LS
LS
GG
LS
docker: Error response from daemon: invalid volume specification: '/artifacts:./artifacts': invalid mount config for type "bind": invalid mount path: './artifacts' mount path must be absolute.
GG
LS
GG