Skip to content

Commit

Permalink
add user to docker-group
Browse files Browse the repository at this point in the history
  • Loading branch information
jprahladan committed Nov 18, 2021
1 parent 5698429 commit e01a1da
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 66 deletions.
30 changes: 0 additions & 30 deletions docker/docker-compose.yaml.prash01

This file was deleted.

92 changes: 59 additions & 33 deletions src/data/Experiments.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/data/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Installing Scylla via Docker
=============================
Access the docker-config file in `/merge-experiments/docker/docker-compose.yml`. Use the following command to install the three docker-containers running scylla:
```
docker compose up -d
docker-compose up -d
```


Expand Down
4 changes: 2 additions & 2 deletions src/data/ubuntu18setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e01a1da

Please sign in to comment.