GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Refactor podman commands for consistency and clarity by SaschaSchwarze0 · Pull Request #439 · IBM/CodeEngine

Conversation

@SaschaSchwarze0

@SaschaSchwarze0 SaschaSchwarze0 commented Jul 10, 2026

Copy link
Copy Markdown
Member

Various changes:

  • Hook is not interactive -> it argument makes no sense
  • Consistent image name (with vs without latest tag)
  • Consistent long argument names (done for the ibmcloud command but not for podman)
  • Logged and performed ibmcloud commands not the same

TBD:

  • hook retry limit is 3 but if it succeeds to start ollama but fails on the model pull the retries will all fail on podman run because container ollama already exists
  • granite 4 is outdated, what about 4.1 ?
  • What is the value of the volume ? It primarily makes the solution slow because it uses the boot volume of the machine.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@SaschaSchwarze0
SaschaSchwarze0 requested review from Luke-Roy-IBM and reggeenr July 10, 2026 06:18
reggeenr
reggeenr approved these changes Jul 10, 2026
View reviewed changes

@reggeenr reggeenr left a comment

Copy link
Copy Markdown
Collaborator

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@reggeenr

reggeenr commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

You brought up very good points w.r.t. retry handling, granite model version, etc. I will leave it up to @Luke-Roy-IBM to improve the example

Luke-Roy-IBM reacted with laugh emoji
All reactions
  • 😄 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Luke-Roy-IBM

Luke-Roy-IBM commented Jul 10, 2026

Copy link
Copy Markdown
Member

Changees look good 👍

hook retry limit is 3 but if it succeeds to start ollama but fails on the model pull the retries will all fail on podman run because container ollama already exists

Yes the --name could be removed or we add a uuid to it like in the fleet examples

granite 4 is outdated, what about 4.1 ?

We should probably remove granite in general and find an alternative small model for this example

What is the value of the volume ? It primarily makes the solution slow because it uses the boot volume of the machine.

volume is of no real concern for the example

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@SaschaSchwarze0

SaschaSchwarze0 commented Jul 10, 2026

Copy link
Copy Markdown
Member Author

hook retry limit is 3 but if it succeeds to start ollama but fails on the model pull the retries will all fail on podman run because container ollama already exists

Yes the --name could be removed or we add a uuid to it like in the fleet examples

That does not help. Then you try to start a second container and get a port conflict. Two options are there imo:

  1. Before starting the container podman rm ollama --force || true to remove it if it was already started.
  2. Before starting the container, use for example podman inspect ollama to check if the container is already there.

(2) Has the risk that the container was started but somehow does not work properly.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@SaschaSchwarze0
Refactor podman commands for consistency and clarity
6e2ba47
Signed-off-by: Sascha Schwarze <[email protected]>
@SaschaSchwarze0
SaschaSchwarze0 force-pushed the SaschaSchwarze0-patch-1 branch from 9dc15db to 6e2ba47 Compare July 10, 2026 06:47
@Luke-Roy-IBM

Luke-Roy-IBM commented Jul 10, 2026

Copy link
Copy Markdown
Member

@SaschaSchwarze0 good point option 1 makes sense

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@reggeenr reggeenr reggeenr approved these changes
@Luke-Roy-IBM Luke-Roy-IBM Awaiting requested review from Luke-Roy-IBM

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@SaschaSchwarze0 @reggeenr @Luke-Roy-IBM
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.