GithubHelp home page GithubHelp logo

josenilto / dev.vagrant Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 42 KB

Ferramenta para construção e distribuição de ambientes de desenvolvimento. Por exemplo, para VirtualBox, KVM, Hyper-V, contêineres Docker, VMware e AWS.

Home Page: https://www.vagrantup.com

Shell 100.00%
vagrant-machine vagrant-virtual-machine vagrant-provisioner

dev.vagrant's Introduction

🛠 DEV VAGRANT | Gerenciando máquinas virtuais

Software de código aberto para construir e manter ambientes de desenvolvimento de software virtual portátil;
Por exemplo, para VirtualBox, KVM, Hyper-V, contêineres Docker, VMware e AWS.

Gerenciamento de configuração de software de virtualização para aumentar a produtividade do desenvolvimento.


Exemplo:

Aqui podemos ver a estrutura - hyperv.

Arquivo: setup-vagrant.sh

#!/usr/bin/env bash

# CONFIGURAÇÃO PARA INSTALAR JDK DA ORACLE
sudo apt-get install -y python-software-propeties debconf-utils
sudo add-apt-repository -y ppa:webupd8team/java
sudo apt-get update

# INSTALAÇÃO CLIENTES MYSQL E MONGODB
sudo apt-get install -y mysql-client-core-5.7
sudo apt-get -y install mongodb-org-tools

# INSTALAÇÃO JAVA
sudo apt-get install -y oracle-java8-installer
echo -en "JAVA_HOME='/usr/lib/jvm/java-8-oracle'" >> /etc/environment
source /etc/environment

# INSTALAÇÃO MAVEN
sudo apt-get install -y mavem

# BUILD & DEPLOY
mvn -f /vagrant/minha-aplicacao/pom.xml clean package wildfly:deploy

Arquivo: Vagrantfile

Vagrant.configure("2") do |config|

    config.vm.box = "hashicorp/precise64"

    config.vm.provision :shell, path: "setup-vagrant.sh"

    config.vm.network :forwarded_port, guest: 8080, host: 8080, host_ip: "127.0.0.1"
    config.vm.network :forwarded_port, guest: 3306, host: 3306, host_ip: "127.0.0.1"

    config.vm.provider "hyperv" do |vb|
        vb.memory = 1024
        vb.cpus = 2
	vb.vmname = "HashicorpPrecise"
	vb.differencing_disk = "10GB"
    end

end

➡️ Links:

josenilto | Twitter

🚧 Tutorial de instalação 🚀 Em construção... 🚧

https://www.vagrantup.com/docs

https://www.vagrantup.com/docs/providers/virtualbox/configuration

dev.vagrant's People

Contributors

josenilto avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.