An `edwh`plugin to work with multipass instances for local development.
Project description
edwh-multipass-plugin
Table of Contents
Installation
Install just this plugin:
pip install edwh-multipass-plugin
But probably you want to install the whole edwh
package:
pipx install edwh[plugins,omgeving]
# or
pipx install edwh[multipass]
if you want to use the edwh
command line tool with just the multipass
plugin:
pipx install edwh
pipx inject edwh edwh-multipass-plugin
mp.fix-host
aka
mp.fix-dns
Fixes the ip adres in the hosts file for a multipass instance.
When issuing on the first run fix-host will add an entry to your hosts file, and you can enter different hostnames you want to register for the instance.
mp.fix-host dockers -h dockers.local -h delen.dockers.local -h web2py.dockers.local ...
After this initial registration, you can update the ip address of the instance by running mp.fix-host dockers
again.
Be aware that you cannot register new hostnames after the initial registration. Update your
/etc/hosts
file instead.
mp.install
Installs multipass on an ubuntu based machine if not already installed.
mp.prepare
Allows you to ssh into a multipass instance, so you are able to run fabric commands against it.
mp.prepare
will generate a multipass_keyfile ~/.ssh/multipass.key
(if not already present)
and add the public key to the multipass instance's authorized_keys
file.
mp.prepares
automatically runs mp.install
.
License
edwh-multipass-plugin
is distributed under the terms of the MIT license.
See the license for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file edwh_multipass_plugin-1.0.1.tar.gz
.
File metadata
- Download URL: edwh_multipass_plugin-1.0.1.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a963d6a0b6c4291de88938314769f3099c6b1512b5b0e12e177811b51812a951 |
|
MD5 | 882f8cab7e5c7622698836fed6cc57ae |
|
BLAKE2b-256 | 465a20d28b1b4f562897249f725df9acd049de0d40ec7fba2a65737d46a04fbf |
File details
Details for the file edwh_multipass_plugin-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: edwh_multipass_plugin-1.0.1-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab0e2f31a9a8ed6e76d637f61da705962e67c83ee91c59139b9b553d166c1a65 |
|
MD5 | 8f079dc3a0b50f978acbc8cf4268b680 |
|
BLAKE2b-256 | 7d74cc83ae22207027aef906f179ff2d907fb0ec1d5f51c4f963a1050915f72a |