(https://github.com/sandino/Markdown-Cheatsheet) (перевод, оригинал)
Поиграть с разметкой Markdown можно на демо-странице.
(https://github.com/sandino/Markdown-Cheatsheet) (перевод, оригинал)
Поиграть с разметкой Markdown можно на демо-странице.
| #### NOTE STACK MUST BE CREATED WITH: --with-registry-auth E.g.: | |
| docker stack deploy mystack --compose-file /home/user/mystack/mystack.yaml --with-registry-auth | |
| ##### Create authentication username and password and store it in your docker config location, just because ##### | |
| mkdir --parents /etc/docker/registry/auth && cd "$_" | |
| docker run --rm --entrypoint htpasswd registry:2.7.0 -Bbn myusername thisismypassword >htpasswd | |
| # Create certificates, assuming 1st node's (the one with the registry container and the primary builder) FQDN is: node1.domain.local | |
| mkdir --parents /etc/docker/registry/certs && cd "$_" | |
| openssl genrsa -aes256 -out domain.key 4096 |
https://gist.github.com/dancheskus/365e9bc49a73908302af19882a86ce52
В результате будет 2 react проекта на 1 сервере доступных по разным ссылкам
Обновляемся
apt update && apt upgradeСтавим docker
sudo apt-get install apt-transport-https ca-certificates curl gnupg2 | https://www.thegeekstuff.com/2010/06/bash-array-tutorial/ | |
| http://wiki.bash-hackers.org/commands/classictest | |
| https://www.ibm.com/developerworks/ru/library/l-bash-test/ | |
| https://www.tutorialkart.com/bash-shell-scripting/check-if-variable-is-set/ | |
| http://www.opennet.ru/docs/RUS/bash_scripting_guide/c2171.html | |
| https://coder-booster.ru/learning/linux-beginners/conditional-operator-if-in-bash | |
| https://habr.com/sandbox/102954/ | |
| https://habr.com/ru/company/ruvds/blog/327248/ |