Commit 93f1539f authored by Mark Beierl's avatar Mark Beierl
Browse files

Virtual PC Descriptor



A simple descriptor that uses a native charm to launch a clean
Ubuntu base image and layer a graphical desktop environment
and RDP server on top.

Signed-off-by: default avatarbeierlm <mark.beierl@canonical.com>
parent 5ea55214
Loading
Loading
Loading
Loading
Loading
+674 −0

File added.

Preview size limit exceeded, changes collapsed.

+55 −0
Original line number Diff line number Diff line
# virtual-pc

## Description


## Usage

### Prepare the environment

```bash
sudo snap install juju --classic --channel 2.8/stable
sudo snap install lxd
lxd.init
juju bootstrap lxd
juju add-model test-virtual-pc
```

### Deploy (from the Store)

```bash
juju deploy cs:~charmed-osm/virtual-pc --channel edge
```

### Deploy (locally)

Build the charm:

```bash
virtualenv -p python3 venv
source venv/bin/activate
pip install -r requirements-dev.txt
pip install charmcraft
./venv/bin/charmcraft build
```

Deploy:

```bash
juju deploy ./virtual-pc.charm
```

## Developing

Create and activate a virtualenv with the development requirements:

    virtualenv -p python3 venv
    source venv/bin/activate
    pip install -r requirements-dev.txt

## Testing

The Python operator framework includes a very nice harness for testing
operator behaviour without full deployment. Just `run_tests`:

    ./run_tests
+6 −0
Original line number Diff line number Diff line
# Copyright 2020 ETSI OSM Contributors
# See LICENSE file for licensing details.
#
# This is only an example, and you should edit to suit your needs.
# If you don't need actions, you can remove the file entirely.
# It ties in to the example _on_fortune_action handler in src/charm.py
+6 −0
Original line number Diff line number Diff line
# Copyright 2020 ETSI OSM Contributors
# See LICENSE file for licensing details.
#
# This is only an example, and you should edit to suit your needs.
# If you don't need config, you can remove the file entirely.
options:
+3 −0
Original line number Diff line number Diff line
#!/bin/sh

JUJU_DISPATCH_PATH="${JUJU_DISPATCH_PATH:-$0}" PYTHONPATH=lib:venv ./src/charm.py
Loading