-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
29 lines (21 loc) · 863 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
all: clean extension install
ORG=mochoa
XE_IMAGE_NAME=gvenzl/oracle-xe
VERSION=21.3.0
IMAGE_NAME=$(ORG)/oraclexe-docker-extension
TAGGED_IMAGE_NAME=$(IMAGE_NAME):$(VERSION)
clean:
-docker extension rm $(IMAGE_NAME)
-docker rmi $(TAGGED_IMAGE_NAME)
extension:
docker build -t $(TAGGED_IMAGE_NAME) --build-arg VERSION=$(VERSION) --build-arg XE_IMAGE_NAME=$(XE_IMAGE_NAME) .
install:
docker extension install $(TAGGED_IMAGE_NAME)
validate: extension
docker extension validate $(TAGGED_IMAGE_NAME)
update: extension
docker extension update $(TAGGED_IMAGE_NAME)
multiarch:
docker buildx create --name=buildx-multi-arch --driver=docker-container --driver-opt=network=host
build:
docker buildx build --push --builder=buildx-multi-arch --platform=linux/amd64 --build-arg TAG=$(TAG) --build-arg XE_IMAGE_NAME=$(XE_IMAGE_NAME) --tag=$(TAGGED_IMAGE_NAME) .