cloudsidedev / appside

Multitenant environment automation.
http://cloudside.ch
GNU Affero General Public License v3.0
38 stars 7 forks source link

macOS one-line installer complete run #41

Closed ivomarino closed 6 years ago

ivomarino commented 7 years ago

In order to test AppFlow installations on a fresh macOS environment we need some kind of virtualization for starting tests in a clean vm, this link can help: https://github.com/geerlingguy/macos-virtualbox-vm/blob/master/README.md

ivomarino commented 7 years ago

Also this can be relevant for installing base packages on macOS: https://github.com/geerlingguy/mac-dev-playbook

ivomarino commented 7 years ago

it seems that current brew ansible package ansible-2.2.1.0 is stable and does not suffer the decrypt issue, this means we can do brew install ansible without --HEAD which installs the binary and does not compile from source:

# just removing old --HEAD version
brew uninstall --force ansible
brew remove ansible

brew install ansible

brew install ansible
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
...
==> Installing dependencies for ansible: openssl
...
==> Installing ansible
==> Downloading https://homebrew.bintray.com/bottles/ansible-2.2.1.0.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring ansible-2.2.1.0.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/ansible/2.2.1.0: 10,701 files, 115.2M
ivomarino commented 7 years ago

@89luca89 one-liner with binary ansible (not --HEAD) works fine, just tested on plain VM (remove ansible before via brew remove ansible):

osx-ansible

ivomarino commented 7 years ago

@89luca89 nested VMs seem not the be supported:

Choose your distro:
1- Ubuntu 14.04
2- CentOS/RHEL 7.1 (Experimental, still not complete!) 
[choose a number]:1
mkdir -p ~/Downloads/Software
mkdir -p ~/Downloads/Software/Vagrant-Boxes
cd ~/Downloads/Software/Vagrant-Boxes &&  wget -c http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box  && mv trusty-server-cloudimg-amd64-vagrant-disk1.box trusty64.box && cd ~/Documents/webdev/appflow
--2017-02-02 12:50:30--  http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box
Resolving cloud-images.ubuntu.com... 91.189.88.141, 2001:67c:1360:8001:ffff:ffff:ffff:fffe
Connecting to cloud-images.ubuntu.com|91.189.88.141|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 444968960 (424M) [text/plain]
Saving to: ‘trusty-server-cloudimg-amd64-vagrant-disk1.box’

trusty-server-cloudimg-amd64-vagran 100%[=================================================================>] 424.36M  1.06MB/s    in 7m 5s   

2017-02-02 12:57:35 (1023 KB/s) - ‘trusty-server-cloudimg-amd64-vagrant-disk1.box’ saved [444968960/444968960]

# pushd ~/Downloads/Software/Vagrant-Boxes && wget -c -q http://files.vagrantup.com/precise64.box > /dev/null && wget -c -q http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box > /dev/null && mv trusty-server-cloudimg-amd64-vagrant-disk1.box trusty64.box && wget -c http://files.wunki.org/freebsd-10.0-amd64-wunki.box > /dev/null && popd
ln -s -f ~/Downloads/Software/Vagrant-Boxes .
vagrant plugin install vagrant-cachier
Installing the 'vagrant-cachier' plugin. This can take a few minutes...
Installed the plugin 'vagrant-cachier (1.2.1)'!
# https://github.com/mitchellh/vagrant/issues/1673
vagrant plugin install vagrant-vbguest
Installing the 'vagrant-vbguest' plugin. This can take a few minutes...
Installed the plugin 'vagrant-vbguest (0.13.0)'!
Bringing machine 'atlantis' up with 'virtualbox' provider...
==> atlantis: Clearing any previously set forwarded ports...
==> atlantis: Clearing any previously set network interfaces...
==> atlantis: Preparing network interfaces based on configuration...
    atlantis: Adapter 1: nat
    atlantis: Adapter 2: hostonly
==> atlantis: Forwarding ports...
    atlantis: 22 (guest) => 2222 (host) (adapter 1)
==> atlantis: Running 'pre-boot' VM customizations...
==> atlantis: Booting VM...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "0e4d243a-99c4-4bd7-83c2-04bda61b8b68", "--type", "headless"]

Stderr: VBoxManage: error: VT-x is not available (VERR_VMX_NO_VMX)
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component ConsoleWrap, interface IConsole

#############################
DONE!
#############################
osx:~ appflow$ 
ivomarino commented 7 years ago

@89luca89 there seems to be an on https://github.com/ttssdev/appflow/blob/master/utils/ssh.sh#L42 which creates a ~pwd dir in the appflow folder, fixed with https://github.com/ttssdev/appflow/commit/2d716a324381248242df7843684cb7edf935db47.

ivomarino commented 6 years ago

can be closed, documented in by http://appflow.readthedocs.io/en/latest/installation.html.