Skip to content

iganari/virtualbox-operation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VirtualBox Operation

CircleCI

出来ること・出来ないこと

出来ること 😊

  • start
    • ローカル内のVMの起動(ヘッドレス)
  • stop
    • ローカル内のVMの一時停止
  • search
    • ローカル内の指定したVMのVagrantfileの探しだし

出来ないこと 😢

  • 上記以外
    • VirtualBoxやVagrantとうまくやって行きたいので、敢えて出来ることを絞っています

Bash版について

使い方

  • clone
git clone https://github.com/iganari/vagrant-operation.git
cd vagrant-operation
  • 実行
bash bash-operation.sh

Python版について

  • Python 3.x でのみ想定しています
  • 使用出来ますがリファクタリング中です 🏗️
    • リファクタリングめも
    • #17

使い方

  • clone
git clone https://github.com/iganari/vagrant-operation.git
cd vagrant-operation
  • 実行
python3 python-operation.py

オプション

  • help
python3 python-operation.py -h
### 例

$ python3 python-operation.py -h

Description: Manage commands for VirtualBox.

    Usage: $ vb [ options ]

  Options:

      -h : show this help message and exit
  • other
    • 鋭意製作中 💪

Python版の開発方法

  • 仮想環境の有効化
python3 -m venv .vb
source .vb/bin/activate
pip install -r package.txt
  • flake8によるコードレビュー
flake8 python-operation.py --show-source
  • 仮想環境の無効化
deactivate

現状のイケてないとこ 🙅

  • Golang版が無い
  • Virtualbox/Vagrantがそもそもインストールしているかの判定が入っていない
    • ゆくゆく実装予定

About

VirtualBoxをすこしだけ使いやすくするスクリプトです

Resources

Stars

Watchers

Forks

Packages

No packages published