Skip to content

Commit

Permalink
Merge pull request juju#16390 from hpidcock/fix-podman
Browse files Browse the repository at this point in the history
juju#16390

- Changes to prefer podman over docker.
- Podman doesn't use the default domain of docker.io in oci image references. This prefixes our docker org with docker.io to be compatible with podman and docker.

## QA steps

With only docker installed
- `make operator-image` should use docker
With podman installed (with or without docker also installed)
- `make operator-image` should use podman
- Images created should be prefixed with docker.io by default.

## Documentation changes

N/A

## Links

N/A
  • Loading branch information
jujubot authored Oct 6, 2023
2 parents 3ffe3f7 + 8fb6955 commit 91c6697
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,8 @@ check-deps:


# CAAS related targets
export OCI_BUILDER ?= docker
DOCKER_USERNAME ?= jujusolutions
export OCI_BUILDER ?= $(shell (which podman 2>&1 > /dev/null && echo podman) || echo docker )
DOCKER_USERNAME ?= docker.io/jujusolutions
DOCKER_BUILDX_CONTEXT ?= juju-make
DOCKER_STAGING_DIR ?= ${BUILD_DIR}/docker-staging
JUJUD_STAGING_DIR ?= ${DOCKER_STAGING_DIR}/jujud-operator
Expand Down
2 changes: 1 addition & 1 deletion make_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ JUJU_BUILD_NUMBER=${JUJU_BUILD_NUMBER:-}

# Docker variables
OCI_BUILDER=${OCI_BUILDER:-docker}
DOCKER_USERNAME=${DOCKER_USERNAME:-jujusolutions}
DOCKER_USERNAME=${DOCKER_USERNAME:-docker.io/jujusolutions}
DOCKER_BUILDX_CONTEXT=${DOCKER_BUILDX_CONTEXT:-juju-make}
DOCKER_STAGING_DIR="${BUILD_DIR}/docker-staging"
DOCKER_BIN=${DOCKER_BIN:-$(which ${OCI_BUILDER} || true)}
Expand Down

0 comments on commit 91c6697

Please sign in to comment.