Skip to content

Commit

Permalink
feat: rebuild objectstorage-sidecar image
Browse files Browse the repository at this point in the history
  • Loading branch information
dkoshkin committed Jan 23, 2025
1 parent 418074e commit 3b0c4dd
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions cosi/objectstorage-sidecar/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 ["/sidecar"]
17 changes: 17 additions & 0 deletions cosi/objectstorage-sidecar/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-sidecar
SOURCE_IMAGE_VERSION ?= v20250123-a0e4046
SOURCE_IMAGE ?= $(SOURCE_IMAGE_REPO):$(SOURCE_IMAGE_VERSION)

TARGET_IMAGE_REPO ?= ghcr.io/mesosphere/dkp-container-images/objectstorage-sidecar
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 cosi/objectstorage-sidecar/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-sidecar:` container image. The registry hosting this image is being shut down https://console.cloud.google.com/gcr/images/k8s-staging-sig-storage/global/objectstorage-sidecar.

The Dockerile will be based on the upstream project https://github.com/kubernetes-sigs/container-object-storage-interface/blob/main/sidecar/Dockerfile.

## Build

```shell
make docker-build
```

0 comments on commit 3b0c4dd

Please sign in to comment.