Skip to content

Use bookworm in tutorial, disable console block copy.#39

Merged
mavenugo merged 2 commits intomainfrom
users/jglogan/shellsession-console
Jun 9, 2025
Merged

Use bookworm in tutorial, disable console block copy.#39
mavenugo merged 2 commits intomainfrom
users/jglogan/shellsession-console

Conversation

@jglogan
Copy link
Contributor

@jglogan jglogan commented Jun 8, 2025

  • Switched to use bookworm Python image as curl is not in slim.
  • Use pre tags for console blocks. We lose syntax highlighting, but get rid of the copy button.
  • Fix dockerfile tag in tutorial.
  • Fix GitHub typo in README.

@mavenugo
Copy link
Contributor

mavenugo commented Jun 8, 2025

Please refer to #40 where I used the <pre> tag to replace the code blocks to avoid the copy-to-clipboard...

I still see the copy-to-clipboard option with console tag.

@jglogan jglogan force-pushed the users/jglogan/shellsession-console branch from 3ffe99e to 6711c23 Compare June 8, 2025 05:11
@jglogan jglogan changed the title Replace PrismJS shellsession with GH markdown console tag. Use alpine in tutorial, disable console block copy. Jun 8, 2025
Copy link
Contributor

@mavenugo mavenugo left a comment

Choose a reason for hiding this comment

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

@joshelman I dont see wget as well in the web-test image.

docs/tutorial.md Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

when I tried the web-test image, I dont see wget either.

@jglogan jglogan changed the title Use alpine in tutorial, disable console block copy. Use bookworm in tutorial, disable console block copy. Jun 8, 2025
- Switched to use bookworm Python image as curl is not in slim.
- Use `pre` tags for console blocks. We lose syntax highlighting,
  but get rid of the copy button.
- Fix dockerfile tag in tutorial.
- Fix GitHub typo in README.
@jglogan jglogan force-pushed the users/jglogan/shellsession-console branch from 7d6fca7 to d066e29 Compare June 8, 2025 18:19
@egernst
Copy link
Contributor

egernst commented Jun 8, 2025

...testing now...

To validate your published image, remove your existing web server image, and then run using the remote image:
To validate your published image, stop your current web server container, remove the image that you built, and then run using the remote image:

```bash
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be changed to <pre> as well. since "registry.example.com" and "fido" are all sample ones, there is no use for the users to copy them in clipboard. Also, this is a multi line command... copy them and pasting will result in failure and that isnt useful either.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

copy/paste multiple lines should work as long as there's no interactive input on any command

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems odd to me to use console format for something that's not a terminal session - prompts, input, and output.

Users may want to copy/paste and then edit the command line, as opposed to typing everything in. zsh and just about any modern shell allows editing multi-line commands.


Your web server is accessible from other containers as well as from your host. Launch a second container using your `web-test` image, and this time, specify a `curl` command to retrieve the `index.html` content from the first container.
Your web server is accessible from other containers as well as from your host. Launch a second container using your `web-test` image, and this time, specify a `wget` command to retrieve the `index.html` content from the first container.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think it is useful to have another bash with just container run -it --rm web-test curl http://192.168.64.3 for easy copy-paste for the user. (we have it just below for test domain below).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

@mavenugo mavenugo left a comment

Choose a reason for hiding this comment

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

LGTM

@mavenugo mavenugo merged commit ff59bb3 into main Jun 9, 2025
2 checks passed
@mavenugo mavenugo deleted the users/jglogan/shellsession-console branch June 9, 2025 00:30
owenarthur pushed a commit to owenarthur/container that referenced this pull request Jun 10, 2025
- Switched to use bookworm Python image as `curl` is not in slim.
- Use `pre` tags for console blocks. We lose syntax highlighting, but
get rid of the copy button.
- Fix `dockerfile` tag in tutorial.
- Fix GitHub typo in README.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants