Skip to content

Instantly share code, notes, and snippets.

@oke-py
Last active November 15, 2021 12:52
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 oke-py/4b49c1b519728173e932e09138577067 to your computer and use it in GitHub Desktop.
Save oke-py/4b49c1b519728173e932e09138577067 to your computer and use it in GitHub Desktop.
dreamkast development environment on AWS Cloud9 Ubuntu
#!/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
# asdf
# https://asdf-vm.com/guide/getting-started.html
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.8.1
echo '. $HOME/.asdf/asdf.sh' >> ~/.bashrc
echo '. $HOME/.asdf/completions/asdf.bash' >> ~/.bashrc
. ~/.bashrc
# nodejs
unset NODE_PATH NVM_DIR NVM_INC
sudo apt-get install dirmngr gpg curl gawk
asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
asdf install nodejs 12.22.7
asdf global nodejs 12.22.7
npm i -g yarn
# ruby
unset GEM_HOME GEM_PATH RUBY_VERSION rvm_bin_path rvm_loaded_flag rvm_path rvm_prefix rvm_stored_umask rvm_user_install_flag rvm_version
asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git
asdf install ruby 3.0.2
asdf global ruby 3.0.2
# 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
# dreamkast
sudo apt -y install docker-compose libmysqld-dev shared-mime-info
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