はじめに
VirtualBox+Vagrantを用いた仮想環境構築を学習したく
ドットインストールをベースにVagrant上のファイルをVisual Studio Codeで編集して
HelloWorldを出力するまでのメモです。
目標
VirtualBox+Vagrantにて仮想OSを構築する。
Visual Studio Codeを使用して仮想OS上でファイル作成する。
HelloWorldを出力する。
手順
VirtualBoxをインストール
Vagrantをインストール
vagrant up ができなかった
Vagrantが最新版のVirtualboxを認識していないとのこと
下記記事を参考に設定ファイルを書き換えました。
[Mac] Vagrant 2.2.6 と Virtualbox 6.1でうまくvagrant up ができなかった時の対処法
Visual Studio Code をインストール
Vagrant上のファイルをVisual Studio Codeで編集
下記記事を参考にしました。
Vagrant上のファイルをVScodeで編集 for Mac(初学者向けの注釈付記レポート)
Rubyをインストール
下記記事を参考にしました。
CentOSにrbenv, Rubyをインストールする
参考情報
ローカル開発環境の構築 [macOS編]
[Mac] Vagrant 2.2.6 と Virtualbox 6.1でうまくvagrant up ができなかった時の対処法
Vagrant上のファイルをVScodeで編集 for Mac(初学者向けの注釈付記レポート)
CentOSにrbenv, Rubyをインストールする