Skip to content

NEW PODMAN_BUILD=1 option to update.sh - #111

Merged
creekorful merged 2 commits into
Dolibarr:mainfrom
JonBendtsen:podman_build
May 5, 2026
Merged

NEW PODMAN_BUILD=1 option to update.sh#111
creekorful merged 2 commits into
Dolibarr:mainfrom
JonBendtsen:podman_build

Conversation

@JonBendtsen

Copy link
Copy Markdown
Contributor

NEW PODMAN_BUILD=1 option to update.sh
Applying this PR will add a PODMAN_BUILD option to update.sh just like the DOCKER_BUILD option.

tested like this
PODMAN_BUILD=1 ./update.sh

Results

localhost/dolibarr/dolibarr   develop              771a01c7cd2c  9 seconds ago   998 MB
localhost/dolibarr/dolibarr   23.0.2-php8.2        8e9e42468b65  2 minutes ago   986 MB
localhost/dolibarr/dolibarr   23.0.2               8e9e42468b65  2 minutes ago   986 MB
localhost/dolibarr/dolibarr   23                   8e9e42468b65  2 minutes ago   986 MB
localhost/dolibarr/dolibarr   latest               8e9e42468b65  2 minutes ago   986 MB
localhost/dolibarr/dolibarr   22                   7bc39d5be799  4 minutes ago   980 MB
localhost/dolibarr/dolibarr   22.0.4-php8.2        7bc39d5be799  4 minutes ago   980 MB
localhost/dolibarr/dolibarr   22.0.4               7bc39d5be799  4 minutes ago   980 MB
localhost/dolibarr/dolibarr   21.0.4               54e23b629b88  5 minutes ago   969 MB
localhost/dolibarr/dolibarr   21.0.4-php8.2        54e23b629b88  5 minutes ago   969 MB
localhost/dolibarr/dolibarr   21                   54e23b629b88  5 minutes ago   969 MB
localhost/dolibarr/dolibarr   20                   3ad92d2dd683  7 minutes ago   965 MB
localhost/dolibarr/dolibarr   20.0.4-php8.2        3ad92d2dd683  7 minutes ago   965 MB
localhost/dolibarr/dolibarr   20.0.4               3ad92d2dd683  7 minutes ago   965 MB
localhost/dolibarr/dolibarr   19.0.4-php8.2        a58b61a1de70  9 minutes ago   957 MB
localhost/dolibarr/dolibarr   19.0.4               a58b61a1de70  9 minutes ago   957 MB
localhost/dolibarr/dolibarr   19                   a58b61a1de70  9 minutes ago   957 MB
localhost/dolibarr/dolibarr   18.0.9-php8.1        0cbe6ff6f1f9  11 minutes ago  981 MB
localhost/dolibarr/dolibarr   18.0.9               0cbe6ff6f1f9  11 minutes ago  981 MB
localhost/dolibarr/dolibarr   18                   0cbe6ff6f1f9  11 minutes ago  981 MB
localhost/dolibarr/dolibarr   17                   26a5231c497b  13 minutes ago  978 MB
localhost/dolibarr/dolibarr   17.0.4-php8.1        26a5231c497b  13 minutes ago  978 MB
localhost/dolibarr/dolibarr   17.0.4               26a5231c497b  13 minutes ago  978 MB
localhost/dolibarr/dolibarr   16.0.5-php8.1        e00cd1c13688  15 minutes ago  965 MB
localhost/dolibarr/dolibarr   16.0.5               e00cd1c13688  15 minutes ago  965 MB
localhost/dolibarr/dolibarr   16                   e00cd1c13688  15 minutes ago  965 MB
localhost/dolibarr/dolibarr   15.0.3               98114b8fe111  17 minutes ago  947 MB
localhost/dolibarr/dolibarr   15                   98114b8fe111  17 minutes ago  947 MB
localhost/dolibarr/dolibarr   15.0.3-php7.4        98114b8fe111  17 minutes ago  947 MB

@creekorful creekorful self-assigned this May 4, 2026
Comment thread update.sh Outdated
fi

if [ "${PODMAN_BUILD}" = "1" ]; then
echo "Trying to build ${buildOptionTags} in '${dir}'"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me, can you just remove the debug output to stay consistent with the docker build step?


Another implementation idea would be to add a "CONTAINER_CMD" variable for example that will default to "docker". And since podman use the same convention as docker it would be a drop in replacement :

CONTAINER_CMD={$CONTAINER_CMD:docker}

// later on...

$CONTAINER_CMD build \
          --compress \
          ${buildOptionTags} \
          "${dir}"

The only thing that won't 100% work is everything related to "buildx". But in this case we can just keep the hardcoded "docker" call.

wdyt?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

my immediate thought is that that buildx and podman would make some issues, so I'm more inclined to keep it as a separate build option - at least for now, also since I expect very few people to use it, and I want as few people as possible getting issues with podman which they might not even know what is

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good to me! Can you just remove the print output to stay consistent with the docker build?

@creekorful
creekorful merged commit 59337f9 into Dolibarr:main May 5, 2026
2 checks passed
@JonBendtsen
JonBendtsen deleted the podman_build branch May 5, 2026 07:09
DoWebMx pushed a commit to DoWeb-Mx/dolibarr-docker-image that referenced this pull request May 19, 2026
DoWebMx pushed a commit to DoWeb-Mx/dolibarr-docker-image that referenced this pull request May 19, 2026
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.

2 participants