Skip to content

Commit

Permalink
Revert "Cleanup: Remove migrated component (#126)"
Browse files Browse the repository at this point in the history
This reverts commit 920fb84.
  • Loading branch information
merlimat committed Feb 16, 2024
1 parent e29c5b3 commit 0c93d51
Show file tree
Hide file tree
Showing 23 changed files with 1,638 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .ci/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
ARG PULSAR_FQ_IMAGE
FROM ${PULSAR_FQ_IMAGE}

ARG OXIA_VERSION

USER root
RUN rm -rf /pulsar/lib/pulsar-metadatastore-oxia-*-shaded.jar

COPY ../pulsar-metadatastore-oxia/target/pulsar-metadatastore-oxia-${OXIA_VERSION}-shaded.jar /pulsar/lib
55 changes: 55 additions & 0 deletions .github/workflows/dispatch-build-test-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Build & Publish testing pulsar image

on:
workflow_dispatch:
inputs:
pulsar_image:
description: pulsar image
required: true
pulsar_tag:
description: pulsar tag
required: true
publish_image:
description: publish image
required: true

jobs:
build-publish:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: mvn clean install -DskipTests
- name: Extract Maven project version
run: echo ::set-output name=version::$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
id: version
- uses: docker/setup-qemu-action@v2
- uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/#-action@v2
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/x86_64,linux/arm64
push: true
file: ./.ci/Dockerfile
tags: ${{ github.event.inputs.publish_image }}:${{ github.event.inputs.pulsar_tag }}-oxia-${{ steps.version.outputs.version }}
build-args: |
PULSAR_FQ_IMAGE=${{ github.event.inputs.pulsar_image }}:${{ github.event.inputs.pulsar_tag }}
OXIA_VERSION=${{ steps.version.outputs.version }}
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
<module>testcontainers</module>
<module>client-it</module>
<module>perf</module>
<module>pulsar-metadatastore-oxia</module>
</modules>

<scm>
Expand Down
Loading

0 comments on commit 0c93d51

Please # to comment.