Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

714 lines
23 KiB
Markdown
Raw Permalink Normal View History

Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
---
2023-03-14 11:25:48 -07:00
title_tag: Creating Docker Images | Learn Pulumi
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
title: "Creating Docker Images"
layout: topic
date: 2021-09-07T14:06:50-05:00
draft: false
description: Use Pulumi and the Docker provider to build Docker images locally.
2023-03-14 11:25:48 -07:00
meta_desc: Learn how to use Pulumi and the Docker provider to create Docker images locally in this tutorial.
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
index: 1
estimated_time: 10
meta_image: meta.png
authors:
- sophia-parafina
- laura-santamaria
tags:
- fundamentals
- docker
links:
- text: Code Repo
url: https://github.com/pulumi/tutorial-pulumi-fundamentals
---
In this part, we'll create our first Pulumi _resource_. Resources in Pulumi are
the basic building blocks of your infrastructure, whether that's a database
instance or a compute instance or a specific storage bucket. In Pulumi,
_resource providers_ manage your resources. You can group those resources to
abstract them (such as a group of compute instances that all have the same
configuration and implementation) via component resources.
In this case, our resources are going to be Docker containers and images that we
build locally using infrastructure as code. Our resource provider is Docker, and
we're using {{< langhost >}} as our _language host_, or the executor that compiles the
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
code we write and interprets it for Pulumi.
{{% notes type="info" %}}
Note that we're only using Docker here to make it easier to learn about Pulumi
(mainly because setting up a new account on any of the cloud providers can take
some time and can introduce a lot of complexity). Most users are using one of
the major cloud providers to build with Pulumi.
{{% /notes %}}
## Verify your application
Let's explore what app we're deploying on the infrastructure we're creating. Open up the [pulumi/tutorial-pulumi-fundamentals repo](https://github.com/pulumi/tutorial-pulumi-fundamentals). In this repository, there is a `backend` directory, a `frontend` directory, and a `data` directory. Each directory contains a `Dockerfile` that builds the image for that portion of the application.
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
Let's examine the backend `Dockerfile` in `backend/Dockerfile`:
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
```docker
FROM node:14
# Create app directory
WORKDIR /usr/src/app
COPY ./src/package*.json ./
RUN npm install
COPY ./src .
RUN npm build
EXPOSE 3000
CMD [ "npm", "start" ]
```
This `Dockerfile` copies the REST backend into the Docker filesystem, installs
the dependencies, and builds the image. Note that port 3000 must be open on your
host machine.
{{% notes type="info" %}}
For the purposes of this topic, we've already built the images. We are showing the code for the application here just for completeness; you won't actually need to do anything with this code.
{{% /notes %}}
## Pull a Docker Image with Pulumi
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
{{% choosable language typescript %}}
Before we start writing our Pulumi program, we need to install the right
provider. In this case, we want to use the `@pulumi/docker` provider for Node.js, our language host. Let's install the provider now:
```bash
cd ../
npm install @pulumi/docker
```
{{% /choosable %}}
{{% choosable language python %}}
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
Before we start writing our Pulumi program, we need to install the right
provider. In this case, we want to use the `pulumi_docker` provider for Python,
our language host. It's always good practice for Python to work inside a virtual
environment, or venv, so let's activate our venv and use `pip` to install the
provider along with the main Pulumi package:
```bash
cd ../
source venv/bin/activate
pip3 install pulumi_docker
```
You should see output showing the provider package being installed, just like
for any Python package install. Add the package to the `requirements.txt` file
by adding `pulumi_docker` on a new line at the end of the file.
{{% /choosable %}}
{{% choosable language go %}}
Before we start writing our Pulumi program, we need to install the right providers. In this case, we just need to add the Docker provider to our `go.mod` and `main.go` files. Change the `go.mod` file so that the `require` section looks like this:
```go
require (
github.com/pulumi/pulumi-docker/sdk/v3 v3.6.1
github.com/pulumi/pulumi/sdk/v3 v3.44.2
)
```
Next, add it to the `import` line in `main.go`:
```go
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi-docker/sdk/v3/go/docker"
)
```
After making these changes, run `go mod tidy` in your terminal. From here, Pulumi will automatically download and install the necessary Go providers the first time we execute the Pulumi program with `pulumi preview` or `pulumi up`.
{{% /choosable %}}
2022-05-03 21:23:32 -07:00
{{% choosable language java %}}
Before we start writing our Pulumi program, we need to install the right providers. In this case, we want to use the `com.pulumi:docker` provider for Java, our language host. Since we're using Gradle, we'll add it to our build file, and it will get added at build time. Let's modify our `build.gradle` file in the `app/` directory:
```java
plugins {
id 'application'
}
repositories {
maven { // The google mirror is less flaky than mavenCentral()
url("https://maven-central.storage-download.googleapis.com/maven2/")
}
mavenCentral()
mavenLocal()
}
var pulumiJavaSdkVersion = System.getenv("PULUMI_JAVA_SDK_VERSION") ?: "0.1.0"
var pulumiDockerSdkVersion = System.getenv("PULUMI_DOCKER_PROVIDER_SDK_VERSION") ?: "3.2.0"
2022-05-03 21:23:32 -07:00
dependencies {
implementation "com.pulumi:pulumi:$pulumiJavaSdkVersion"
implementation "com.pulumi:docker:$pulumiDockerSdkVersion"
}
application {
mainClass = project.hasProperty("mainClass")
? project.getProperty("mainClass")
: 'my_first_app.App'
}
```
{{% /choosable %}}
{{% choosable language yaml %}}
2022-05-03 21:23:32 -07:00
{{% /choosable %}}
Back inside your Pulumi program, let's pull your first Docker image. Remember
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
that a Pulumi program is the code that defines the desired state of your
infrastructure using a general-purpose programming language. In this case, we're
using {{< langhost >}}, so our main file is {{< langfile >}}. Inside your program's {{< langfile >}} file, use any editor to add the following code:
{{< chooser language "typescript,python,go,java,yaml" / >}}
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
{{% choosable language typescript %}}
```typescript
import * as pulumi from "@pulumi/pulumi";
import * as docker from "@pulumi/docker";
const stack = pulumi.getStack();
// Pull the backend image
const backendImageName = "backend";
const backend = new docker.RemoteImage(`${backendImageName}Image`, {
2022-05-03 21:23:32 -07:00
name: "pulumi/tutorial-pulumi-fundamentals-backend:latest",
});
```
{{% /choosable %}}
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
{{% choosable language python %}}
```python
import os
import pulumi
import pulumi_docker as docker
stack = pulumi.get_stack()
# Pull the backend image
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
backend_image_name = "backend"
backend = docker.RemoteImage(f"{backend_image_name}_image",
2022-05-03 21:23:32 -07:00
name="pulumi/tutorial-pulumi-fundamentals-backend:latest"
)
```
{{% /choosable %}}
{{% choosable language go %}}
```go
package main
import (
"fmt"
"github.com/pulumi/pulumi-docker/sdk/v3/go/docker"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Pull the backend image
backendImageName := "backend"
backendImage, err := docker.NewRemoteImage(ctx, fmt.Sprintf("%v-image", backendImageName), &docker.RemoteImageArgs{
Name: pulumi.String("pulumi/tutorial-pulumi-fundamentals-backend:latest"),
})
if err != nil {
return err
}
ctx.Export("backendDockerImage", backendImage.Name)
return nil
})
}
```
{{% /choosable %}}
2022-05-03 21:23:32 -07:00
{{% choosable language java %}}
```java
package my_first_app;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.docker.RemoteImage;
import com.pulumi.docker.RemoteImageArgs;
import java.util.List;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
private static void stack(Context ctx) {
2022-05-03 21:23:32 -07:00
final var stackName = ctx.stackName();
// Pull the backend image
2022-05-03 21:23:32 -07:00
final String backendImageName = "backend";
final var backendImage = new RemoteImage(
2022-05-03 21:23:32 -07:00
backendImageName,
RemoteImageArgs.builder()
.name(String.format("pulumi/tutorial-pulumi-fundamentals-%s:latest",backendImageName))
.build()
);
}
}
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
```
{{% /choosable %}}
2022-05-03 21:23:32 -07:00
{{% choosable language yaml %}}
```yaml
name: my_first_app
2022-05-03 21:23:32 -07:00
runtime: yaml
description: A minimal Pulumi YAML program
configuration: {}
variables: {}
2022-05-03 21:23:32 -07:00
resources:
# Pull the backend image
2022-05-03 21:23:32 -07:00
backend-image:
type: docker:index:RemoteImage
properties:
name: pulumi/tutorial-pulumi-fundamentals-backend:latest
outputs: {}
2022-05-03 21:23:32 -07:00
```
{{% /choosable %}}
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
{{% choosable language typescript %}}
In this file, we import the main Pulumi package and the Docker provider. Then, we figure out which stack we're operating against, and populate the `stack` variable for later use. When we pull our backend image, we give it a name in our stack as "backendImage" before passing some arguments to the Docker provider. The Docker provider uses the `name` argument to pull a remote image for us to use.
2022-05-03 21:23:32 -07:00
Notice that we're mixing in some language constructs in here like string interpolation. With Pulumi, we have access to the full language ecosystem, including built-ins and third-party libraries. Pulumi also has typing support, so you can use the tools in your favorite IDE, like completion, to verify that you're using the correct types for any inputs you're using. Pretty cool!
{{% /choosable %}}
{{% choosable language python %}}
In this file, we import the main Pulumi package and the Docker provider. Then, we figure out which stack we're operating against, and populate the `stack` variable for later use. When we pull our backend image, we give it a name in our stack as "backend_image" before passing some arguments to the Docker provider. The Docker provider uses the `name` argument to pull a remote image for us to use.
2022-05-03 21:23:32 -07:00
Notice that we're mixing in some Python constructs in here like f-strings (string interpolation). With Pulumi, we have access to the full language ecosystem, including third-party libraries. Pulumi also has typing support, so you can use the tools in your favorite IDE, like completion, to verify that you're using the correct types for any inputs you're using. Pretty cool!
{{% /choosable %}}
{{% choosable language go %}}
In this file, we import the main Pulumi package and the Docker provider. Then, we pull the backend image, using the `backendImageName` variable and supplying the name of the remote image to pull. The Docker provider uses the `Name` argument to supply the name of the remote image for us to use. The `ctx.Export` statement is only there to satisfy Go's requirement that every variable defined must be referenced elsewhere; we'll end up removing it later.
Notice that we're mixing in some language constructs here like `fmt.Sprintf()`. With Pulumi, we have access to the full language ecosystem, including all the functionality found in Go's standard library. Pulumi also has typing support, so you can use the tools in your favorite IDE, like completion, to verify you're using the correct types for any inputs you're using. Pretty cool!
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
{{% /choosable %}}
2022-05-03 21:23:32 -07:00
{{% choosable language java %}}
In this file, we import the main Pulumi package and the Docker provider. Then, we figure out which stack we're operating against, and populate the `stackName` variable for later use. When we pull our backend image, we give it a name in our stack as "backend" before passing some arguments to the Docker provider. The Docker provider uses the `name` argument to pull a remote image for us to use.
2022-05-03 21:23:32 -07:00
Notice that we're mixing in some language constructs in here like `String.format`. With Pulumi, we have access to the full language ecosystem, including third-party libraries. Pulumi also has typing support, so you can use the tools in your favorite IDE, like completion, to verify that you're using the correct types for any inputs you're using. Pretty cool!
{{% /choosable %}}
{{% choosable language yaml %}}
In this file, we're defining a `RemoteImage` resource using the Docker provider. The `properties` are the arguments (or _inputs_ in Pulumi terms) that the resource takes. The Docker provider uses the `name` input to pull a remote image for us to use.
{{% /choosable %}}
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
Run `pulumi up`.
{{% notes type="info" %}}
Note that it make take a bit before you get any output because Docker is doing a
lot of work in the background before it connects to Pulumi. Be patient!
{{% /notes %}}
Pulumi should pull your Docker image. First, though, it
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
gives you a preview of the changes you'll be making to the stack and asks if the
changes appear okay to you. You'll need to reply "yes" to the prompt to actually
pull the image. After the command finishes, you will see your image if you run
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
the command `docker images` or `docker image ls` (depending on your preference).
Let's dig a bit deeper into the code and explore the various Pulumi concepts.
Every resource has _inputs_ and _outputs_. Inputs are values that are
provided to the resource. Outputs are the resource's properties. Note that
Pulumi can't know the output until the resource has completed provisioning as
some of those outputs are provided by the provider after everything has loaded,
booted, or otherwise has come online. More on outputs later.
In our case here, the Docker
[`RemoteImage`](/registry/packages/docker/api-docs/remoteimage) resource
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
takes the following inputs:
{{% choosable language python %}}
2022-05-03 21:23:32 -07:00
- an unnamed string: a name for the resource we are creating
- `name`: the name of the remote image to pull down
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
{{% /choosable %}}
{{% choosable language typescript %}}
2022-05-03 21:23:32 -07:00
- an unnamed string: a name for the resource we are creating
- `name`: the name of the remote image to pull down
{{% /choosable %}}
{{% choosable language go %}}
- a Pulumi context: typically represented by the variable `ctx`
- an unnamed string: a name for the resource we are creating
- `Name`: the name of the remote image to pull down
{{% /choosable %}}
2022-05-03 21:23:32 -07:00
{{% choosable language java %}}
- an unnamed string: a name for the resource we are creating
- `name`: the name of the remote image to pull down
{{% /choosable %}}
{{% choosable language yaml %}}
- `name`: the name of the remote image to pull down
{{% /choosable %}}
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
Now that we've provisioned our first piece of infrastructure, let's add the
other pieces of our application.
## Add the frontend client and MongoDB
Our application includes a frontend client and MongoDB. We'll add them to the
program, so add this code after the previous fragment.
{{< chooser language "typescript,python,go,java,yaml" / >}}
{{% choosable language typescript %}}
```typescript
// Pull the frontend image
const frontendImageName = "frontend";
const frontend = new docker.RemoteImage(`${frontendImageName}Image`, {
2022-05-03 21:23:32 -07:00
name: "pulumi/tutorial-pulumi-fundamentals-frontend:latest",
});
// Pull the MongoDB image
const mongoImage = new docker.RemoteImage("mongoImage", {
2022-05-03 21:23:32 -07:00
name: "pulumi/tutorial-pulumi-fundamentals-database-local:latest",
});
```
{{% /choosable %}}
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
{{% choosable language python %}}
```python
# Pull the frontend image
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
frontend_image_name = "frontend"
frontend = docker.RemoteImage(f"{frontend_image_name}_image",
2022-05-03 21:23:32 -07:00
name="pulumi/tutorial-pulumi-fundamentals-frontend:latest"
)
# Pull the MongoDB image
mongo_image = docker.RemoteImage("mongo_image",
2022-05-03 21:23:32 -07:00
name="pulumi/tutorial-pulumi-fundamentals-database-local:latest"
)
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
```
{{% /choosable %}}
{{% choosable language go %}}
Add this code at the bottom of your program, just before the last `return nil` statement:
```go
// Pull the frontend image
frontendImageName := "frontend"
frontendImage, err := docker.NewRemoteImage(ctx, fmt.Sprintf("%v-image", frontendImageName), &docker.RemoteImageArgs{
Name: pulumi.String("pulumi/tutorial-pulumi-fundamentals-frontend:latest"),
})
if err != nil {
return err
}
ctx.Export("frontendDockerImage", frontendImage.Name)
// Pull the MongoDB image
mongoImage, err := docker.NewRemoteImage(ctx, "mongo-image", &docker.RemoteImageArgs{
Name: pulumi.String("pulumi/tutorial-pulumi-fundamentals-database-local:latest"),
})
if err != nil {
return err
}
ctx.Export("mongoDockerImage", mongoImage.Name)
```
{{% /choosable %}}
2022-05-03 21:23:32 -07:00
{{% choosable language java %}}
```java
// Pull the frontend image
2022-05-03 21:23:32 -07:00
final String frontendImageName = "frontend";
final var frontendImage = new RemoteImage(
2022-05-03 21:23:32 -07:00
frontendImageName,
RemoteImageArgs.builder()
.name(String.format("pulumi/tutorial-pulumi-fundamentals-%s:latest",frontendImageName))
.build()
);
// Pull the MongoDB image
final var mongoImage = new RemoteImage(
2022-05-03 21:23:32 -07:00
"mongoImage",
RemoteImageArgs.builder()
.name("pulumi/tutorial-pulumi-fundamentals-database-local:latest")
.build()
);
```
{{% /choosable %}}
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
2022-05-03 21:23:32 -07:00
{{% choosable language yaml %}}
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
2022-05-03 21:23:32 -07:00
```yaml
# Pull the frontend image
frontend-image:
type: docker:index:RemoteImage
properties:
name: pulumi/tutorial-pulumi-fundamentals-frontend:latest
# Pull the MongoDB image
mongo-image:
2022-05-03 21:23:32 -07:00
type: docker:index:RemoteImage
properties:
name: pulumi/tutorial-pulumi-fundamentals-database-local:latest
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
```
{{% /choosable %}}
We pull the frontend client and the populated MongoDB database images the same way we pulled the backend image.
2022-05-03 21:23:32 -07:00
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
Compare your program now to this complete program before we move forward:
{{< chooser language "typescript,python,go,java,yaml" / >}}
{{% choosable language typescript %}}
```typescript
import * as pulumi from "@pulumi/pulumi";
import * as docker from "@pulumi/docker";
const stack = pulumi.getStack();
// Pull the backend image
const backendImageName = "backend";
const backend = new docker.RemoteImage(`${backendImageName}Image`, {
2022-05-03 21:23:32 -07:00
name: "pulumi/tutorial-pulumi-fundamentals-backend:latest",
});
// Pull the frontend image
const frontendImageName = "frontend";
const frontend = new docker.RemoteImage(`${frontendImageName}Image`, {
2022-05-03 21:23:32 -07:00
name: "pulumi/tutorial-pulumi-fundamentals-frontend:latest",
});
// Pull the MongoDB image
const mongoImage = new docker.RemoteImage("mongoImage", {
2022-05-03 21:23:32 -07:00
name: "pulumi/tutorial-pulumi-fundamentals-database-local:latest",
});
```
{{% /choosable %}}
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
{{% choosable language python %}}
```python
import pulumi
import pulumi_docker as docker
stack = pulumi.get_stack()
# Pull the backend image
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
backend_image_name = "backend"
backend = docker.RemoteImage(f"{backend_image_name}_image",
2022-05-03 21:23:32 -07:00
name="pulumi/tutorial-pulumi-fundamentals-backend:latest"
)
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
# Pull the frontend image
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
frontend_image_name = "frontend"
frontend = docker.RemoteImage(f"{frontend_image_name}_image",
2022-05-03 21:23:32 -07:00
name="pulumi/tutorial-pulumi-fundamentals-frontend:latest"
)
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
# Pull the MongoDB image
mongo_image = docker.RemoteImage("mongo_image",
2022-05-03 21:23:32 -07:00
name="pulumi/tutorial-pulumi-fundamentals-database-local:latest"
)
```
{{% /choosable %}}
{{% choosable language go %}}
```go
package main
import (
"fmt"
"github.com/pulumi/pulumi-docker/sdk/v3/go/docker"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Pull the backend image
backendImageName := "backend"
backendImage, err := docker.NewRemoteImage(ctx, fmt.Sprintf("%v-image", backendImageName), &docker.RemoteImageArgs{
Name: pulumi.String("pulumi/tutorial-pulumi-fundamentals-backend:latest"),
})
if err != nil {
return err
}
ctx.Export("backendDockerImage", backendImage.Name)
// Pull the frontend image
frontendImageName := "frontend"
frontendImage, err := docker.NewRemoteImage(ctx, fmt.Sprintf("%v-image", frontendImageName), &docker.RemoteImageArgs{
Name: pulumi.String("pulumi/tutorial-pulumi-fundamentals-frontend:latest"),
})
if err != nil {
return err
}
ctx.Export("frontendDockerImage", frontendImage.Name)
// Pull the MongoDB image
mongoImage, err := docker.NewRemoteImage(ctx, "mongo-image", &docker.RemoteImageArgs{
Name: pulumi.String("pulumi/tutorial-pulumi-fundamentals-database-local:latest"),
})
if err != nil {
return err
}
ctx.Export("mongoDockerImage", mongoImage.Name)
return nil
})
}
```
{{% /choosable %}}
2022-05-03 21:23:32 -07:00
{{% choosable language java %}}
```java
package my_first_app;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.docker.RemoteImage;
import com.pulumi.docker.RemoteImageArgs;
import java.util.List;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
private static void stack(Context ctx) {
2022-05-03 21:23:32 -07:00
final var stackName = ctx.stackName();
// Pull the backend image
2022-05-03 21:23:32 -07:00
final String backendImageName = "backend";
final var backendImage = new RemoteImage(
2022-05-03 21:23:32 -07:00
backendImageName,
RemoteImageArgs.builder()
.name(String.format("pulumi/tutorial-pulumi-fundamentals-%s:latest",backendImageName))
.build()
);
// Pull the frontend image
2022-05-03 21:23:32 -07:00
final String frontendImageName = "frontend";
final var frontendImage = new RemoteImage(
2022-05-03 21:23:32 -07:00
frontendImageName,
RemoteImageArgs.builder()
.name(String.format("pulumi/tutorial-pulumi-fundamentals-%s:latest",frontendImageName))
.build()
);
// Pull the MongoDB image
final var mongoImage = new RemoteImage(
2022-05-03 21:23:32 -07:00
"mongoImage",
RemoteImageArgs.builder()
.name("pulumi/tutorial-pulumi-fundamentals-database-local:latest")
.build()
);
}
}
2022-05-03 21:23:32 -07:00
```
{{% /choosable %}}
{{% choosable language yaml %}}
```yaml
name: my_first_app
2022-05-03 21:23:32 -07:00
runtime: yaml
description: A minimal Pulumi YAML program
configuration: {}
variables: {}
2022-05-03 21:23:32 -07:00
resources:
# Pull the backend image
2022-05-03 21:23:32 -07:00
backend-image:
type: docker:index:RemoteImage
properties:
name: pulumi/tutorial-pulumi-fundamentals-backend:latest
# Pull the frontend image
2022-05-03 21:23:32 -07:00
frontend-image:
type: docker:index:RemoteImage
properties:
name: pulumi/tutorial-pulumi-fundamentals-frontend:latest
# Pull the MongoDB image
mongo-image:
type: docker:index:RemoteImage
properties:
name: pulumi/tutorial-pulumi-fundamentals-database-local:latest
outputs: {}
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
```
{{% /choosable %}}
If your code looks the same, great! Otherwise, update yours to match this code.
Now, run `pulumi up` to pull all of the images that we'll need.
Launch Learn (#552) * adds initial pass at pulumi in operations learn module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updating pulumi in operations with meta images and minor index updates Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds policy as code * initial add of pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add draft for pulumi in practice tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix draft status on tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Initial commit for pulumi fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add fundamentals starting point * feat(fundamentals): update all content with more learning content and patch things to be clearer * fix(fundamentals): patch up issues with export doc in other docs * fix(fundamentals): patch up fundamentals to match fix to proxy in code * feat(clouds): add new modules for fundamentals * feat(images): add images for fundamentals * Add learn index page diagram and description * Add modules section title * feat(learn meta): update images and metadata for learn now that everything is merged * feat(learn layout): update learn layout * fix(langfile): patch the python part to show dunders * feat(learn): add more updates to learn to smooth the pathways * Some updates for pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * fix typo in new project for fundamentals Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add the aws tutorials and work on the others * add testing module Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Add more testing stuff Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Scaffold azure fundamentals tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add more for aws and add gcp starters * feat(learn): add the lang features module stubs and patch up a bit * WIP azure tutorial Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * removes source control, adds references to boba shop app Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images, congratulations Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * adds images to webhooks module Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates image links, flavor text Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * updates pulumi operations index Signed-off-by: Kat Cosgrove <kat.cosgrove@gmail.com> * Update pulumi in practice Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update with secrets Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * Update secrets topic Signed-off-by: Matt Stratton <matt.stratton@gmail.com> * feat(learn): add back the meta for azure and update docs with aws * feat(fundamentals): add cleanup * fix(links): patch the links for the access tokens for Pulumi * fix(feedback): incorporate any remaining feedback from Lee Z. and Aaron for Fundamentals * fix(envvar): add the env var call for the patch to the tutorial app * fix(practice): update metadata, fix links, and clean up text in Practice * fix(fixup): forgot to save the last one; small fixup * update diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * fix(wording): update wording per feedback * fix(wording): update wording in practice based on feedback * fix(naming): fix the name in the layout * some tweaks to diagram Signed-off-by: susanev <susan.ra.evans@gmail.com> * Change learn nav items (#679) * fix(tests): start fixing the tests tutorial * fix(ops): run initial pass through ops to do some more cleanup after reviews * feat(cloud): remove cloud fundamentals from this branch for later updates * fix(webhooks): update webhooks to start adding boba shop * fix(testing): work on testing file * feat(webhooks): add more content to the webhooks Learn module and tie into boba shop * fix(cicd): fix the ci/cd module since we can't get the boba shop in there right now * fix(accesscontrol): fix up access control to make it clearer about the boba shop app * fix(pac): fix up the policy-as-code to add the tea shop and clean up the examples * fix(link): patch link in practice ending * fix(learn-ops): remove operations per review (bumping to another branch for later) * fix(testing): rewrite testing unit to be less generic * fix(chooser): fix the chooser for the python test examples in Learn * fix(cleanup): clean up the images and rename based on feedback and reviews with only two pathways * fix(wording): patch wording based on missed review * fix(image): hide learn pathway image for now until more pathways are built * fix(menu): patch the menu order to match the current one * fix(css): call class .card instead of .learn-card * feat(feedback): add feedback widget (interim) to Learn * fix(glossary): move glossary links everywhere to footnotes * Update themes/default/content/learn/building-with-pulumi/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/_index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * revert(clean): accidental add of a collision * fix(bots): fix bots call on index * fix(rename): rename topics to tutorials in layouts * fix(review): update based on review (initial run-through; more coming) * fix(consistency): update wording to be consistent * fix(lint): fix linting errors * revert(conflict): revert accidental add of conflicted file * fix(lint): fix lint errors re metadata length * Update themes/default/content/learn/pulumi-fundamentals/create-docker-images/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(review): update to match review suggestions * fix(review): finish updating based on review suggestions * Update themes/default/content/learn/pulumi-fundamentals/configure-and-provision/index.md Co-authored-by: Christian Nunciato <c@nunciato.org> * fix(derp): add missing quotation mark Co-authored-by: Kat Cosgrove <kat.cosgrove@gmail.com> Co-authored-by: Laura Santamaria <laura@nimbinatus.com> Co-authored-by: Zack Chase <zachary@pulumi.com> Co-authored-by: susanev <susan.ra.evans@gmail.com> Co-authored-by: Christian Nunciato <c@nunciato.org>
2021-11-08 16:04:20 -06:00
{{% notes type="info" %}}
Note that, in the future, you don't need to run `pulumi up` in stages like this
to create your infrastructure. You can write the entire program and then run it.
We're only doing a step-by-step process here to make learning easier.
{{% /notes %}}
From here, we can move on to configuring and provisioning our containers.
Onward!