Loading hackfest_virtual-pc_vnfd/charms/virtual-pc-src/.jujuignore 0 → 100644 +3 −0 Original line number Diff line number Diff line /venv *.py[cod] *.charm hackfest_virtual-pc_vnfd/charms/virtual-pc-src/LICENSE 0 → 100644 +674 −0 File added.Preview size limit exceeded, changes collapsed. Show changes hackfest_virtual-pc_vnfd/charms/virtual-pc-src/README.md 0 → 100644 +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 hackfest_virtual-pc_vnfd/charms/virtual-pc-src/actions.yaml 0 → 100644 +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 hackfest_virtual-pc_vnfd/charms/virtual-pc-src/config.yaml 0 → 100644 +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: Loading
hackfest_virtual-pc_vnfd/charms/virtual-pc-src/.jujuignore 0 → 100644 +3 −0 Original line number Diff line number Diff line /venv *.py[cod] *.charm
hackfest_virtual-pc_vnfd/charms/virtual-pc-src/LICENSE 0 → 100644 +674 −0 File added.Preview size limit exceeded, changes collapsed. Show changes
hackfest_virtual-pc_vnfd/charms/virtual-pc-src/README.md 0 → 100644 +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
hackfest_virtual-pc_vnfd/charms/virtual-pc-src/actions.yaml 0 → 100644 +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
hackfest_virtual-pc_vnfd/charms/virtual-pc-src/config.yaml 0 → 100644 +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: