Skip to content

Commit dde805d

Browse files
committed
ystack's y-deno is unmaintained so build runtime from official
deno distroless image instead
1 parent 44afd45 commit dde805d

File tree

4 files changed

+53
-16
lines changed

4 files changed

+53
-16
lines changed

.github/workflows/images.yaml

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ jobs:
5353
crane cp curlimages/curl:$TAG_CURL ghcr.io/yolean/curl:$TAG_CURL
5454
crane cp busybox:$TAG_BUSYBOX ghcr.io/yolean/busybox:$TAG_BUSYBOX
5555
crane cp mailgun/kafka-pixy:0.17.0@sha256:0b5f4795c0b0d80729fa7415ec70ae4d411e152c6149656dddf01b18184792e0 ghcr.io/yolean/kafka-pixy:0.17.0
56-
crane cp docker.io/yolean/runtime-deno:2c6e176109a4cb1850cb7f8fa56411d370e3f705@sha256:5aeb0b9191bb8c0f1f4b46fb4e9a03857d5b78007a1b960dcced9404dd368bc9 ghcr.io/yolean/runtime-deno:2c6e176109a4cb1850cb7f8fa56411d370e3f705
5756
crane cp tinygo/tinygo:$TAG_TINYGO ghcr.io/yolean/tinygo:$TAG_TINYGO
5857
-
5958
name: Set up QEMU
@@ -291,6 +290,20 @@ jobs:
291290
push: true
292291
cache-from: type=gha
293292
cache-to: type=gha,mode=max
293+
-
294+
name: Build and push runtime-deno latest
295+
uses: docker/build-push-action@v5
296+
env:
297+
SOURCE_DATE_EPOCH: 0
298+
with:
299+
context: runtime-deno
300+
tags: |
301+
ghcr.io/yolean/runtime-deno:latest
302+
ghcr.io/yolean/runtime-deno:${{ github.sha }}
303+
platforms: linux/amd64,linux/arm64/v8
304+
push: true
305+
cache-from: type=gha
306+
cache-to: type=gha,mode=max
294307
-
295308
name: Build and push java root
296309
uses: docker/build-push-action@v5
@@ -542,6 +555,36 @@ jobs:
542555
cache-to: type=gha,mode=max
543556
build-contexts: |
544557
yolean/runtime-quarkus-ubuntu:root=docker-image://ghcr.io/yolean/runtime-quarkus-ubuntu:root
558+
-
559+
name: Build and push runtime-quarkus-deno root
560+
uses: docker/build-push-action@v5
561+
env:
562+
SOURCE_DATE_EPOCH: 0
563+
with:
564+
context: runtime-quarkus-deno
565+
tags: |
566+
ghcr.io/yolean/runtime-quarkus-deno:root
567+
ghcr.io/yolean/runtime-quarkus-deno:${{ github.sha }}-root
568+
platforms: linux/amd64,linux/arm64/v8
569+
push: true
570+
cache-from: type=gha
571+
cache-to: type=gha,mode=max
572+
-
573+
name: Build and push runtime-quarkus-deno latest
574+
uses: docker/build-push-action@v5
575+
env:
576+
SOURCE_DATE_EPOCH: 0
577+
with:
578+
context: to-nonroot/runtime-quarkus-deno
579+
tags: |
580+
ghcr.io/yolean/runtime-quarkus-deno:latest
581+
ghcr.io/yolean/runtime-quarkus-deno:${{ github.sha }}
582+
platforms: linux/amd64,linux/arm64/v8
583+
push: true
584+
cache-from: type=gha
585+
cache-to: type=gha,mode=max
586+
build-contexts: |
587+
yolean/runtime-quarkus-deno:root=docker-image://ghcr.io/yolean/runtime-quarkus-deno:root
545588
-
546589
name: Build and push runtime-quarkus-ubuntu-jre root
547590
uses: docker/build-push-action@v5

runtime-deno/Dockerfile

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
1-
FROM yolean/builder-quarkus as libs
2-
3-
RUN y-deno -V
1+
FROM denoland/deno:distroless-2.1.1@sha256:8c7fbba4e216e9535ac9869744ce36e225814aa3adc7754fdeb5930a2a86f34f AS deno
42

53
FROM --platform=$TARGETPLATFORM gcr.io/distroless/static-debian12:nonroot@sha256:d71f4b239be2d412017b798a0a401c44c3049a3ca454838473a4c32ed076bfea
64

7-
COPY --from=libs \
8-
/usr/lib/x86_64-linux-gnu/libgcc_s.so.* \
9-
/usr/lib/x86_64-linux-gnu/
10-
11-
COPY --from=libs \
12-
/usr/local/src/ystack/bin/deno /deno
5+
COPY --from=deno \
6+
/bin/deno /usr/local/bin/deno
137

14-
ENTRYPOINT ["/deno"]
8+
ENTRYPOINT ["/usr/local/bin/deno"]
159
CMD ["-V"]

runtime-quarkus-deno/Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
FROM yolean/builder-base as base
2-
3-
RUN y-deno -V
1+
FROM yolean/runtime-deno AS runtime-deno
42

53
FROM yolean/runtime-quarkus-ubuntu
64

7-
COPY --from=base \
8-
/usr/local/src/ystack/bin/deno /usr/local/bin/deno
5+
COPY --from=runtime-deno \
6+
/usr/local/bin/deno /usr/local/bin/deno

test.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ blobs
3131
headless-chrome
3232
git-http-readonly
3333
runtime-quarkus
34+
runtime-deno
3435
"
3536

3637
MULTIARCH_TONONROOT="
@@ -42,6 +43,7 @@ node-watchexec
4243
node-kafka-watch
4344
node-gcloud
4445
runtime-quarkus-ubuntu
46+
runtime-quarkus-deno
4547
runtime-quarkus-ubuntu-jre
4648
runtime-quarkus-dev
4749
toil-storage

0 commit comments

Comments
 (0)