Skip to content

Commit 6b75704

Browse files
committed
includes node-kafka-duckdb in builds
1 parent 6abccd8 commit 6b75704

File tree

4 files changed

+54
-2
lines changed

4 files changed

+54
-2
lines changed

.github/workflows/images.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,50 @@ jobs:
678678
yolean/node-kafka-sqlite:root=docker-image://ghcr.io/yolean/node-kafka-sqlite:root
679679
continue-on-error: false
680680
timeout-minutes: 45
681+
-
682+
name: Build and push node-kafka-duckdb root
683+
uses: docker/[email protected]
684+
env:
685+
SOURCE_DATE_EPOCH: 0
686+
BUILDKIT_PROGRESS: plain
687+
DOCKER_BUILDKIT: 1
688+
with:
689+
context: node-kafka-duckdb
690+
tags: |
691+
ghcr.io/yolean/node-kafka-duckdb:root
692+
ghcr.io/yolean/node-kafka-duckdb:${{ github.sha }}-root
693+
platforms: linux/amd64,linux/arm64/v8
694+
push: true
695+
cache-from: |
696+
type=gha,scope=buildx-node-kafka-duckdb-root
697+
type=gha,scope=buildx-node-kafka-duckdb
698+
cache-to: type=gha,mode=max,scope=buildx-node-kafka-duckdb-root
699+
build-contexts: |
700+
yolean/node-kafka:root=docker-image://ghcr.io/yolean/node-kafka:root
701+
continue-on-error: false
702+
timeout-minutes: 45
703+
-
704+
name: Build and push node-kafka-duckdb latest
705+
uses: docker/[email protected]
706+
env:
707+
SOURCE_DATE_EPOCH: 0
708+
BUILDKIT_PROGRESS: plain
709+
DOCKER_BUILDKIT: 1
710+
with:
711+
context: to-nonroot/node-kafka-duckdb
712+
tags: |
713+
ghcr.io/yolean/node-kafka-duckdb:latest
714+
ghcr.io/yolean/node-kafka-duckdb:${{ github.sha }}
715+
platforms: linux/amd64,linux/arm64/v8
716+
push: true
717+
cache-from: |
718+
type=gha,scope=buildx-node-kafka-duckdb-latest
719+
type=gha,scope=buildx-node-kafka-duckdb
720+
cache-to: type=gha,mode=max,scope=buildx-node-kafka-duckdb-latest
721+
build-contexts: |
722+
yolean/node-kafka-duckdb:root=docker-image://ghcr.io/yolean/node-kafka-duckdb:root
723+
continue-on-error: false
724+
timeout-minutes: 45
681725
-
682726
name: Build and push node-watchexec root
683727
uses: docker/[email protected]

node-kafka-duckdb/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"private": true,
33
"dependencies": {
4-
"@duckdb/node-bindings": "1.4.1-r.4",
5-
"sqlite3": "5.1.7"
4+
"@duckdb/node-bindings": "1.4.1-r.4"
65
}
76
}

test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ node
4242
node-kafka
4343
node-kafka-cache
4444
node-kafka-sqlite
45+
node-kafka-duckdb
4546
node-watchexec
4647
node-kafka-watch
4748
node-gcloud
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM --platform=$TARGETPLATFORM yolean/node-kafka-duckdb:root
2+
3+
# Appends the same nonroot directives as https://github.com/Yolean/kubernetes-kafka/tree/master/nonroot
4+
# i.e. https://github.com/solsson/dockerfiles/tree/native/kafka-nonroot
5+
RUN grep 'nonroot:x:65532' /etc/passwd || \
6+
echo 'nonroot:x:65532:65534:nonroot:/home/nonroot:/usr/sbin/nologin' >> /etc/passwd && \
7+
mkdir -p /home/nonroot && touch /home/nonroot/.bash_history && chown -R 65532:65534 /home/nonroot
8+
USER nonroot:nogroup

0 commit comments

Comments
 (0)