Go-Lang Virtual Machine environment manager. This package allow to define projects and build infrastructures on local or remote cloud providers
- Go (tested with version 1.12)
- Docker and Docker-Machine
One of following :
- VMWare Fusion
- VMWare Workstation Player
- Virtual Box (VMWare Utilities on mac :
brew install vagrant-vmware-fusion
, on windows/linux: VDDK65) - Microsoft Hyper-V
- Any of the cloud provider supported by docker
In order to define machine OSs, you can use any of the supported ISOs
Define a virtual machine remote/local manager based on docker-machine drivers. It defines a smart and simple command-line/web interface to manage environments. It provides features to define project and deployment plans for infrastructures and applications. Domain, Network and Host management level and hierarchy are main concepts in the VMKube philosophy. WMKube provides development and deployment environments: You have to define an initial project, you can manager the networks, domains, hosts and a staging phase. When you close the project, you are ready to delete it or, alternatively, to build and run the infrastructure.
Provided features:
-
Project definition procedures
-
Project staging/un-staging procedures
-
Project build procedures
-
Infrastructure build procedures
-
Infrastructure/Project inspection procedures
-
Custom Deployment plans with main providers (VMKubelet, Ansible, Helm for Kubernetes, ...)
-
Digital Control and multi vendor instances (Machine and Cloud-Machines can be defined)
-
Multiple project/infrastructure information export formats
Machine Providers:
To compile and run this project you have to check availability of following software:
- Go (tested with version 1.8)
- Docker and Docker-Machine
- Test and Utility GOLang packages (UUID Package, Unit Test) and GO SSH Terminal, YAML Parser
Go in you GOPATH/src
folder and type :
go get github.com/stretchr/testify
go get github.com/satori/go.uuid
go get golang.org/x/crypto/ssh/terminal
go get gopkg.in/yaml.v2
git clone https://github.com/hellgate75/vmkube.git
or simply :
go get github.com/stretchr/testify
go get github.com/satori/go.uuid
go get golang.org/x/crypto/ssh/terminal
go get gopkg.in/yaml.v2
go get github.com/hellgate75/vmkube
It's present a make file that returns an help on the call :
make
Provided Makefile
help returns following options :
make [all|init|test|build|exe|run|clean|install]
all: test build exe run
init: get required external packages
test: run unit test
build: build the module
exe: make executable for the module
clean: clean module C objects
run: exec the module code
install: install the module in go libs
Alternatively you can execute following commands :
go get github.com/stretchr/testify
to download unit test external packagego get github.com/satori/go.uuid
to download UUID management external packagego get golang.org/x/crypto/ssh/terminal
to download SSH terminal external packagego get gopkg.in/yaml.v2
to download YAML parsergo build .
to build the projectgo test
to run unit and integration test on the projectgo run main.go
to execute the projectgo build --buildmode exe .
to create an executable commandgo install
to install the executable command
The tool provides an help section, describing commands, sub-commands and has a nested help level for commands details.
The help is available executing :
vmkube help
General Helpvmkube help [command]
Detailed Command syntax helper
Import / Alter Project Commands provides a sample for the expected input format. Import and Export of components is provided in following file formats:
- JSON - standard JSON language
- XML - Untagged and un-described XML format (Pure XML tag sequence, no XML definition or version is accepted).
- YAML - standard YAML format.
In this release the command list is composed by following keys :
help
: Show generic commands helpstart-infra
: Start an existing Infrastructurestop-infra
: Stop a Running Infrastructurerestart-infra
: Restart a Running Infrastructuredestroy-infra
: Destroy a specific Infrastructurebackup-infra
: Backup a specific Infrastructure to a backup filerecover-infra
: Recover a specific Infrastructure from a backup fileinfra-status
: Require information about a specific Infrastructurelist-all-infra
: Require list of all Infrastructureslist-projects
: Require list of all available projectsproject-status
: Require information about a specific projectsdefine-project
: Creates a new projectalter-project
: Modify existing project, e.g.: open, close project or add, modify, delete itemsinfo-project
: Provides information about project elements definitiondelete-project
: Delete existing projectbuild-project
: Build and existing project and create/modify an infrastructureimport-project
: Import project from existing configurationexport-project
: Export existing project configuration
Fabrizio Torelli is Cloud/System Architect working in the IT sector since 1999.
Licensed under the MIT License (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
https://opensource.org/licenses/MIT
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.