File tree Expand file tree Collapse file tree 1 file changed +36
-2
lines changed Expand file tree Collapse file tree 1 file changed +36
-2
lines changed Original file line number Diff line number Diff line change 1
- apt update
2
- apt install docker.io
1
+ # Docker
2
+ sudo apt-get update
3
+ sudo apt-get -yq install ca-certificates curl
4
+ sudo install -m 0755 -d /etc/apt/keyrings
5
+ sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
6
+ sudo chmod a+r /etc/apt/keyrings/docker.asc
7
+ echo \
8
+ " deb [arch=$( dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
9
+ $( . /etc/os-release && echo " $VERSION_CODENAME " ) stable" | \
10
+ sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
11
+ sudo apt-get update
12
+ sudo apt-get install -yq docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
13
+ sudo service docker start
14
+ sudo docker run hello-world
15
+ echo Docker installed successfully.
16
+
17
+ # edit.tosdr.org
18
+ git clone https://github.com/tosdr/edit.tosdr.org.git
19
+ cd edit.tosdr.org
20
+ docker compose build
21
+ docker network create elasticsearch
22
+ docker network create dbs
23
+ docker compose up -d
24
+ docker exec -it edittosdrorg-web-1 rails db:seed
25
+
26
+ # pyenv
27
+ apt install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
28
+ curl https://pyenv.run | bash
29
+ echo -e ' export PYENV_ROOT="$HOME/.pyenv"\nexport PATH="$PYENV_ROOT/bin:$PATH"' >> ~ /.bashrc
30
+ echo -e ' eval "$(pyenv init --path)"\neval "$(pyenv init -)"' >> ~ /.bashrc
31
+ source ~ ! /.bashrc
32
+
33
+ # Hypothesis
34
+ pyenv install 3.8.12
35
+ pyenv init
36
+ pyenv shell 3.8.12
You can’t perform that action at this time.
0 commit comments