Skip to content

Instantly share code, notes, and snippets.

@jacopen
Last active June 3, 2021 10:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jacopen/45d18d2288f992237f0d082ab27e4262 to your computer and use it in GitHub Desktop.
Save jacopen/45d18d2288f992237f0d082ab27e4262 to your computer and use it in GitHub Desktop.
Setup environment for dreamkast development
#!/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 git@github.com:cloudnativedaysjp/dreamkast.git
git clone git@github.com:cloudnativedaysjp/dreamkast-ui.git
git clone git@github.com:cloudnativedaysjp/dreamkast-infra.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment