-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5698429
commit e01a1da
Showing
4 changed files
with
62 additions
and
66 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,31 +9,6 @@ sudo apt-get install build-essential git bubblewrap unzip screen | |
``` | ||
|
||
|
||
## Install OPAM/OCAML | ||
|
||
``` | ||
bash -c "sh <(curl -fsSL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh)" | ||
# environment setup | ||
opam init | ||
eval $(opam env) | ||
# install given version of the compiler | ||
opam switch create 4.12.0 | ||
eval $(opam env) | ||
# check you got what you want | ||
which ocaml | ||
ocaml -version | ||
opam install dune irmin lwt lwt_ppx ppx_irmin | ||
``` | ||
|
||
## Install SCYLLA OCAML BINDINGS | ||
|
||
``` | ||
opam pin add scylla git+https://[email protected]/gowthamk/ocaml-scylla | ||
``` | ||
|
||
## Install DOCKER | ||
|
||
|
@@ -61,6 +36,52 @@ opam pin add scylla git+https://[email protected]/gowthamk/ocaml-scylla | |
``` | ||
|
||
|
||
## Install Docker-Compose | ||
|
||
(reference)[https://docs.docker.com/compose/install/] | ||
``` | ||
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | ||
sudo chmod +x /usr/local/bin/docker-compose | ||
sudo docker-compose --version | ||
``` | ||
|
||
## Set PERMISSIONS for USER on DOCKER | ||
``` | ||
sudo usermod -aG docker $USER | ||
``` | ||
|
||
|
||
## Install OPAM/OCAML | ||
|
||
``` | ||
bash -c "sh <(curl -fsSL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh)" | ||
# environment setup | ||
opam init | ||
eval $(opam env) | ||
# install given version of the compiler | ||
opam switch create 4.12.0 | ||
eval $(opam env) | ||
# check you got what you want | ||
which ocaml | ||
ocaml -version | ||
opam install dune irmin lwt lwt_ppx ppx_irmin | ||
``` | ||
|
||
## Install SCYLLA OCAML BINDINGS | ||
|
||
``` | ||
opam pin add scylla git+https://[email protected]/gowthamk/ocaml-scylla | ||
``` | ||
|
||
|
||
## Install REPOSITORY | ||
|
@@ -74,23 +95,28 @@ dune build | |
``` | ||
|
||
## Install Docker-Compose | ||
|
||
(reference)[https://docs.docker.com/compose/install/] | ||
``` | ||
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose | ||
|
||
## Test execution | ||
|
||
sudo chmod +x /usr/local/bin/docker-compose | ||
### Startup the ScyllaDB instances | ||
|
||
#### Using Docker | ||
|
||
sudo docker-compose --version | ||
``` | ||
sudo docker run --name scylla -d -p 9042:9042 scylladb/scylla | ||
sudo docker run --name scylla2 -d -p 9043:9042 scylladb/scylla --seeds="$(docker inspect --format='{{ .NetworkSettings.IPAddress }}' scylla)" | ||
## Test execution | ||
sudo docker run --name scylla3 -d -p 9044:9042 scylladb/scylla --seeds="$(docker inspect --format='{{ .NetworkSettings.IPAddress }}' scylla)" | ||
### Startup the ScyllaDB instances | ||
sudo docker exec -it scylla nodetool status | ||
sudo docker exec -it scylla cqlsh | ||
``` | ||
|
||
#### Using Docker-Compose | ||
``` | ||
sudo docker-compose up -d | ||
sudo docker container ls | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,15 +20,15 @@ opam pin add scylla git+https://[email protected]/gowthamk/ocaml-scylla | |
sudo apt-get update | ||
sudo apt-get install ca-certificates curl gnupg lsb-release | ||
|
||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo -H gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | ||
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | ||
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu bionic stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | ||
|
||
sudo apt-get update | ||
sudo apt-get install docker-ce docker-ce-cli containerd.io | ||
|
||
|
||
|
||
sudo curl -L "https://github.com/docker/compose/releases/download/v2.1.1/docker-compose-Linux-x86_64" -o /usr/local/bin/docker-compose | ||
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-Linux-x86_64" -o /usr/local/bin/docker-compose | ||
sudo chmod +x /usr/local/bin/docker-compose | ||
sudo docker-compose --version | ||
|
||
|