Openstatus www.openstatus.dev

fix bun (#1705)

authored by

Thibault Le Ouay and committed by
GitHub
551c67e6 b8263e07

+76 -76
+4 -4
apps/workflows/Dockerfile
··· 10 10 RUN apt update && apt install -y ca-certificates && update-ca-certificates 11 11 12 12 # docker 13 - FROM oven/bun@sha256:fbf8e67e9d3b806c86be7a2f2e9bae801f2d9212a21db4dcf8cc9889f5a3c9c4 AS docker 13 + FROM oven/bun@sha256:e90cdbaf9ccdb3d4bd693aa335c3310a6004286a880f62f79b18f9b1312a8ec3 AS docker 14 14 LABEL \ 15 - org.opencontainers.image.base.digest="sha256:fbf8e67e9d3b806c86be7a2f2e9bae801f2d9212a21db4dcf8cc9889f5a3c9c4" \ 16 - org.opencontainers.image.base.name="docker.io/oven/bun:1.3.3" 15 + org.opencontainers.image.base.digest="sha256:e90cdbaf9ccdb3d4bd693aa335c3310a6004286a880f62f79b18f9b1312a8ec3" \ 16 + org.opencontainers.image.base.name="docker.io/oven/bun:1.3.5" 17 17 WORKDIR /app/apps/workflows 18 18 COPY \ 19 19 --link \ ··· 69 69 --from=install \ 70 70 --link \ 71 71 "/app/node_modules" "/app/node_modules" 72 - RUN bun build --compile --target bun --sourcemap --format=cjs src/index.ts --outfile=app --external '@libsql/*' --external libsql 72 + RUN bun build --compile --target bun --sourcemap --format=cjs src/index.ts --outfile=app 73 73 74 74 # libsql 75 75 FROM oven/bun@sha256:fbf8e67e9d3b806c86be7a2f2e9bae801f2d9212a21db4dcf8cc9889f5a3c9c4 AS libsql
+68 -68
apps/workflows/dofigen.lock
··· 12 12 - /packages/error 13 13 - /packages/tracker 14 14 builders: 15 - docker: 16 - fromImage: 17 - path: oven/bun 18 - digest: sha256:fbf8e67e9d3b806c86be7a2f2e9bae801f2d9212a21db4dcf8cc9889f5a3c9c4 19 - label: 20 - org.opencontainers.image.base.name: docker.io/oven/bun:1.3.3 21 - org.opencontainers.image.base.digest: sha256:fbf8e67e9d3b806c86be7a2f2e9bae801f2d9212a21db4dcf8cc9889f5a3c9c4 22 - workdir: /app/apps/workflows 23 - copy: 24 - - paths: 25 - - . 26 - target: /app/ 27 - run: 28 - - bun run src/build-docker.ts 29 - ca-certs: 30 - fromImage: 31 - path: debian 32 - digest: sha256:c5f48c942c667e70d7e64b124cfc939c25a4a43207c0d14b45844d762dc1d50f 33 - label: 34 - org.opencontainers.image.base.name: docker.io/debian:bullseye-slim 35 - org.opencontainers.image.base.digest: sha256:c5f48c942c667e70d7e64b124cfc939c25a4a43207c0d14b45844d762dc1d50f 36 - run: 37 - - apt update && apt install -y ca-certificates && update-ca-certificates 38 - build: 39 - fromImage: 40 - path: oven/bun 41 - digest: sha256:e90cdbaf9ccdb3d4bd693aa335c3310a6004286a880f62f79b18f9b1312a8ec3 42 - label: 43 - org.opencontainers.image.base.name: docker.io/oven/bun:1.3.5 44 - org.opencontainers.image.base.digest: sha256:e90cdbaf9ccdb3d4bd693aa335c3310a6004286a880f62f79b18f9b1312a8ec3 45 - org.opencontainers.image.stage: build 46 - workdir: /app/apps/workflows 47 - env: 48 - NODE_ENV: production 49 - copy: 50 - - paths: 51 - - . 52 - target: /app/ 53 - - fromBuilder: install 54 - paths: 55 - - /app/node_modules 56 - target: /app/node_modules 57 - run: 58 - - bun build --compile --target bun --sourcemap --format=cjs src/index.ts --outfile=app --external '@libsql/*' --external libsql 59 - libsql: 60 - fromImage: 61 - path: oven/bun 62 - digest: sha256:fbf8e67e9d3b806c86be7a2f2e9bae801f2d9212a21db4dcf8cc9889f5a3c9c4 63 - label: 64 - org.opencontainers.image.base.name: docker.io/oven/bun:1.3.3 65 - org.opencontainers.image.base.digest: sha256:fbf8e67e9d3b806c86be7a2f2e9bae801f2d9212a21db4dcf8cc9889f5a3c9c4 66 - workdir: /app/ 67 - copy: 68 - - fromBuilder: docker 69 - paths: 70 - - /app/apps/build-docker/package.json 71 - target: /app/package.json 72 - run: 73 - - bun install 74 15 install: 75 16 fromImage: 76 17 path: oven/bun 77 18 digest: sha256:e90cdbaf9ccdb3d4bd693aa335c3310a6004286a880f62f79b18f9b1312a8ec3 78 19 label: 79 - org.opencontainers.image.stage: install 80 20 org.opencontainers.image.base.name: docker.io/oven/bun:1.3.5 21 + org.opencontainers.image.stage: install 81 22 org.opencontainers.image.base.digest: sha256:e90cdbaf9ccdb3d4bd693aa335c3310a6004286a880f62f79b18f9b1312a8ec3 82 23 workdir: /app/ 83 24 run: ··· 131 72 source: packages/upstash/package.json 132 73 - target: packages/theme-store/package.json 133 74 source: packages/theme-store/package.json 75 + libsql: 76 + fromImage: 77 + path: oven/bun 78 + digest: sha256:fbf8e67e9d3b806c86be7a2f2e9bae801f2d9212a21db4dcf8cc9889f5a3c9c4 79 + label: 80 + org.opencontainers.image.base.digest: sha256:fbf8e67e9d3b806c86be7a2f2e9bae801f2d9212a21db4dcf8cc9889f5a3c9c4 81 + org.opencontainers.image.base.name: docker.io/oven/bun:1.3.3 82 + workdir: /app/ 83 + copy: 84 + - fromBuilder: docker 85 + paths: 86 + - /app/apps/build-docker/package.json 87 + target: /app/package.json 88 + run: 89 + - bun install 90 + docker: 91 + fromImage: 92 + path: oven/bun 93 + digest: sha256:e90cdbaf9ccdb3d4bd693aa335c3310a6004286a880f62f79b18f9b1312a8ec3 94 + label: 95 + org.opencontainers.image.base.digest: sha256:e90cdbaf9ccdb3d4bd693aa335c3310a6004286a880f62f79b18f9b1312a8ec3 96 + org.opencontainers.image.base.name: docker.io/oven/bun:1.3.5 97 + workdir: /app/apps/workflows 98 + copy: 99 + - paths: 100 + - . 101 + target: /app/ 102 + run: 103 + - bun run src/build-docker.ts 104 + build: 105 + fromImage: 106 + path: oven/bun 107 + digest: sha256:e90cdbaf9ccdb3d4bd693aa335c3310a6004286a880f62f79b18f9b1312a8ec3 108 + label: 109 + org.opencontainers.image.base.digest: sha256:e90cdbaf9ccdb3d4bd693aa335c3310a6004286a880f62f79b18f9b1312a8ec3 110 + org.opencontainers.image.stage: build 111 + org.opencontainers.image.base.name: docker.io/oven/bun:1.3.5 112 + workdir: /app/apps/workflows 113 + env: 114 + NODE_ENV: production 115 + copy: 116 + - paths: 117 + - . 118 + target: /app/ 119 + - fromBuilder: install 120 + paths: 121 + - /app/node_modules 122 + target: /app/node_modules 123 + run: 124 + - bun build --compile --target bun --sourcemap --format=cjs src/index.ts --outfile=app 125 + ca-certs: 126 + fromImage: 127 + path: debian 128 + digest: sha256:c5f48c942c667e70d7e64b124cfc939c25a4a43207c0d14b45844d762dc1d50f 129 + label: 130 + org.opencontainers.image.base.name: docker.io/debian:bullseye-slim 131 + org.opencontainers.image.base.digest: sha256:c5f48c942c667e70d7e64b124cfc939c25a4a43207c0d14b45844d762dc1d50f 132 + run: 133 + - apt update && apt install -y ca-certificates && update-ca-certificates 134 134 fromImage: 135 135 path: debian 136 136 digest: sha256:c5f48c942c667e70d7e64b124cfc939c25a4a43207c0d14b45844d762dc1d50f 137 137 label: 138 + org.opencontainers.image.source: https://github.com/openstatusHQ/openstatus 139 + org.opencontainers.image.base.name: docker.io/debian:bullseye-slim 138 140 org.opencontainers.image.vendor: OpenStatus 141 + org.opencontainers.image.authors: OpenStatus Team 142 + io.dofigen.version: 2.6.0 143 + org.opencontainers.image.base.digest: sha256:c5f48c942c667e70d7e64b124cfc939c25a4a43207c0d14b45844d762dc1d50f 139 144 org.opencontainers.image.description: Background job processing and probe scheduling for OpenStatus 140 - io.dofigen.version: 2.6.0 141 145 org.opencontainers.image.title: OpenStatus Workflows 142 - org.opencontainers.image.base.name: docker.io/debian:bullseye-slim 143 - org.opencontainers.image.authors: OpenStatus Team 144 - org.opencontainers.image.base.digest: sha256:c5f48c942c667e70d7e64b124cfc939c25a4a43207c0d14b45844d762dc1d50f 145 - org.opencontainers.image.source: https://github.com/openstatusHQ/openstatus 146 146 workdir: /app/ 147 147 copy: 148 148 - fromBuilder: build ··· 180 180 digest: sha256:c5f48c942c667e70d7e64b124cfc939c25a4a43207c0d14b45844d762dc1d50f 181 181 resources: 182 182 dofigen.yml: 183 - hash: 982096f1eb07e8ebf20f379a9bc22fd381f375768bd753944394d2bccc2bb72a 183 + hash: 31cef4b70fa33ceb4b9b38f32c98ff13646d0f494bfb79c22734d22b67e9a1d8 184 184 content: | 185 185 ignore: 186 186 - node_modules ··· 244 244 # Compile the TypeScript application 245 245 env: 246 246 NODE_ENV: production 247 - run: bun build --compile --target bun --sourcemap --format=cjs src/index.ts --outfile=app --external '@libsql/*' --external libsql 247 + run: bun build --compile --target bun --sourcemap --format=cjs src/index.ts --outfile=app 248 248 249 249 docker: 250 - fromImage: oven/bun:1.3.3 250 + fromImage: oven/bun:1.3.5 251 251 workdir: /app/apps/workflows 252 252 copy: 253 253 - . /app/
+2 -2
apps/workflows/dofigen.yml
··· 60 60 # Compile the TypeScript application 61 61 env: 62 62 NODE_ENV: production 63 - run: bun build --compile --target bun --sourcemap --format=cjs src/index.ts --outfile=app --external '@libsql/*' --external libsql 63 + run: bun build --compile --target bun --sourcemap --format=cjs src/index.ts --outfile=app 64 64 65 65 docker: 66 - fromImage: oven/bun:1.3.3 66 + fromImage: oven/bun:1.3.5 67 67 workdir: /app/apps/workflows 68 68 copy: 69 69 - . /app/
+2 -2
apps/workflows/src/cron/checker.ts
··· 98 98 const monitors = z.array(selectMonitorSchema).safeParse(result); 99 99 const allResult = []; 100 100 if (!monitors.success) { 101 - logger.error(`Error while fetching the monitors ${monitors.error.errors}`); 101 + logger.error(`Error while fetching the monitors ${monitors.error}`); 102 102 throw new Error("Error while fetching the monitors"); 103 103 } 104 104 ··· 113 113 const monitorStatus = z.array(selectMonitorStatusSchema).safeParse(result); 114 114 if (!monitorStatus.success) { 115 115 console.error( 116 - `Error while fetching the monitor status ${monitorStatus.error.errors}`, 116 + `Error while fetching the monitor status ${monitorStatus.error}`, 117 117 ); 118 118 continue; 119 119 }