-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: rebuild objectstorage-controller image
- Loading branch information
Showing
3 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
# From image should be `gcr.io/k8s-staging-sig-storage/objectstorage-controller`. | ||
ARG SOURCE_IMAGE | ||
|
||
FROM ${SOURCE_IMAGE} | ||
|
||
# Same ENTRYPOINT as in the SOURCE_IMAGE | ||
ENTRYPOINT ["/controller"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
SOURCE_IMAGE_REPO ?= gcr.io/k8s-staging-sig-storage/objectstorage-controller | ||
SOURCE_IMAGE_VERSION ?= v20250110-a29e5f6 | ||
SOURCE_IMAGE ?= $(SOURCE_IMAGE_REPO):$(SOURCE_IMAGE_VERSION) | ||
|
||
TARGET_IMAGE_REPO ?= ghcr.io/mesosphere/dkp-container-images/objectstorage-controller | ||
TARGET_IMAGE_VERSION ?= $(SOURCE_IMAGE_VERSION) | ||
TARGET_IMAGE ?= $(TARGET_IMAGE_REPO):$(TARGET_IMAGE_VERSION) | ||
|
||
.PHONY: docker-build | ||
docker-build: | ||
docker build --build-arg="SOURCE_IMAGE=$(SOURCE_IMAGE)" -t $(TARGET_IMAGE) . | ||
|
||
.PHONY: build-args | ||
build-args: | ||
@echo "SOURCE_IMAGE=$(SOURCE_IMAGE)" | ||
@echo "TARGET_IMAGE=$(TARGET_IMAGE)" | ||
@echo "TARGET_IMAGE_VERSION=$(TARGET_IMAGE_VERSION)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# objectstorage-controller | ||
|
||
A custom build of `gcr.io/k8s-staging-sig-storage/objectstorage-controller:` container image. The registry hosting this image is being shut down https://console.cloud.google.com/gcr/images/k8s-staging-sig-storage/global/objectstorage-controller. | ||
|
||
The Dockerile will be based on the upstream project https://github.com/kubernetes-sigs/container-object-storage-interface/blob/main/controller/Dockerfile. | ||
|
||
## Build | ||
|
||
```shell | ||
make docker-build | ||
``` |