Last active
June 3, 2021 10:28
-
-
Save jacopen/45d18d2288f992237f0d082ab27e4262 to your computer and use it in GitHub Desktop.
Setup environment for dreamkast development
This file contains hidden or 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
#!/bin/bash | |
sudo apt update | |
sudo apt install -y build-essential vim curl git gzip unzip apt-transport-https ca-certificates gnupg-agent software-properties-common libssl-dev zlib1g-dev nodejs npm | |
# Setup n | |
npm install -g n | |
sudo n latset | |
sudo apt purge nodejs npm | |
# Setup rbenv | |
git clone https://github.com/rbenv/rbenv.git ~/.rbenv | |
echo 'export PATH="~/.rbenv/bin:$PATH"' >> ~/.bashrc | |
~/.rbenv/bin/rbenv init >> ~/.bashrc | |
source ~/.bashrc | |
git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build | |
rbenv install 2.7.2 | |
rbenv global 2.7.2 | |
# Setup Docker | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
sudo apt-get update | |
sudo apt-get -y install docker-ce docker-ce-cli containerd.io | |
sudo usermod -aG docker ubuntu | |
# Clone dreamkast repositories | |
mkdir workspace | |
cd workspace | |
git clone [email protected]:cloudnativedaysjp/dreamkast.git | |
git clone [email protected]:cloudnativedaysjp/dreamkast-ui.git | |
git clone [email protected]:cloudnativedaysjp/dreamkast-infra.git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment