72 lines
12 KiB
Plaintext
72 lines
12 KiB
Plaintext
root@raspberrypi:/home/user/Projektarbeit-MYP# ./install-frontend.sh
|
|
[2025-04-01 10:58:30] Bereinige vorhandene Installation...
|
|
[2025-04-01 10:58:30] Bereinigung abgeschlossen.
|
|
[2025-04-01 10:58:30] Docker Compose v2 Plugin ist bereits installiert.
|
|
[2025-04-01 10:58:30] Wechsle ins Verzeichnis: /home/user/Projektarbeit-MYP/packages/reservation-platform
|
|
[2025-04-01 10:58:30] Erstelle .env Datei...
|
|
[2025-04-01 10:58:30] .env Datei erfolgreich erstellt
|
|
[2025-04-01 10:58:30] HINWEIS: Bitte passen Sie die Backend-URL in der .env-Datei an, falls das Backend auf einem anderen Server läuft.
|
|
[2025-04-01 10:58:30] Erstelle Datenbankverzeichnis
|
|
[2025-04-01 10:58:30] Baue und starte Frontend-Container...
|
|
[2025-04-01 10:58:30] Dies kann auf einem Raspberry Pi mehrere Minuten dauern - bitte geduldig sein
|
|
[2025-04-01 10:58:30] Baue lokales Image...
|
|
WARN[0000] /home/user/Projektarbeit-MYP/packages/reservation-platform/docker-compose.yml: the attribute `version` is obsolete, it will be ignored, please remove it to avoid potential confusion
|
|
Compose can now delegate builds to bake for better performance.
|
|
To do so, set COMPOSE_BAKE=true.
|
|
[+] Building 95.0s (11/16) docker-container:myp-rp-arm64-builder
|
|
=> [frontend internal] load build definition from Dockerfile 0.0s
|
|
=> => transferring dockerfile: 3.60kB 0.0s
|
|
=> [frontend internal] load metadata for docker.io/library/node:alpine 2.4s
|
|
=> [frontend internal] load .dockerignore 0.1s
|
|
=> => transferring context: 2B 0.0s
|
|
=> [frontend 1/12] FROM docker.io/library/node:alpine@sha256:6eae672406a2bc8ed93eab6f9f76a02eb247e06ba82b2f5032c0a4ae07e825ba 0.1s
|
|
=> => resolve docker.io/library/node:alpine@sha256:6eae672406a2bc8ed93eab6f9f76a02eb247e06ba82b2f5032c0a4ae07e825ba 0.1s
|
|
=> [frontend internal] load build context 0.1s
|
|
=> => transferring context: 11.08kB 0.0s
|
|
=> CACHED [frontend 2/12] WORKDIR /app 0.0s
|
|
=> [frontend 3/12] RUN apk add --no-cache python3 build-base g++ make sqlite sqlite-dev gcc musl-dev git libffi-dev openssl-dev cmake 58.0s
|
|
=> [frontend 4/12] RUN npm install -g pnpm 4.4s
|
|
=> [frontend 5/12] COPY package.json pnpm-lock.yaml ./ 0.3s
|
|
=> [frontend 6/12] RUN pnpm install --unsafe-perm --no-optional --frozen-lockfile 27.7s
|
|
=> ERROR [frontend 7/12] RUN npm install -g npx 1.8s
|
|
------
|
|
> [frontend 7/12] RUN npm install -g npx:
|
|
1.480 npm error code EEXIST
|
|
1.480 npm error path /usr/local/bin/npx
|
|
1.480 npm error EEXIST: file already exists
|
|
1.480 npm error File exists: /usr/local/bin/npx
|
|
1.481 npm error Remove the existing file and try again, or run npm
|
|
1.481 npm error with --force to overwrite files recklessly.
|
|
1.483 npm error A complete log of this run can be found in: /root/.npm/_logs/2025-04-01T09_00_04_989Z-debug-0.log
|
|
------
|
|
failed to solve: process "/bin/sh -c npm install -g npx" did not complete successfully: exit code: 1
|
|
[2025-04-01 11:00:06] FEHLER: Docker Compose Build (v2) fehlgeschlagen. Versuche mit v1 Format...
|
|
[+] Building 83.3s (11/16) docker-container:myp-rp-arm64-builder
|
|
=> [frontend internal] load build definition from Dockerfile 0.0s
|
|
=> => transferring dockerfile: 3.60kB 0.0s
|
|
=> [frontend internal] load metadata for docker.io/library/node:alpine 0.6s
|
|
=> [frontend internal] load .dockerignore 0.0s
|
|
=> => transferring context: 2B 0.0s
|
|
=> [frontend internal] load build context 0.2s
|
|
=> => transferring context: 7.22kB 0.0s
|
|
=> [frontend 1/12] FROM docker.io/library/node:alpine@sha256:6eae672406a2bc8ed93eab6f9f76a02eb247e06ba82b2f5032c0a4ae07e825ba 0.1s
|
|
=> => resolve docker.io/library/node:alpine@sha256:6eae672406a2bc8ed93eab6f9f76a02eb247e06ba82b2f5032c0a4ae07e825ba 0.1s
|
|
=> CACHED [frontend 2/12] WORKDIR /app 0.0s
|
|
=> [frontend 3/12] RUN apk add --no-cache python3 build-base g++ make sqlite sqlite-dev gcc musl-dev git libffi-dev openssl-dev cmake 51.4s
|
|
=> [frontend 4/12] RUN npm install -g pnpm 5.1s
|
|
=> [frontend 5/12] COPY package.json pnpm-lock.yaml ./ 0.3s
|
|
=> [frontend 6/12] RUN pnpm install --unsafe-perm --no-optional --frozen-lockfile 23.2s
|
|
=> ERROR [frontend 7/12] RUN npm install -g npx 2.3s
|
|
------
|
|
> [frontend 7/12] RUN npm install -g npx:
|
|
1.975 npm error code EEXIST
|
|
1.975 npm error path /usr/local/bin/npx
|
|
1.975 npm error EEXIST: file already exists
|
|
1.975 npm error File exists: /usr/local/bin/npx
|
|
1.975 npm error Remove the existing file and try again, or run npm
|
|
1.975 npm error with --force to overwrite files recklessly.
|
|
1.989 npm error A complete log of this run can be found in: /root/.npm/_logs/2025-04-01T09_01_27_844Z-debug-0.log
|
|
------
|
|
failed to solve: process "/bin/sh -c npm install -g npx" did not complete successfully: exit code: 1
|
|
[2025-04-01 11:01:29] FEHLER: Docker Compose Build fehlgeschlagen. Siehe Fehlermeldung oben.
|