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.
|
|
|
|
|
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
|