This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
технология_docker [2025/03/04 09:36] val [Инструмент kaniko] |
технология_docker [2025/03/04 11:46] (current) val [Инструмент kaniko] |
||
---|---|---|---|
Line 669: | Line 669: | ||
<code> | <code> | ||
~/gowebd# time docker run \ | ~/gowebd# time docker run \ | ||
- | -v $(pwd):/workspace --rm \ | + | -v $(pwd):/workspace \ |
-v ~/.docker/config.json:/kaniko/.docker/config.json \ | -v ~/.docker/config.json:/kaniko/.docker/config.json \ | ||
gcr.io/kaniko-project/executor:latest \ | gcr.io/kaniko-project/executor:latest \ | ||
Line 675: | Line 675: | ||
--dockerfile=./Dockerfile \ | --dockerfile=./Dockerfile \ | ||
--context=/workspace \ | --context=/workspace \ | ||
- | --destination=server.corpX.un:5000/student/gowebd \ | + | --destination=server.corpX.un:5000/student/gowebd |
- | --cache=true --cache-copy-layers --cache-repo server.corpX.un:5000/dev-cache --use-new-run \ | + | |
- | --verbosity debug | + | |
</code><code> | </code><code> | ||
или, интерактивно: | или, интерактивно: | ||
Line 689: | Line 687: | ||
--dockerfile=./Dockerfile \ | --dockerfile=./Dockerfile \ | ||
--context=/workspace \ | --context=/workspace \ | ||
- | --destination=server.corp13.un:5000/student/gowebd | + | --destination=server.corpX.un:5000/student/gowebd |
</code><code> | </code><code> | ||
тестируем результат: | тестируем результат: | ||
</code><code> | </code><code> | ||
# docker run --pull=always --name gowebd -itd --rm \ | # docker run --pull=always --name gowebd -itd --rm \ | ||
- | -p 8000:80 server.corp13.un:5000/student/gowebd | + | -p 8000:80 server.corpX.un:5000/student/gowebd |
</code> | </code> | ||
==== Приложение apwebd ==== | ==== Приложение apwebd ==== |