Skip to content

Commit

Permalink
move prepare section to task.yaml file
Browse files Browse the repository at this point in the history
  • Loading branch information
erinecon committed Nov 19, 2024
1 parent e3ab3ca commit 1a0df9b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
16 changes: 15 additions & 1 deletion docs/tutorial/code/flask/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,21 @@ execute: |
unset CHARMCRAFT_UPLOAD_URL
unset CHARMCRAFT_REGISTRY_URL
#make sure that Juju version is correct
snap refresh juju --channel=3.5/stable --amend
snap install rockcraft --classic
snap install lxd
lxd init --auto
snap refresh charmcraft --channel=latest/edge --amend
snap install microk8s --channel=1.31-strict/stable
#adduser $USER snap_microk8s
#newgrp snap_microk8s
snap install juju --channel=3.5/stable
lxc network set lxdbr0 ipv6.address none
mkdir -p ~/.local/share
microk8s status --wait-ready
microk8s enable hostpath-storage
microk8s enable registry
microk8s enable ingress
juju bootstrap microk8s dev-controller
# [docs:create-venv]
sudo apt-get update && sudo apt-get install python3-venv -y
Expand Down
16 changes: 0 additions & 16 deletions spread.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -133,22 +133,6 @@ suites:
summary: tests tutorial from the docs
systems:
- ubuntu-22.04-64
prepare: |
snap install rockcraft --classic
snap install lxd
lxd init --auto
snap refresh charmcraft --channel=latest/edge --amend
snap install microk8s --channel=1.31-strict/stable
#adduser $USER snap_microk8s
#newgrp snap_microk8s
snap install juju --channel=3.5/stable
lxc network set lxdbr0 ipv6.address none
mkdir -p ~/.local/share
microk8s status --wait-ready
microk8s enable hostpath-storage
microk8s enable registry
microk8s enable ingress
juju bootstrap microk8s dev-controller
tests/spread/commands/:
summary: simple charmcraft commands
tests/spread/charms/:
Expand Down

0 comments on commit 1a0df9b

Please sign in to comment.