Skip to content

Commit

Permalink
feat: rebuild objectstorage-controller image
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoshkin committed Jan 22, 2025
1 parent 916bac2 commit 8d9da15
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
9 changes: 9 additions & 0 deletions objectstorage-controller/Dockerfile
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"]
17 changes: 17 additions & 0 deletions objectstorage-controller/Makefile
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)"
11 changes: 11 additions & 0 deletions objectstorage-controller/README.md
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
```

0 comments on commit 8d9da15

Please sign in to comment.