Skip to content

Commit

Permalink
Use podman if it is installed. Fix DOCKER_USERNAME for podman.
Browse files Browse the repository at this point in the history
  • Loading branch information
hpidcock committed Oct 6, 2023
1 parent 3ffe3f7 commit 8fb6955
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 8fb6955

Please sign in to comment.