From 1a0df9b3bd79c69689176cf65bbd6cdb8a7ecf0e Mon Sep 17 00:00:00 2001 From: erinecon Date: Tue, 19 Nov 2024 08:52:04 -0500 Subject: [PATCH] move prepare section to task.yaml file --- docs/tutorial/code/flask/task.yaml | 16 +++++++++++++++- spread.yaml | 16 ---------------- 2 files changed, 15 insertions(+), 17 deletions(-) diff --git a/docs/tutorial/code/flask/task.yaml b/docs/tutorial/code/flask/task.yaml index 800d28cdf..881b4e1d9 100644 --- a/docs/tutorial/code/flask/task.yaml +++ b/docs/tutorial/code/flask/task.yaml @@ -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 diff --git a/spread.yaml b/spread.yaml index ce1773997..fb902101a 100644 --- a/spread.yaml +++ b/spread.yaml @@ -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/: