Sign inSign up

sandinh/ambry

By sandinh

•Updated about 9 years ago

dockerize for linkedin's [ambry](https://github.com/ohze/ambry)

Image
0

404

sandinh/ambry repository overview

⁠ohze test on Rancher or Docker Swarm

  1. install docker Optional: install jq⁠ (run brew install jq if you use MacOS)
  2. install [Rancher]
sudo docker run -d --restart=unless-stopped -p 8080:8080 rancher/server:stable
  1. download rancher CLI⁠

  2. config⁠ rancher cli

  3. Prepare Rancher In Rancher UI:

  • add a Cattle environment Default
  • add 2 Host. One with label ambry.id=1, ambry.bootstrap.upgrade=1 The other with label ambry.id=2
  1. run the following rancher CLI commands:
# add `zk` stack
rancher --wait stack create zk --start -f zk/docker-compose.yml
# rancher inspect `rancher inspect zk |jq .serviceIds[0] -r` | jq .state
rancher --wait stack create ambry-mock --start -f ambry-bootstrap-upgrade/ambry-mock/docker-compose.yml
rancher --wait stack create ambry-bootstrap-upgrade --start -f ambry-bootstrap-upgrade/docker-compose.yml
rancher --wait stack create helix --start -f helix/docker-compose.yml
rancher --wait stack create ambry --start -f ambry/docker-compose.yml
rancher rm ambry-mock
rancher --wait stack create ambry-frontend --start -f ambry-frontend/docker-compose.yml

Bonus: create a service in rancher with image sandinh/helix then docker exec -it <id> sh to it to run helix commands, ex:

helix-admin.sh --zkSvr zoo1.zk:2181,zoo2.zk:2181,zoo3.zk:2181 --dropCluster Ambry_Ohze

Tag summary

Content type

Image

Digest

Size

191.5 MB

Last updated

about 9 years ago

docker pull sandinh/ambry