Skip to content

Commit

Permalink
Install Docker, Phoenix, pyenv, next: Hypothesis
Browse files Browse the repository at this point in the history
  • Loading branch information
michielbdejong committed Jun 3, 2024
1 parent 0ae3b97 commit f244ac4
Showing 1 changed file with 36 additions and 2 deletions.
38 changes: 36 additions & 2 deletions staging-deploy.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,36 @@
apt update
apt install docker.io
# Docker
sudo apt-get update
sudo apt-get -yq install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install -yq docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo service docker start
sudo docker run hello-world
echo Docker installed successfully.

# edit.tosdr.org
git clone https://github.com/tosdr/edit.tosdr.org.git
cd edit.tosdr.org
docker compose build
docker network create elasticsearch
docker network create dbs
docker compose up -d
docker exec -it edittosdrorg-web-1 rails db:seed

# pyenv
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
curl https://pyenv.run | bash
echo -e 'export PYENV_ROOT="$HOME/.pyenv"\nexport PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo -e 'eval "$(pyenv init --path)"\neval "$(pyenv init -)"' >> ~/.bashrc
source ~!/.bashrc

# Hypothesis
pyenv install 3.8.12
pyenv init
pyenv shell 3.8.12

0 comments on commit f244ac4

Please sign in to comment.