Service cloner for development purpose
-
Prepare your host with zfs packages
apt-get install zfsutils-linux zpool create sylar /dev/sdb /dev/sdc
-
Install source
mkdir /opt/sylar cd /opt/sylar git clone https://github.com/Groupe-maison-fr/Sylar.git
-
Customize the
/opt/sylar/data
service configurations -
Start the services
docker-compose up -d docker-compose logs -f
-
GUI can be accessed on
http://xxx.xxx.xxx.xxx:8080/app/services
sudo apt dist-upgrade
sudo apt-get update
sudo apt-get install -y vim
sudo visudo
sudo reboot
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
sudo apt install -y apt-transport-https ca-certificates curl software-properties-common zfsutils-linux jq make
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
sudo bash -c 'echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null '
cat /etc/apt/sources.list.d/docker.list
sudo apt update
apt-cache policy docker-ce
sudo apt install -y docker-ce docker-compose
sudo mkdir /opt/sylar
sudo chown sylar:sylar /opt/sylar
sudo apt-get install -y fish
sudo chsh $USER --shell /usr/bin/fish
sudo mkdir /zpool
sudo dd if=/dev/zero of=/zpool/sylar bs=1M count=500
sudo zpool create sylar /zpool/sylar
zfs list
cd /opt/sylar
make docker-compose-up-dev-amd64
sudo apt-get install -y mariadb-client postgresql-client
docker-compose -f tests/test-env/docker-compose.yaml up -d
sleep 5
cd tests/test-env; ./init-mysql.sh --force
docker-compose exec runner bin/console service:start-master mysql
docker ps
- psalm
- log viewer
- create
mutagen.yml
sync:
defaults:
flushOnCreate: true
watch:
mode: "force-poll"
pollingInterval: 2
ignore:
paths:
- var/cache
- node_modules
- .DS_Store
- .git
- .idea
permissions:
defaultFileMode: 0666
defaultDirectoryMode: 0777
sylar-session:
alpha: .
beta: sylar@sylar-dev:/opt/sylar
- add in
~/.ssh/config
Host sylar-dev
HostName 192.168.xxx.xxx
User sylar
mutagen project start