You've already forked db-wait
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
653e337ea0
|
|||
|
227a94b0d7
|
@@ -6,21 +6,6 @@ VERSION?=$(shell git describe --abbrev=0)+hash.$(shell git rev-parse --short HEA
|
|||||||
DESTDIR?=
|
DESTDIR?=
|
||||||
PREFIX?=/usr/local
|
PREFIX?=/usr/local
|
||||||
|
|
||||||
# CONTAINER_RUNTIME
|
|
||||||
# The CONTAINER_RUNTIME variable will be used to specified the path to a
|
|
||||||
# container runtime. This is needed to start and run a container image.
|
|
||||||
CONTAINER_RUNTIME?=$(shell which podman)
|
|
||||||
|
|
||||||
# DB_WAIT_IMAGE_REGISTRY_NAME
|
|
||||||
# Defines the name of the new container to be built using several variables.
|
|
||||||
DB_WAIT_IMAGE_REGISTRY_NAME:=git.cryptic.systems
|
|
||||||
DB_WAIT_IMAGE_REGISTRY_USER:=volker.raschek
|
|
||||||
|
|
||||||
DB_WAIT_IMAGE_NAMESPACE?=${DB_WAIT_IMAGE_REGISTRY_USER}
|
|
||||||
DB_WAIT_IMAGE_NAME:=${EXECUTABLE}
|
|
||||||
DB_WAIT_IMAGE_VERSION?=latest
|
|
||||||
DB_WAIT_IMAGE_FULLY_QUALIFIED=${DB_WAIT_IMAGE_REGISTRY_NAME}/${DB_WAIT_IMAGE_NAMESPACE}/${DB_WAIT_IMAGE_NAME}:${DB_WAIT_IMAGE_VERSION}
|
|
||||||
|
|
||||||
# BIN
|
# BIN
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
db-wait:
|
db-wait:
|
||||||
@@ -82,31 +67,6 @@ uninstall:
|
|||||||
${DESTDIR}${PREFIX}/bin/${EXECUTABLE} \
|
${DESTDIR}${PREFIX}/bin/${EXECUTABLE} \
|
||||||
${DESTDIR}${PREFIX}/share/licenses/${EXECUTABLE}
|
${DESTDIR}${PREFIX}/share/licenses/${EXECUTABLE}
|
||||||
|
|
||||||
# BUILD CONTAINER IMAGE
|
|
||||||
# ==============================================================================
|
|
||||||
PHONY+=container-image/build
|
|
||||||
container-image/build:
|
|
||||||
${CONTAINER_RUNTIME} build \
|
|
||||||
--build-arg VERSION=${VERSION} \
|
|
||||||
--file Dockerfile \
|
|
||||||
--no-cache \
|
|
||||||
--pull \
|
|
||||||
--tag ${DB_WAIT_IMAGE_FULLY_QUALIFIED} \
|
|
||||||
.
|
|
||||||
|
|
||||||
# DELETE CONTAINER IMAGE
|
|
||||||
# ==============================================================================
|
|
||||||
PHONY:=container-image/delete
|
|
||||||
container-image/delete:
|
|
||||||
- ${CONTAINER_RUNTIME} image rm ${DB_WAIT_IMAGE_FULLY_QUALIFIED}
|
|
||||||
|
|
||||||
# PUSH CONTAINER IMAGE
|
|
||||||
# ==============================================================================
|
|
||||||
PHONY+=container-image/push
|
|
||||||
container-image/push:
|
|
||||||
echo ${DB_WAIT_IMAGE_REGISTRY_PASSWORD} | ${CONTAINER_RUNTIME} login ${DB_WAIT_IMAGE_REGISTRY_NAME} --username ${DB_WAIT_IMAGE_REGISTRY_USER} --password-stdin
|
|
||||||
${CONTAINER_RUNTIME} push ${DB_WAIT_IMAGE_FULLY_QUALIFIED}
|
|
||||||
|
|
||||||
# PHONY
|
# PHONY
|
||||||
# ==============================================================================
|
# ==============================================================================
|
||||||
# Declare the contents of the PHONY variable as phony. We keep that information
|
# Declare the contents of the PHONY variable as phony. We keep that information
|
||||||
|
|||||||
Reference in New Issue
Block a user