Skip to content

Instantly share code, notes, and snippets.

@jhannah
Last active June 3, 2024 22:39
Show Gist options
  • Save jhannah/46f621c4faa040a4bb20b64f7bfa3d13 to your computer and use it in GitHub Desktop.
Save jhannah/46f621c4faa040a4bb20b64f7bfa3d13 to your computer and use it in GitHub Desktop.
Trying to build Norse...
$ git fetch --all
Fetching upstream
Fetching origin
$ git show | head -1
commit adbfe44695e420f4839925d8a3cfe957f299b877
$ git show upstream/refactor-main | head -1
commit adbfe44695e420f4839925d8a3cfe957f299b877
docker container rm norse
docker image rm norse
docker container prune
docker image prune
docker buildx prune
docker build -t norse . --progress plain
#0 building with "desktop-linux" instance using docker driver
#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 1.02kB 0.0s done
#1 DONE 0.0s
#2 [internal] load metadata for docker.io/library/node:lts-alpine
#2 DONE 2.0s
#3 [internal] load .dockerignore
#3 transferring context: 2B done
#3 DONE 0.0s
#4 [runtime 1/14] FROM docker.io/library/node:lts-alpine@sha256:928b24aaadbd47c1a7722c563b471195ce54788bf8230ce807e1dd500aec0549
#4 resolve docker.io/library/node:lts-alpine@sha256:928b24aaadbd47c1a7722c563b471195ce54788bf8230ce807e1dd500aec0549 0.0s done
#4 sha256:a5d8dcc63f4d2dac810416f9c97cb23aded8e7edd02b46f26194951dffe2ce66 7.21kB / 7.21kB done
#4 sha256:d25f557d7f31bf7acfac935859b5153da41d13c41f2b468d16f729a5b883634f 0B / 3.62MB 0.1s
#4 sha256:6b4fa06223a5a5f8f17bd35f832016f235d33b54ba8fd7e469172e329fecbb62 0B / 42.18MB 0.1s
#4 sha256:9276168bdaa64f588a2b3246f0104db6358a798dd60a420ed6e49255087adf07 0B / 1.39MB 0.1s
#4 sha256:928b24aaadbd47c1a7722c563b471195ce54788bf8230ce807e1dd500aec0549 1.43kB / 1.43kB done
#4 sha256:389ae25ab30b4739d863c6116a686901ae99e9ccaaed524a0db9481531266f82 1.16kB / 1.16kB done
#4 sha256:d25f557d7f31bf7acfac935859b5153da41d13c41f2b468d16f729a5b883634f 2.10MB / 3.62MB 0.5s
#4 sha256:d25f557d7f31bf7acfac935859b5153da41d13c41f2b468d16f729a5b883634f 3.62MB / 3.62MB 0.5s done
#4 extracting sha256:d25f557d7f31bf7acfac935859b5153da41d13c41f2b468d16f729a5b883634f
#4 sha256:4f675eb108d0d49a39cce915941c4dd5092b39d079c8b90fbe507bf536649a3b 0B / 453B 0.6s
#4 sha256:6b4fa06223a5a5f8f17bd35f832016f235d33b54ba8fd7e469172e329fecbb62 3.15MB / 42.18MB 1.1s
#4 sha256:4f675eb108d0d49a39cce915941c4dd5092b39d079c8b90fbe507bf536649a3b 453B / 453B 0.9s done
#4 sha256:9276168bdaa64f588a2b3246f0104db6358a798dd60a420ed6e49255087adf07 1.39MB / 1.39MB 1.1s done
#4 extracting sha256:d25f557d7f31bf7acfac935859b5153da41d13c41f2b468d16f729a5b883634f 0.5s done
#4 sha256:6b4fa06223a5a5f8f17bd35f832016f235d33b54ba8fd7e469172e329fecbb62 6.29MB / 42.18MB 1.3s
#4 sha256:6b4fa06223a5a5f8f17bd35f832016f235d33b54ba8fd7e469172e329fecbb62 11.53MB / 42.18MB 1.6s
#4 sha256:6b4fa06223a5a5f8f17bd35f832016f235d33b54ba8fd7e469172e329fecbb62 16.78MB / 42.18MB 2.0s
#4 sha256:6b4fa06223a5a5f8f17bd35f832016f235d33b54ba8fd7e469172e329fecbb62 19.14MB / 42.18MB 2.1s
#4 sha256:6b4fa06223a5a5f8f17bd35f832016f235d33b54ba8fd7e469172e329fecbb62 22.02MB / 42.18MB 2.2s
#4 sha256:6b4fa06223a5a5f8f17bd35f832016f235d33b54ba8fd7e469172e329fecbb62 26.21MB / 42.18MB 2.5s
#4 sha256:6b4fa06223a5a5f8f17bd35f832016f235d33b54ba8fd7e469172e329fecbb62 30.41MB / 42.18MB 2.7s
#4 sha256:6b4fa06223a5a5f8f17bd35f832016f235d33b54ba8fd7e469172e329fecbb62 33.55MB / 42.18MB 3.0s
#4 sha256:6b4fa06223a5a5f8f17bd35f832016f235d33b54ba8fd7e469172e329fecbb62 36.70MB / 42.18MB 3.1s
#4 sha256:6b4fa06223a5a5f8f17bd35f832016f235d33b54ba8fd7e469172e329fecbb62 42.18MB / 42.18MB 3.4s
#4 sha256:6b4fa06223a5a5f8f17bd35f832016f235d33b54ba8fd7e469172e329fecbb62 42.18MB / 42.18MB 3.4s done
#4 extracting sha256:6b4fa06223a5a5f8f17bd35f832016f235d33b54ba8fd7e469172e329fecbb62
#4 extracting sha256:6b4fa06223a5a5f8f17bd35f832016f235d33b54ba8fd7e469172e329fecbb62 5.2s
#4 ...
#5 [internal] load build context
#5 transferring context: 206.62MB 10.0s
#5 ...
#4 [runtime 1/14] FROM docker.io/library/node:lts-alpine@sha256:928b24aaadbd47c1a7722c563b471195ce54788bf8230ce807e1dd500aec0549
#4 extracting sha256:6b4fa06223a5a5f8f17bd35f832016f235d33b54ba8fd7e469172e329fecbb62 10.2s done
#4 extracting sha256:9276168bdaa64f588a2b3246f0104db6358a798dd60a420ed6e49255087adf07 0.1s
#4 extracting sha256:9276168bdaa64f588a2b3246f0104db6358a798dd60a420ed6e49255087adf07 0.2s done
#4 extracting sha256:4f675eb108d0d49a39cce915941c4dd5092b39d079c8b90fbe507bf536649a3b done
#4 DONE 15.1s
#6 [runtime 2/14] WORKDIR /app
#6 DONE 1.3s
#5 [internal] load build context
#5 transferring context: 304.18MB 16.5s
#5 ...
#7 [runtime 3/14] RUN mkdir -p ./src/lib/postgres
#7 DONE 0.6s
#5 [internal] load build context
#5 ...
#8 [runtime 4/14] RUN mkdir -p ./src/lib/mongodb
#8 DONE 1.1s
#5 [internal] load build context
#5 transferring context: 413.76MB 21.5s
#5 transferring context: 499.11MB 26.5s
#5 transferring context: 613.92MB 31.6s
#5 transferring context: 740.61MB 36.7s
#5 transferring context: 757.23MB 38.1s done
#5 DONE 38.5s
#9 [base 5/13] COPY package*.json ./
#9 DONE 1.8s
#10 [base 6/13] COPY ./src/lib/postgres/schema.prisma ./src/lib/postgres
#10 DONE 0.0s
#11 [base 7/13] COPY ./src/lib/mongodb/schema.prisma ./src/lib/mongodb
#11 DONE 0.0s
#12 [base 8/13] RUN ls -la ./src/lib/postgres/
#12 0.337 total 16
#12 0.337 drwxr-xr-x 1 root root 4096 Jun 3 22:35 .
#12 0.337 drwxr-xr-x 1 root root 4096 Jun 3 22:35 ..
#12 0.337 -rw-r--r-- 1 root root 1881 Jun 3 20:47 schema.prisma
#12 DONE 0.4s
#13 [base 9/13] RUN ls -la ./src/lib/mongodb/
#13 0.259 total 16
#13 0.260 drwxr-xr-x 1 root root 4096 Jun 3 22:35 .
#13 0.260 drwxr-xr-x 1 root root 4096 Jun 3 22:35 ..
#13 0.260 -rw-r--r-- 1 root root 2676 Jun 3 20:47 schema.prisma
#13 DONE 0.3s
#14 [base 10/13] RUN apk add g++ make py3-pip
#14 0.272 fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/main/x86_64/APKINDEX.tar.gz
#14 1.310 fetch https://dl-cdn.alpinelinux.org/alpine/v3.20/community/x86_64/APKINDEX.tar.gz
#14 3.538 (1/37) Installing libstdc++-dev (13.2.1_git20240309-r0)
#14 4.440 (2/37) Installing jansson (2.14-r4)
#14 4.463 (3/37) Installing zstd-libs (1.5.6-r0)
#14 4.517 (4/37) Installing binutils (2.42-r0)
#14 5.056 (5/37) Installing libgomp (13.2.1_git20240309-r0)
#14 5.090 (6/37) Installing libatomic (13.2.1_git20240309-r0)
#14 5.189 (7/37) Installing gmp (6.3.0-r1)
#14 5.234 (8/37) Installing isl26 (0.26-r1)
#14 5.399 (9/37) Installing mpfr4 (4.2.1-r0)
#14 5.444 (10/37) Installing mpc1 (1.3.1-r1)
#14 5.469 (11/37) Installing gcc (13.2.1_git20240309-r0)
#14 8.516 (12/37) Installing musl-dev (1.2.5-r0)
#14 8.697 (13/37) Installing g++ (13.2.1_git20240309-r0)
#14 9.540 (14/37) Installing make (4.4.1-r2)
#14 9.568 (15/37) Installing libbz2 (1.0.8-r6)
#14 9.597 (16/37) Installing libexpat (2.6.2-r0)
#14 9.621 (17/37) Installing libffi (3.4.6-r0)
#14 9.646 (18/37) Installing gdbm (1.23-r1)
#14 9.677 (19/37) Installing xz-libs (5.6.1-r3)
#14 9.705 (20/37) Installing mpdecimal (4.0.0-r0)
#14 9.732 (21/37) Installing ncurses-terminfo-base (6.4_p20240420-r0)
#14 9.763 (22/37) Installing libncursesw (6.4_p20240420-r0)
#14 9.799 (23/37) Installing libpanelw (6.4_p20240420-r0)
#14 10.04 (24/37) Installing readline (8.2.10-r0)
#14 10.07 (25/37) Installing sqlite-libs (3.45.3-r1)
#14 10.13 (26/37) Installing python3 (3.12.3-r1)
#14 10.61 (27/37) Installing python3-pycache-pyc0 (3.12.3-r1)
#14 10.91 (28/37) Installing pyc (3.12.3-r1)
#14 11.31 (29/37) Installing py3-setuptools-pyc (69.5.1-r0)
#14 11.44 (30/37) Installing py3-pip-pyc (24.0-r2)
#14 12.20 (31/37) Installing py3-parsing (3.1.2-r1)
#14 12.23 (32/37) Installing py3-parsing-pyc (3.1.2-r1)
#14 12.27 (33/37) Installing py3-packaging-pyc (24.0-r1)
#14 12.30 (34/37) Installing python3-pyc (3.12.3-r1)
#14 12.33 (35/37) Installing py3-packaging (24.0-r1)
#14 12.35 (36/37) Installing py3-setuptools (69.5.1-r0)
#14 12.47 (37/37) Installing py3-pip (24.0-r2)
#14 12.83 Executing busybox-1.36.1-r28.trigger
#14 12.84 OK: 280 MiB in 53 packages
#14 DONE 13.4s
#15 [base 11/13] RUN npm install
#15 10.31 npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported
#15 14.39 npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
#15 15.01 npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
#15 90.97
#15 90.97 > norse@2.0.0 postinstall
#15 90.97 > npm run prisma:generate:clients
#15 90.97
#15 91.62
#15 91.62 > norse@2.0.0 prisma:generate:clients
#15 91.62 > npm run prisma:generate:mongodb & npm run prisma:generate:postgres
#15 91.62
#15 92.15
#15 92.15 > norse@2.0.0 prisma:generate:mongodb
#15 92.15 > prisma generate --schema ./src/lib/mongodb/schema.prisma
#15 92.15
#15 92.16
#15 92.16 > norse@2.0.0 prisma:generate:postgres
#15 92.16 > prisma generate --schema ./src/lib/postgres/schema.prisma
#15 92.16
#15 94.06 Prisma schema loaded from src/lib/postgres/schema.prisma
#15 94.10 Prisma schema loaded from src/lib/mongodb/schema.prisma
#15 95.83
#15 95.83 ✔ Generated Prisma Client (v5.14.0) to ./node_modules/@prisma-postgres in 204ms
#15 95.83
#15 95.83 Start using Prisma Client in Node.js (See: https://pris.ly/d/client)
#15 95.83 ```
#15 95.83 import { PrismaClient } from './node_modules/@prisma-postgres'
#15 95.83 const prisma = new PrismaClient()
#15 95.83 ```
#15 95.83 or start using Prisma Client at the edge (See: https://pris.ly/d/accelerate)
#15 95.83 ```
#15 95.83 import { PrismaClient } from './node_modules/@prisma-postgres/edge'
#15 95.83 const prisma = new PrismaClient()
#15 95.83 ```
#15 95.83
#15 95.83 See other ways of importing Prisma Client: http://pris.ly/d/importing-client
#15 95.83
#15 95.83 ┌─────────────────────────────────────────────────────────────┐
#15 95.83 │ Deploying your app to serverless or edge functions? │
#15 95.83 │ Try Prisma Accelerate for connection pooling and caching. │
#15 95.83 │ https://pris.ly/cli/--accelerate │
#15 95.83 └─────────────────────────────────────────────────────────────┘
#15 95.83
#15 95.92
#15 95.92 ✔ Generated Prisma Client (v5.14.0) to ./node_modules/@prisma-mongodb in 245ms
#15 95.92
#15 95.92 Start using Prisma Client in Node.js (See: https://pris.ly/d/client)
#15 95.92 ```
#15 95.92 import { PrismaClient } from './node_modules/@prisma-mongodb'
#15 95.92 const prisma = new PrismaClient()
#15 95.92 ```
#15 95.92 or start using Prisma Client at the edge (See: https://pris.ly/d/accelerate)
#15 95.92 ```
#15 95.92 import { PrismaClient } from './node_modules/@prisma-mongodb/edge'
#15 95.92 const prisma = new PrismaClient()
#15 95.92 ```
#15 95.92
#15 95.92 See other ways of importing Prisma Client: http://pris.ly/d/importing-client
#15 95.92
#15 95.92 ┌─────────────────────────────────────────────────────────────┐
#15 95.92 │ Deploying your app to serverless or edge functions? │
#15 95.92 │ Try Prisma Accelerate for connection pooling and caching. │
#15 95.92 │ https://pris.ly/cli/--accelerate │
#15 95.92 └─────────────────────────────────────────────────────────────┘
#15 95.92
#15 96.11
#15 96.11 added 699 packages, and audited 700 packages in 2m
#15 96.11
#15 96.11 186 packages are looking for funding
#15 96.11 run `npm fund` for details
#15 96.11
#15 96.11 found 0 vulnerabilities
#15 96.12 npm notice
#15 96.12 npm notice New minor version of npm available! 10.7.0 -> 10.8.1
#15 96.12 npm notice Changelog: https://github.com/npm/cli/releases/tag/v10.8.1
#15 96.12 npm notice To update run: npm install -g npm@10.8.1
#15 96.12 npm notice
#15 DONE 96.8s
#16 [base 12/13] COPY . .
#16 DONE 30.0s
#17 [base 13/13] RUN npm run build
#17 0.821
#17 0.821 > norse@2.0.0 prebuild
#17 0.821 > npm run prisma:generate:clients
#17 0.821
#17 1.206
#17 1.206 > norse@2.0.0 prisma:generate:clients
#17 1.206 > npm run prisma:generate:mongodb & npm run prisma:generate:postgres
#17 1.206
#17 1.872
#17 1.872 > norse@2.0.0 prisma:generate:postgres
#17 1.872 > prisma generate --schema ./src/lib/postgres/schema.prisma
#17 1.872
#17 1.890
#17 1.890 > norse@2.0.0 prisma:generate:mongodb
#17 1.890 > prisma generate --schema ./src/lib/mongodb/schema.prisma
#17 1.890
#17 3.865 Prisma schema loaded from src/lib/postgres/schema.prisma
#17 3.924 Prisma schema loaded from src/lib/mongodb/schema.prisma
#17 6.035
#17 6.035 ✔ Generated Prisma Client (v5.14.0) to ./node_modules/@prisma-postgres in 316ms
#17 6.035
#17 6.035 Start using Prisma Client in Node.js (See: https://pris.ly/d/client)
#17 6.035 ```
#17 6.035 import { PrismaClient } from './node_modules/@prisma-postgres'
#17 6.035 const prisma = new PrismaClient()
#17 6.035 ```
#17 6.035 or start using Prisma Client at the edge (See: https://pris.ly/d/accelerate)
#17 6.035 ```
#17 6.035 import { PrismaClient } from './node_modules/@prisma-postgres/edge'
#17 6.035 const prisma = new PrismaClient()
#17 6.035 ```
#17 6.035
#17 6.035 See other ways of importing Prisma Client: http://pris.ly/d/importing-client
#17 6.035
#17 6.035 ┌─────────────────────────────────────────────────────────────┐
#17 6.035 │ Deploying your app to serverless or edge functions? │
#17 6.035 │ Try Prisma Accelerate for connection pooling and caching. │
#17 6.035 │ https://pris.ly/cli/--accelerate │
#17 6.035 └─────────────────────────────────────────────────────────────┘
#17 6.035
#17 6.253
#17 6.253 ✔ Generated Prisma Client (v5.14.0) to ./node_modules/@prisma-mongodb in 451ms
#17 6.253
#17 6.253 Start using Prisma Client in Node.js (See: https://pris.ly/d/client)
#17 6.253 ```
#17 6.253 import { PrismaClient } from './node_modules/@prisma-mongodb'
#17 6.253 const prisma = new PrismaClient()
#17 6.253 ```
#17 6.253 or start using Prisma Client at the edge (See: https://pris.ly/d/accelerate)
#17 6.253 ```
#17 6.253 import { PrismaClient } from './node_modules/@prisma-mongodb/edge'
#17 6.253 const prisma = new PrismaClient()
#17 6.253 ```
#17 6.253
#17 6.253 See other ways of importing Prisma Client: http://pris.ly/d/importing-client
#17 6.253
#17 6.253 ┌─────────────────────────────────────────────────────────────┐
#17 6.253 │ Deploying your app to serverless or edge functions? │
#17 6.253 │ Try Prisma Accelerate for connection pooling and caching. │
#17 6.253 │ https://pris.ly/cli/--accelerate │
#17 6.253 └─────────────────────────────────────────────────────────────┘
#17 6.253
#17 6.277
#17 6.277 > norse@2.0.0 build
#17 6.277 > next build
#17 6.277
#17 7.918 Attention: Next.js now collects completely anonymous telemetry regarding usage.
#17 7.920 This information is used to shape Next.js' roadmap and prioritize features.
#17 7.920 You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
#17 7.920 https://nextjs.org/telemetry
#17 7.920
#17 8.112 - info Linting and checking validity of types...
#17 19.26
#17 19.26 ./src/components/app-header/index.tsx
#17 19.26 173:13 Warning: Using `<img>` could result in slower LCP and higher bandwidth. Consider using `<Image />` from `next/image` to automatically optimize images. This may incur additional usage or cost from your provider. See: https://nextjs.org/docs/messages/no-img-element @next/next/no-img-element
#17 19.26
#17 19.26 info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
#17 40.28 Failed to compile.
#17 40.28
#17 40.29 ./src/lib/utils.ts:1:27
#17 40.29 Type error: Module '"clsx"' has no exported member 'clsx'. Did you mean to use 'import clsx from "clsx"' instead?
#17 40.29
#17 40.29 > 1 | import { type ClassValue, clsx } from 'clsx';
#17 40.29 | ^
#17 40.29 2 | import { twMerge } from 'tailwind-merge';
#17 40.29 3 |
#17 40.29 4 | export function range(start: number, end: number) {
#17 ERROR: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1
------
> [base 13/13] RUN npm run build:
40.28 Failed to compile.
40.28
40.29 ./src/lib/utils.ts:1:27
40.29 Type error: Module '"clsx"' has no exported member 'clsx'. Did you mean to use 'import clsx from "clsx"' instead?
40.29
40.29 > 1 | import { type ClassValue, clsx } from 'clsx';
40.29 | ^
40.29 2 | import { twMerge } from 'tailwind-merge';
40.29 3 |
40.29 4 | export function range(start: number, end: number) {
------
Dockerfile:21
--------------------
19 | COPY . .
20 |
21 | >>> RUN npm run build
22 |
23 | FROM node:lts-alpine as runtime
--------------------
ERROR: failed to solve: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment