Files
cecemaut/README.md
Alexey Berezhok c2b717bea6 Initial commit
2026-02-19 22:19:55 +03:00

27 lines
1.1 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
bash utils/make_app_keys.sh .
bundle install
bundle exec sequel -m migration sqlite://db/base.sqlite
bundle exec ruby app.rb
curl -X POST http://127.0.0.1:4567/api/v1/login -H "Content-Type: application/x-www-form-urlencoded" -d 'login=admin&password=admin'
curl -X POST http://127.0.0.1:4567/api/v1/servers -H "Content-Type: application/x-www-form-urlencoded" -d 'token=...'
# 1⃣ Перейдите в корень проекта
cd /home/alexey/projects/workspace-zed/certcenter
# 2⃣ Соберите образ
docker build -t certcenter:latest .
# 3⃣ Запустите контейнер, пробросив порт 9090 наружу
# и указав, что каталог /tmp/ca на хосте должен быть смонтирован в /tmp/ca внутри контейнера
docker run -d \
--name certcenter \
-p 9090:4567 \
-v /tmp/ca:/opt/cert/certcenter/ca \
-v /tmp/logs:/opt/cert/certcenter/logs \
certcenter:latest
docker run -d --name certcenter -p 9090:4567 -v /opt/ca:/opt/cert/certcenter/ca -v /opt/logs:/opt/cert/certcenter/logs ertcenter:latest