2
2

More than 3 years have passed since last update.

VirtualBox+Vagrantを用いた仮想環境構築を行いHelloWorldを出力するまで

Posted at

はじめに

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をインストールする

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2