Skip to content

Commit

Permalink
Fix indent issue in task.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
erinecon authored Oct 30, 2024
1 parent b98a43a commit f1db5a6
Showing 1 changed file with 56 additions and 56 deletions.
112 changes: 56 additions & 56 deletions docs/tutorial/code/flask/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ execute: |
# [docs:deploy-juju-model]
juju deploy ./flask-hello-world_ubuntu-22.04-amd64.charm \
flask-hello-world --resource \
flask-app-image=localhost:32000/flask-hello-world:0.1
flask-hello-world --resource \
flask-app-image=localhost:32000/flask-hello-world:0.1
# [docs:deploy-juju-model-end]
# [docs:deploy-nginx]
Expand All @@ -79,7 +79,7 @@ execute: |
# [docs:config-nginx]
juju config nginx-ingress-integrator \
service-hostname=flask-hello-world path-routes=/
service-hostname=flask-hello-world path-routes=/
# [docs:config-nginx-end]
# [docs:curl-init-deployment]
Expand All @@ -93,56 +93,56 @@ execute: |
# [docs:docker-update]
rockcraft.skopeo --insecure-policy copy --dest-tls-verify=false \
oci-archive:flask-hello-world_0.2_amd64.rock \
docker://localhost:32000/flask-hello-world:0.2
# [docs:docker-update-end]
cd charm
charmcraft pack
# [docs:refresh-deployment]
juju refresh flask-hello-world \
--path=./flask-hello-world_ubuntu-22.04-amd64.charm \
--resource flask-app-image=localhost:32000/flask-hello-world:0.2
# [docs:refresh-deployment-end]
# [docs:change-config]
juju config flask-hello-world greeting='Hi!'
# [docs:change-config-end]
cd ..
cat visitors_app.py > app.py
sed -i "s/version: .*/version: 0.3/g" rockcraft.yaml
rockcraft pack

# [docs:docker-2nd-update]
rockcraft.skopeo --insecure-policy copy --dest-tls-verify=false \
oci-archive:flask-hello-world_0.3_amd64.rock \
docker://localhost:32000/flask-hello-world:0.3
# [docs:docker-2nd-update-end]

cd charm
charmcraft pack

# [docs:refresh-2nd-deployment]
juju refresh flask-hello-world \
--path=./flask-hello-world_ubuntu-22.04-amd64.charm \
--resource flask-app-image=localhost:32000/flask-hello-world:0.3
# [docs:refresh-2nd-deployment-end]

# [docs:deploy-postgres]
juju deploy postgresql-k8s --trust
juju integrate flask-hello-world postgresql-k8s
# [docs:deploy-postgres-end]

# [docs:clean-environment]
# exit and delete the virtual environment
deactivate
rm -rf charm .venv __pycache__
# delete all the files created during the tutorial
rm flask-hello-world_0.1_amd64.rock flask-hello-world_0.2_amd64.rock \
flask-hello-world_0.3_amd64.rock rockcraft.yaml app.py \
requirements.txt migrate.py
# Remove the juju model
juju destroy-model flask-hello-world --destroy-storage
# [docs:clean-environment-end]
oci-archive:flask-hello-world_0.2_amd64.rock \
docker://localhost:32000/flask-hello-world:0.2
# [docs:docker-update-end]
cd charm
charmcraft pack
# [docs:refresh-deployment]
juju refresh flask-hello-world \
--path=./flask-hello-world_ubuntu-22.04-amd64.charm \
--resource flask-app-image=localhost:32000/flask-hello-world:0.2
# [docs:refresh-deployment-end]
# [docs:change-config]
juju config flask-hello-world greeting='Hi!'
# [docs:change-config-end]
cd ..
cat visitors_app.py > app.py
sed -i "s/version: .*/version: 0.3/g" rockcraft.yaml
rockcraft pack
# [docs:docker-2nd-update]
rockcraft.skopeo --insecure-policy copy --dest-tls-verify=false \
oci-archive:flask-hello-world_0.3_amd64.rock \
docker://localhost:32000/flask-hello-world:0.3
# [docs:docker-2nd-update-end]
cd charm
charmcraft pack
# [docs:refresh-2nd-deployment]
juju refresh flask-hello-world \
--path=./flask-hello-world_ubuntu-22.04-amd64.charm \
--resource flask-app-image=localhost:32000/flask-hello-world:0.3
# [docs:refresh-2nd-deployment-end]
# [docs:deploy-postgres]
juju deploy postgresql-k8s --trust
juju integrate flask-hello-world postgresql-k8s
# [docs:deploy-postgres-end]
# [docs:clean-environment]
# exit and delete the virtual environment
deactivate
rm -rf charm .venv __pycache__
# delete all the files created during the tutorial
rm flask-hello-world_0.1_amd64.rock flask-hello-world_0.2_amd64.rock \
flask-hello-world_0.3_amd64.rock rockcraft.yaml app.py \
requirements.txt migrate.py
# Remove the juju model
juju destroy-model flask-hello-world --destroy-storage
# [docs:clean-environment-end]

0 comments on commit f1db5a6

Please sign in to comment.