Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.

Conversation

@colinmixonn
Copy link
Contributor

I was unclear what commands to include for azure login so I know that needs to be included before merging into main.

Runs successfully in my tests from beginning to end

@rgardler-msft
Copy link
Collaborator

This is an OSS Labs document, we should not be forking it into our repo. It should go into the upstream repo. Lets review it here first, but not merge here.

@colinmixonn
Copy link
Contributor Author

Currently stuck on avoiding hardcoding the users GitHub username in the .json file. I've read that .json files dont accept variables. Example below.

"GITHUB_USER_OR_OR": "colinmixonn",
"CONTAINER_IMAGE":"ghcr.io/colinmixonn/serverless-python:release",

… README as a user filled variable and respective instructions. Renumbered steps
…tep to prereqs. changed numbering. Added styling throughout
Copy link
Contributor

@UmakanthOS UmakanthOS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

Copy link
Collaborator

@rgardler-msft rgardler-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doc is not executable or testable.

Not executable because there are manual steps in the prerequisites. Not testable because a) not executable and b) no results sections to validate execution against.

8. Click on "serverless-python" under "Packages" on the right hand side
9. Copy the `docker pull` command which will include the image name
10. Update the `GITHUB_USERNAME` environment variable below with your GitHub username or organization name.
* **Press `b` and run the command `GITHUB_USERNAME="username"` to set variable.**
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this? It means nothing in a published document context. Why is it here?

When run in SimDem the use of an environment variable will automatically result in the customer being prompted for a value if no value exists yet.

Currently, Container App is in preview so it requries an extension.
```
az extension add --name containerapp
```
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the Results section that would make this a textable doc?

```
```
az provider register --namespace Microsoft.OperationalInsights --wait
```
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Results sections needed.


Before you can begin you need to follow the prerequisite steps found here

1. Visit https://github.com/asw101/python-fastapi-pypy
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a manual step and thus will not work in an executable doc environment. Exec docs need to be runnable without human interaction.

If the user is expected to grab this content then they should be given the command to grab it automatically and the execution of that command would then be included in unattended execution.

echo $GITHUB_USERNAME
```

# Step 1 - Install Azure CLI Extension
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This header is at the same level as all the others. Is that correct? If so then Step 1 isn't really appropriate. Stylistic comment, feel free to ignore.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants