Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ffgan/chacra-containerize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

1. what's this

Deploy chacra to a container.

This is essentially done by following an Ansible script, using Docker Compose to start RabbitMQ and PostgreSQL. Then, run chacra and Nginx inside the container.

It's in a pretty raw state right now, just enough to start and test chacra.

2. start

1. build chacra image

cd chacra_image/
sudo docker build -t chacra .
cd ..

2. start

sudo docker-compose up -d
sleep 30

please wait about 30s.

3. confiugre chacractl and test chacra

install chacractl first

pip install chacractl

set below txt to ~/.chacractl

# This file was automatically generated by the chacractl CLI
# make sure to update it with the correct user and key to talk to the API

url = "http://127.0.0.1/"
user = "admin"
key = "secret"
ssl_verify = False

4. test

wget https://chacra.ceph.com/r/libboost/master/9ea1fb8bdad548a88004db87761f173aa50dcc85/ubuntu/jammy/flavors/default/pool/main/b/boost1.87/ceph-libboost-atomic1.87-dev_1.87.0-1.1_amd64.deb

ls *.deb | chacractl binary create libboost/master/9ea1fb8bdad548a88004db87761f173aa50dcc85/ubuntu/jammy/amd64/flavors/default

rm -f ./ceph-libboost-atomic1.87-dev_1.87.0-1.1_amd64.deb
# wget  http://127.0.0.1/binaries/libboost/master/9ea1fb8bdad548a88004db87761f173aa50dcc85/ubuntu/jammy/amd64/flavors/default/ceph-libboost-atomic1.87-dev_1.87.0-1.1_amd64.deb

5. clean service

rm -f ./ceph-libboost-atomic1.87-dev_1.87.0-1.1_amd64.deb
sudo docker compose down

3. override conf without rebuild image

please see compose.yml:50 .

4. important warn

  1. Please do not use it for prod.

  2. Just use it for test,after merge into chacra,this repo will be archive.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published