Lekensteyn / lglaf

LG Download Mode utility and documentation
https://lekensteyn.nl/lglaf/
MIT License
137 stars 74 forks source link

Added Docker and Vagrant support #32

Open Manouchehri opened 6 years ago

Manouchehri commented 6 years ago

Example usage:

mbp:lglaf dave$ vagrant up
Bringing machine 'default' up with 'vmware_fusion' provider...
==> default: Cloning VMware VM: 'bento/ubuntu-16.04'. This can take some time...
==> default: Checking if box 'bento/ubuntu-16.04' is up to date...
==> default: Verifying vmnet devices are healthy...
==> default: Preparing network adapters...
==> default: Starting the VMware VM...
==> default: Waiting for the VM to receive an address...
==> default: Waiting for machine to boot. This may take a few minutes...
==> default: Machine booted and ready!
==> default: Configuring network adapters within the VM...
==> default: Waiting for HGFS to become available...
==> default: Enabling and configuring shared folders...
    default: -- /Users/dave/lglaf: /vagrant
==> default: Running provisioner: docker...
    default: Installing Docker onto machine...
==> default: Starting Docker containers...
==> default: -- Container: thawsystems/lglaf
mbp:lglaf dave$ vagrant ssh
vagrant@vagrant:~$ docker attach lglaf
vagrant@vagrant:~$ docker attach lglaf
root@14d9056e4d77:~# lglaf.py
No handlers could be found for logger "LGLAF.py"
LGLAF.py by Peter Wu (https://lekensteyn.nl/lglaf)
Type a shell command to execute or "exit" to leave.
# whoami
root
# id
uid=0(root) gid=0(root) groups=0(root) context=u:r:kernel:s0