Skip to content

Instantly share code, notes, and snippets.

@jacopen
Last active June 3, 2021 10:28

Revisions

  1. jacopen revised this gist Jun 3, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -14,6 +14,7 @@ echo 'export PATH="~/.rbenv/bin:$PATH"' >> ~/.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 -
  2. jacopen created this gist Jun 3, 2021.
    33 changes: 33 additions & 0 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,33 @@
    #!/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

    # 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