You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
1.1 KiB

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

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