apache / incubator-answer

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
https://answer.apache.org
Apache License 2.0
12.91k stars 999 forks source link

Unable to build image with plugin via Github Actions #913

Closed aaro-n closed 6 months ago

aaro-n commented 6 months ago

Dockerfile

FROM apache/answer as answer-builder

FROM golang:1.19-alpine AS golang-builder

COPY --from=answer-builder /usr/bin/answer /usr/bin/answer

RUN apk --no-cache add \
    build-base git bash nodejs npm go && \
    npm install -g pnpm

RUN answer build \
    --with github.com/apache/incubator-answer-plugins/search-meilisearch \
    --with github.com/apache/incubator-answer-plugins/cache-redis \
    --with github.com/apache/incubator-answer-plugins/storage-s3 \
    --output /usr/bin/new_answer

FROM alpine
LABEL maintainer="linkinstar@apache.org"

ARG TIMEZONE
ENV TIMEZONE=${TIMEZONE:-"Asia/Shanghai"}

RUN apk update \
    && apk --no-cache add \
        bash \
        ca-certificates \
        curl \
        dumb-init \
        gettext \
        openssh \
        sqlite \
        gnupg \
        tzdata \
    && ln -sf /usr/share/zoneinfo/${TIMEZONE} /etc/localtime \
    && echo "${TIMEZONE}" > /etc/timezone

COPY --from=golang-builder /usr/bin/new_answer /usr/bin/answer
COPY --from=answer-builder /data /data
COPY --from=answer-builder /entrypoint.sh /entrypoint.sh
RUN chmod 755 /entrypoint.sh

VOLUME /data
EXPOSE 80
ENTRYPOINT ["/entrypoint.sh"]

Log

Run flyctl deploy --remote-only
==> Verifying app config
Validating /home/runner/work/answer-fly/answer-fly/fly.toml
✓ Configuration is valid
--> Verified app config
WARN ADMIN_PASSWORD may be a potentially sensitive environment variable. Consider setting it as a secret, and removing it from the [env] section: https://fly.io/docs/reference/secrets/

WARN DB_PASSWORD may be a potentially sensitive environment variable. Consider setting it as a secret, and removing it from the [env] section: https://fly.io/docs/reference/secrets/

==> Building image
Waiting for remote builder fly-builder-dawn-fire-4539...
Remote builder fly-builder-dawn-fire-4539 ready
Waiting for remote builder fly-builder-dawn-fire-4539...
Remote builder fly-builder-dawn-fire-4539 ready
==> Building image with Docker
--> docker host: 24.0.7 linux x8[6](https://github.com/aaro-n/answer-fly/actions/runs/8739108085/job/23979668023#step:4:7)_64
#1 [internal] load build definition from Dockerfile
#1 transferring dockerfile: 1.20kB 0.1s done
#1 DONE 0.1s

#2 [internal] load .dockerignore
#2 transferring context: 2B 0.0s done
#2 DONE 0.0s

#3 [internal] load metadata for docker.io/library/golang:1.19-alpine
#3 ...

#4 [internal] load metadata for docker.io/library/alpine:latest
#4 DONE 0.3s

#5 [internal] load metadata for docker.io/apache/answer:latest
#5 DONE 0.3s

#3 [internal] load metadata for docker.io/library/golang:1.19-alpine
#3 DONE 0.8s

#6 [answer-builder 1/1] FROM docker.io/apache/answer@sha256:05c[7](https://github.com/aaro-n/answer-fly/actions/runs/8739108085/job/23979668023#step:4:8)74cacd5eea279b7da9c79492e0828787e8c403fee0d746ec313f7eb666ac
#6 CACHED

#7 [stage-2 1/6] FROM docker.io/library/alpine@sha256:c5b1261d6d3e43071626931fc004f70149baeba2c[8](https://github.com/aaro-n/answer-fly/actions/runs/8739108085/job/23979668023#step:4:9)ec672bd4f27761f8e1ad6b
#7 resolve docker.io/library/alpine@sha256:c5b1261d6d3e43071626[9](https://github.com/aaro-n/answer-fly/actions/runs/8739108085/job/23979668023#step:4:10)31fc004f70149baeba2c8ec672bd4f27761f8e1ad6b done
#7 sha256:c5b1261d6d3e43071626931fc004f70149baeba2c8ec672bd4f27761f8e1ad6b 1.64kB / 1.64kB done
#7 sha256:6457d53fb065d6f250e1504b9bc42d5b6c65941d57532c072d929dd0628977d0 528B / 528B done
#7 sha256:05455a08881ea9cf0e752bc48e61bbd71a34c029bb13df01e40e3e70e0d007bd 1.47kB / 1.47kB done
#7 DONE 0.0s

#8 [golang-builder 1/4] FROM docker.io/library/golang:1.19-alpine@sha256:0ec0646e208ea58e5d29e558e39f2e59fccf39b7bda306cb53bbaff91919eca5
#8 resolve docker.io/library/golang:1.19-alpine@sha256:0ec0646e208ea58e5d29e558e39f2e59fccf39b7bda306cb53bbaff91919eca5 done
#8 extracting sha256:7264a8db6415046d36d16ba98b79778e18accee6ffa71850405994cffa9be7de
#8 sha256:c4d48a809fc2256f8aa0aeee47998488d64409855adba00a7cb3007ab9f3286e 0B / 284.69kB 0.1s
#8 sha256:e2e938b6148703b9e1e60b0db2cd54d7cfd2bd17c38fdd5b379bc4d4d5ec5285 0B / 122.48MB 0.1s
#8 sha256:7896c2688058484dc40121d0b4e0a6133add530a2091f409987d54e8ffbac5ec 0B / 155B 0.1s
#8 sha256:0ec0646e208ea58e5d29e558e39f2e59fccf39b7bda306cb53bbaff91919eca5 1.65kB / 1.65kB done
#8 sha256:276692412aea6f9dd6cdc5725b2f1c05bef8df7223811afbc6aa16294e2903f9 1.16kB / 1.16kB done
#8 sha256:5da886f1a5e71f657d8205d2b8aec7c3de24070327553634520503326e53ae14 5.18kB / 5.18kB done
#8 sha256:7264a8db6415046d36d16ba98b79778e18accee6ffa71850405994cffa9be7de 3.40MB / 3.40MB 0.0s done
#8 extracting sha256:7264a8db6415046d36d16ba98b79778e18accee6ffa71850405994cffa9be7de 0.1s done
#8 sha256:c4d48a809fc2256f8aa0aeee47998488d64409855adba00a7cb3007ab9f3286e 284.69kB / 284.69kB 0.3s done
#8 sha256:e2e938b6148703b9e1e60b0db2cd54d7cfd2bd17c38fdd5b379bc4d4d5ec5285 13.63MB / 122.48MB 0.3s
#8 sha256:7896c2688058484dc40121d0b4e0a6133add530a2091f409987d54e8ffbac5ec 155B / 155B 0.2s done
#8 extracting sha256:c4d48a809fc2256f8aa0aeee47998488d64409855adba00a7cb3007ab9f3286e 0.0s done
#8 sha256:e2e938b6148703b9e1e60b0db2cd54d7cfd2bd17c38fdd5b379bc4d4d5ec5285 25.17MB / 122.48MB 0.5s
#8 sha256:e2e938b6148703b9e1e60b0db2cd54d7cfd2bd17c38fdd5b379bc4d4d5ec5285 33.55MB / 122.48MB 0.7s
#8 sha256:e2e938b6148703b9e1e60b0db2cd54d7cfd2bd17c38fdd5b379bc4d4d5ec5285 49.98MB / 122.48MB 0.8s
#8 sha256:e2e938b6148703b9e1e60b0db2cd54d7cfd2bd17c38fdd5b379bc4d4d5ec5285 62.91MB / 122.48MB 0.9s
#8 sha256:e2e938b6148703b9e1e60b0db2cd54d7cfd2bd17c38fdd5b379bc4d4d5ec5285 79.69MB / 122.48MB 1.1s
#8 sha256:e2e938b6148703b9e1e60b0db2cd54d7cfd2bd17c38fdd5b379bc4d4d5ec5285 89.13MB / 122.48MB 1.2s
#8 sha256:e2e938b6148703b9e1e60b0db2cd54d7cfd2bd17c38fdd5b379bc4d4d5ec5285 97.52MB / 122.48MB 1.3s
#8 sha256:e2e938b6148703b9e1e60b0db2cd54d7cfd2bd17c38fdd5b379bc4d4d5ec5285 [10](https://github.com/aaro-n/answer-fly/actions/runs/8739108085/job/23979668023#step:4:11)6.95MB / 122.48MB 1.4s
#8 sha256:e2e938b6148703b9e1e60b0db2cd54d7cfd2bd17c38fdd5b379bc4d4d5ec5285 121.63MB / 122.48MB 1.5s
#8 sha256:e2e938b6148703b9e1e60b0db2cd54d7cfd2bd17c38fdd5b379bc4d4d5ec5285 122.48MB / 122.48MB 1.6s done
#8 extracting sha256:e2e938b6148703b9e1e60b0db2cd54d7cfd2bd17c38fdd5b379bc4d4d5ec5285
#8 ...

#9 [stage-2 2/6] RUN apk update     && apk --no-cache add         bash         ca-certificates         curl         dumb-init         gettext         openssh         sqlite         gnupg         tzdata     && ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime     && echo "Asia/Shanghai" > /etc/timezone
#9 0.191 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz
#9 0.317 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz
#9 0.684 v3.19.1-437-g4931e259000 [https://dl-cdn.alpinelinux.org/alpine/v3.19/main]
#9 0.684 v3.19.1-437-g4931e259000 [https://dl-cdn.alpinelinux.org/alpine/v3.19/community]
#9 0.684 OK: 22993 distinct packages available
#9 0.765 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz
#9 0.861 fetch https://dl-cdn.alpinelinux.org/alpine/v3.19/community/x86_64/APKINDEX.tar.gz
#9 1.215 (1/58) Installing ncurses-terminfo-base (6.4_p2023[11](https://github.com/aaro-n/answer-fly/actions/runs/8739108085/job/23979668023#step:4:12)25-r0)
#9 1.225 (2/58) Installing libncursesw (6.4_p20231[12](https://github.com/aaro-n/answer-fly/actions/runs/8739108085/job/23979668023#step:4:13)5-r0)
#9 1.229 (3/58) Installing readline (8.2.1-r2)
#9 1.242 (4/58) Installing bash (5.2.21-r0)
#9 1.263 Executing bash-5.2.21-r0.post-install
#9 1.266 (5/58) Installing ca-certificates (20240226-r0)
#9 1.295 (6/58) Installing brotli-libs (1.1.0-r1)
#9 1.307 (7/58) Installing c-ares (1.27.0-r0)
#9 1.310 (8/58) Installing libunistring (1.1-r2)
#9 1.331 (9/58) Installing libidn2 (2.3.4-r4)
#9 1.338 (10/58) Installing nghttp2-libs (1.58.0-r0)
#9 1.344 (11/58) Installing libcurl (8.5.0-r0)
#9 1.346 (12/58) Installing curl (8.5.0-r0)
#9 1.357 ([13](https://github.com/aaro-n/answer-fly/actions/runs/8739108085/job/23979668023#step:4:14)/58) Installing dumb-init (1.2.5-r3)
#9 1.357 ([14](https://github.com/aaro-n/answer-fly/actions/runs/8739108085/job/23979668023#step:4:15)/58) Installing libintl (0.22.3-r0)
#9 1.357 ([15](https://github.com/aaro-n/answer-fly/actions/runs/8739108085/job/23979668023#step:4:16)/58) Installing gettext-envsubst (0.22.3-r0)
#9 1.357 (16/58) Installing libgomp (13.2.1_git20231014-r0)
#9 1.361 (17/58) Installing gettext-libs (0.22.3-r0)
#9 1.372 (18/58) Installing xz-libs (5.4.5-r0)
#9 1.376 (19/58) Installing libxml2 (2.11.7-r0)
#9 1.386 (20/58) Installing gettext (0.22.3-r0)
#9 1.410 (21/58) Installing libgpg-error (1.47-r2)
#9 1.415 (22/58) Installing libassuan (2.5.6-r1)
#9 1.418 (23/58) Installing pinentry (1.2.1-r1)
#9 1.420 Executing pinentry-1.2.1-r1.post-install
#9 1.423 (24/58) Installing libgcrypt (1.10.3-r0)
#9 1.434 (25/58) Installing gnupg-gpgconf (2.4.4-r0)
#9 1.438 (26/58) Installing gmp (6.3.0-r0)
#9 1.449 (27/58) Installing nettle (3.9.1-r0)
#9 1.457 (28/58) Installing libffi (3.4.4-r3)
#9 1.459 (29/58) Installing libtasn1 (4.19.0-r2)
#9 1.461 (30/58) Installing p11-kit (0.25.3-r0)
#9 1.477 (31/58) Installing gnutls (3.8.4-r0)
#9 1.492 (32/58) Installing libksba (1.6.5-r0)
#9 1.495 (33/58) Installing gdbm (1.23-r1)
#9 1.497 (34/58) Installing libsasl (2.1.28-r5)
#9 1.500 (35/58) Installing libldap (2.6.6-r1)
#9 1.506 (36/58) Installing npth (1.6-r4)
#9 1.508 (37/58) Installing gnupg-dirmngr (2.4.4-r0)
#9 1.527 (38/58) Installing sqlite-libs (3.44.2-r0)
#9 1.548 (39/58) Installing gnupg-keyboxd (2.4.4-r0)
#9 1.551 (40/58) Installing libbz2 (1.0.8-r6)
#9 1.553 (41/58) Installing gpg (2.4.4-r0)
#9 1.568 (42/58) Installing gpg-agent (2.4.4-r0)
#9 1.579 (43/58) Installing gpg-wks-server (2.4.4-r0)
#9 1.582 (44/58) Installing gpgsm (2.4.4-r0)
#9 1.587 (45/58) Installing gpgv (2.4.4-r0)
#9 1.593 (46/58) Installing gnupg-utils (2.4.4-r0)
#9 1.602 (47/58) Installing gnupg-wks-client (2.4.4-r0)
#9 1.608 (48/58) Installing gnupg (2.4.4-r0)
#9 1.610 (49/58) Installing openssh-keygen (9.6_p1-r0)
#9 1.617 (50/58) Installing libedit (20230828.3.1-r3)
#9 1.623 (51/58) Installing openssh-client-common (9.6_p1-r0)
#9 1.641 (52/58) Installing openssh-client-default (9.6_p1-r0)
#9 1.650 (53/58) Installing openssh-sftp-server (9.6_p1-r0)
#9 1.653 (54/58) Installing openssh-server-common (9.6_p1-r0)
#9 1.655 (55/58) Installing openssh-server (9.6_p1-r0)
#9 1.665 (56/58) Installing openssh (9.6_p1-r0)
#9 1.671 (57/58) Installing sqlite (3.44.2-r0)
#9 1.686 (58/58) Installing tzdata (2024a-r0)
#9 1.773 Executing busybox-1.36.1-r15.trigger
#9 1.778 Executing ca-certificates-20240226-r0.trigger
#9 1.836 OK: 42 MiB in 73 packages
#9 DONE 2.0s

#8 [golang-builder 1/4] FROM docker.io/library/golang:1.19-alpine@sha256:0ec0646e208ea58e5d29e558e39f2e59fccf39b7bda306cb53bbaff91919eca5
#8 extracting sha256:e2e938b6148703b9e1e60b0db2cd54d7cfd2bd17c38fdd5b379bc4d4d5ec5285 4.7s done
#8 extracting sha256:7896c2688058484dc40121d0b4e0a6133add530a2091f409987d54e8ffbac5ec
#8 extracting sha256:7896c2688058484dc40121d0b4e0a6133add530a2091f409987d54e8ffbac5ec done
#8 DONE 6.5s

#10 [golang-builder 2/4] COPY --from=answer-builder /usr/bin/answer /usr/bin/answer
#10 DONE 0.2s

#11 [golang-builder 3/4] RUN apk --no-cache add     build-base git bash nodejs npm go &&     npm install -g pnpm
#11 0.133 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz
#11 0.218 fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz
#11 0.466 (1/40) Upgrading musl (1.2.4-r1 -> 1.2.4-r2)
#11 0.477 (2/40) Installing ncurses-terminfo-base (6.4_p20230506-r0)
#11 0.483 (3/40) Installing libncursesw (6.4_p20230506-r0)
#11 0.489 (4/40) Installing readline (8.2.1-r1)
#11 0.493 (5/40) Installing bash (5.2.15-r5)
#11 0.505 Executing bash-5.2.15-r5.post-install
#11 0.507 (6/40) Installing libgcc (12.2.1_git20220924-r10)
#11 0.510 (7/40) Installing libstdc++ (12.2.1_git20220924-r10)
#11 0.525 (8/40) Installing zstd-libs (1.5.5-r4)
#11 0.535 (9/40) Installing binutils (2.40-r7)
#11 0.590 (10/40) Installing libmagic (5.45-r0)
#11 0.612 (11/40) Installing file (5.45-r0)
#11 0.613 (12/40) Installing libgomp (12.2.1_git20220924-r10)
#11 0.617 (13/40) Installing libatomic (12.2.1_git20220924-r10)
#11 0.618 (14/40) Installing gmp (6.2.1-r3)
#11 0.623 (15/40) Installing isl26 (0.26-r1)
#11 0.640 ([16](https://github.com/aaro-n/answer-fly/actions/runs/8739108085/job/23979668023#step:4:17)/40) Installing mpfr4 (4.2.0_p12-r0)
#11 0.651 ([17](https://github.com/aaro-n/answer-fly/actions/runs/8739108085/job/23979668023#step:4:18)/40) Installing mpc1 (1.3.1-r1)
#11 0.654 (18/40) Installing gcc (12.2.1_git20220924-r10)
#11 1.408 (19/40) Installing libstdc++-dev (12.2.1_git20220924-r10)
#11 1.657 (20/40) Installing musl-dev (1.2.4-r2)
#11 1.711 (21/40) Installing libc-dev (0.7.2-r5)
#11 1.713 (22/40) Installing g++ (12.2.1_git20220924-r10)
#11 1.930 (23/40) Installing make (4.4.1-r1)
#11 1.934 (24/40) Installing fortify-headers (1.1-r3)
#11 1.936 (25/40) Installing patch (2.7.6-r10)
#11 1.940 (26/40) Installing build-base (0.5-r3)
#11 1.945 (27/40) Installing brotli-libs (1.0.9-r14)
#11 1.955 (28/40) Installing libunistring (1.1-r1)
#11 1.969 (29/40) Installing libidn2 (2.3.4-r1)
#11 1.973 (30/40) Installing nghttp2-libs (1.57.0-r0)
#11 1.978 (31/40) Installing libcurl (8.5.0-r0)
#11 1.985 (32/40) Installing libexpat (2.6.2-r0)
#11 1.987 (33/40) Installing pcre2 (10.42-r1)
#11 1.996 (34/40) Installing git (2.40.1-r0)
#11 2.052 (35/40) Installing go (1.20.11-r0)
#11 3.314 (36/40) Installing c-ares (1.19.1-r1)
#11 3.316 (37/40) Installing icu-data-en (73.2-r2)
#11 3.335 Executing icu-data-en-73.2-r2.post-install
#11 3.337 *
#11 3.337 * If you need ICU with non-English locales and legacy charset support, install
#11 3.337 * package icu-data-full.
#11 3.337 *
#11 3.338 (38/40) Installing icu-libs (73.2-r2)
#11 3.367 (39/40) Installing nodejs ([18](https://github.com/aaro-n/answer-fly/actions/runs/8739108085/job/23979668023#step:4:19).20.1-r0)
#11 3.604 (40/40) Installing npm (9.6.6-r0)
#11 3.780 Executing busybox-1.36.1-r2.trigger
#11 3.787 OK: 486 MiB in 55 packages
#11 5.123 
#11 5.123 added 1 package in 1s
#11 5.123 
#11 5.123 1 package is looking for funding
#11 5.123   run `npm fund` for details
#11 DONE 5.2s

#12 [golang-builder 4/4] RUN answer build     --with github.com/apache/incubator-answer-plugins/search-meilisearch     --with github.com/apache/incubator-answer-plugins/cache-redis     --with github.com/apache/incubator-answer-plugins/storage-s3     --output /usr/bin/new_answer
#12 0.323 try to build a new answer with plugins:
#12 0.323 github.com/apache/incubator-answer-plugins/search-meilisearch
#12 0.323 github.com/apache/incubator-answer-plugins/cache-redis
#12 0.323 github.com/apache/incubator-answer-plugins/storage-s3
#12 0.324 [build] tmp dir: /go/answer_build3262431575
#12 0.324 [go mod tidy]
#12 0.327 go: finding module for package github.com/apache/incubator-answer/cmd
#12 0.327 go: finding module for package github.com/apache/incubator-answer-plugins/storage-s3
#12 0.328 go: finding module for package github.com/apache/incubator-answer-plugins/cache-redis
#12 0.328 go: finding module for package github.com/apache/incubator-answer-plugins/search-meilisearch
#12 0.470 go: downloading github.com/apache/incubator-answer-plugins v1.2.1
#12 0.476 go: downloading github.com/apache/incubator-answer-plugins/search-meilisearch v1.2.5
#12 0.479 go: downloading github.com/apache/incubator-answer v1.3.0
#12 0.479 go: downloading github.com/apache/incubator-answer-plugins/cache-redis v1.2.6
#12 0.482 go: downloading github.com/apache/incubator-answer-plugins/storage-s3 v1.2.6
#12 0.900 go: found github.com/apache/incubator-answer-plugins/cache-redis in github.com/apache/incubator-answer-plugins/cache-redis v1.2.6
#12 0.900 go: found github.com/apache/incubator-answer-plugins/search-meilisearch in github.com/apache/incubator-answer-plugins/search-meilisearch v1.2.5
#12 0.900 go: found github.com/apache/incubator-answer-plugins/storage-s3 in github.com/apache/incubator-answer-plugins/storage-s3 v1.2.6
#12 0.900 go: found github.com/apache/incubator-answer/cmd in github.com/apache/incubator-answer v1.3.0
#12 0.901 go: downloading github.com/go-redis/redis/v8 v8.11.5
#12 0.902 go: downloading github.com/meilisearch/meilisearch-go v0.25.0
#12 0.904 go: downloading github.com/segmentfault/pacman v1.0.5-0.20230822083413-c0075a2d401f
#12 0.928 go: downloading github.com/aws/aws-sdk-go v1.44.314
#12 0.944 go: downloading github.com/gin-gonic/gin v1.9.1
#12 0.950 go: downloading github.com/google/wire v0.5.0
#12 0.993 go: downloading github.com/segmentfault/pacman/contrib/log/zap v0.0.0-20221018072427-a15dd1434e05
#12 1.010 go: downloading github.com/segmentfault/pacman/contrib/server/http v0.0.0-20221018072427-a15dd1434e05
#12 1.020 go: downloading github.com/spf13/cobra v1.6.1
#12 4.524 go: downloading github.com/segmentfault/pacman/contrib/conf/viper v0.0.0-20221018072427-a15dd1434e05
#12 4.525 go: downloading gopkg.in/yaml.v3 v3.0.1
#12 4.564 go: downloading github.com/robfig/cron/v3 v3.0.1
#12 4.568 go: downloading github.com/golang-jwt/jwt/v4 v4.5.0
#12 4.570 go: downloading github.com/mailru/easyjson v0.7.7
#12 4.596 go: downloading github.com/valyala/fasthttp v1.37.1-0.20220607072126-8a320890c08d
#12 4.604 go: downloading github.com/stretchr/testify v1.8.4
#12 4.608 go: downloading github.com/go-sql-driver/mysql v1.6.0
#12 4.637 go: downloading github.com/lib/pq v1.10.7
#12 4.637 go: downloading github.com/segmentfault/pacman/contrib/cache/memory v0.0.0-20230822083413-c0075a2d401f
#12 4.641 go: downloading modernc.org/sqlite v1.24.0
#12 4.648 go: downloading xorm.io/xorm v1.3.2
#12 4.750 go: downloading github.com/anargu/gin-brotli v0.0.0-20220116052358-12bf532d5267
#12 4.751 go: downloading github.com/segmentfault/pacman/contrib/i18n v0.0.0-20230516093754-b76aef1c1150
#12 4.753 go: downloading github.com/Masterminds/semver/v3 v3.1.1
#12 4.764 go: downloading github.com/jinzhu/copier v0.3.5
#12 4.768 go: downloading golang.org/x/net v0.21.0
#12 4.773 go: downloading github.com/tidwall/gjson v1.14.4
#12 4.783 go: downloading golang.org/x/crypto v0.21.0
#12 4.852 go: downloading xorm.io/builder v0.3.12
#12 4.883 go: downloading github.com/jinzhu/now v1.1.5
#12 4.901 go: downloading github.com/swaggo/files v1.0.0
#12 4.961 go: downloading github.com/swaggo/gin-swagger v1.5.3
#12 4.991 go: downloading github.com/mojocn/base64Captcha v1.3.6
#12 5.063 go: downloading github.com/google/uuid v1.3.0
#12 5.082 go: downloading gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
#12 5.100 go: downloading github.com/goccy/go-json v0.10.2
#12 5.156 go: downloading github.com/golang/mock v1.6.0
#12 5.[19](https://github.com/aaro-n/answer-fly/actions/runs/8739108085/job/23979668023#step:4:20)8 go: downloading github.com/disintegration/imaging v1.6.2
#12 5.221 go: downloading github.com/scottleedavis/go-exif-remove v0.0.0-[20](https://github.com/aaro-n/answer-fly/actions/runs/8739108085/job/23979668023#step:4:21)230314195146-7e059d593405
#12 5.242 go: downloading github.com/Chain-Zhang/pinyin v0.1.3
#12 5.280 go: downloading github.com/cespare/xxhash/v2 v2.1.2
#12 5.297 go: downloading github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f
#12 5.318 go: downloading github.com/gin-contrib/sse v0.1.0
#12 5.331 go: downloading github.com/mattn/go-isatty v0.0.19
#12 5.346 go: downloading google.golang.org/protobuf v1.30.0
#12 5.360 go: downloading github.com/lestrrat-go/file-rotatelogs v2.4.0+incompatible
#12 5.378 go: downloading go.uber.org/zap v1.23.0
#12 5.433 go: downloading github.com/inconshreveable/mousetrap v1.0.1
#12 5.449 go: downloading github.com/spf13/pflag v1.0.5
#12 5.505 go: downloading github.com/spf13/viper v1.13.0
#12 5.576 go: downloading github.com/josharian/intern v1.0.0
#12 5.600 go: downloading github.com/davecgh/go-spew v1.1.1
#12 5.609 go: downloading github.com/pmezard/go-difflib v1.0.0
#12 5.620 go: downloading github.com/patrickmn/go-cache v2.1.0+incompatible
#12 5.623 go: downloading github.com/andybalholm/brotli v1.0.4
#12 5.637 go: downloading github.com/klauspost/compress v1.15.6
#12 6.109 go: downloading github.com/valyala/bytebufferpool v1.0.0
#12 6.109 go: downloading github.com/asaskevich/govalidator v0.0.0-20[21](https://github.com/aaro-n/answer-fly/actions/runs/8739108085/job/23979668023#step:4:22)0307081110-f21760c49a8d
#12 6.110 go: downloading github.com/microcosm-cc/bluemonday v1.0.21
#12 6.1[22](https://github.com/aaro-n/answer-fly/actions/runs/8739108085/job/23979668023#step:4:23) go: downloading github.com/yuin/goldmark v1.4.13
#12 6.205 go: downloading github.com/Machiel/slugify v1.0.1
#12 6.206 go: downloading github.com/grokify/html-strip-tags-go v0.0.1
#12 6.208 go: downloading github.com/go-playground/locales v0.14.1
#12 6.885 go: downloading github.com/go-playground/universal-translator v0.18.1
#12 6.886 go: downloading github.com/go-playground/validator/v10 v10.14.0
#12 6.940 go: downloading golang.org/x/image v0.13.0
#12 6.942 go: downloading github.com/bwmarrin/snowflake v0.3.0
#12 6.942 go: downloading github.com/LinkinStars/go-i18n/v2 v2.2.2
#12 6.954 go: downloading golang.org/x/text v0.14.0
#12 6.963 go: downloading sigs.k8s.io/yaml v1.3.0
#12 6.981 go: downloading github.com/tidwall/match v1.1.1
#12 7.011 go: downloading github.com/tidwall/pretty v1.2.0
#12 7.024 go: downloading github.com/swaggo/swag v1.16.1
#12 7.096 go: downloading gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc
#12 7.107 go: downloading github.com/golang/freetype v0.0.0-20170609003504-e[23](https://github.com/aaro-n/answer-fly/actions/runs/8739108085/job/23979668023#step:4:24)65dfdc4a0
#12 7.309 go: downloading github.com/pelletier/go-toml/v2 v2.0.8
#12 7.309 go: downloading github.com/ugorji/go/codec v1.2.11
#12 7.357 go: downloading github.com/pelletier/go-toml v1.9.5
#12 7.363 go: downloading github.com/bytedance/sonic v1.9.1
#12 7.385 go: downloading github.com/json-iterator/go v1.1.12
#12 7.427 go: downloading golang.org/x/sys v0.18.0
#12 7.537 go: downloading github.com/lestrrat-go/strftime v1.0.6
#12 7.556 go: downloading github.com/pkg/errors v0.9.1
#12 7.577 go: downloading go.uber.org/atomic v1.10.0
#12 7.612 go: downloading go.uber.org/multierr v1.8.0
#12 7.636 go: downloading github.com/jmespath/go-jmespath v0.4.0
#12 7.677 go: downloading github.com/fsnotify/fsnotify v1.6.0
#12 7.705 go: downloading github.com/mitchellh/mapstructure v1.5.0
#12 7.725 go: downloading github.com/spf13/afero v1.9.2
#12 7.747 go: downloading github.com/spf13/cast v1.5.0
#12 7.770 go: downloading github.com/spf13/jwalterweatherman v1.1.0
#12 7.786 go: downloading github.com/dsoprea/go-exif v0.0.0-20190901173045-3ce78807c90f
#12 7.787 go: downloading github.com/dsoprea/go-jpeg-image-structure v0.0.0-20190422055009-d6f9ba25cf48
#12 7.788 go: downloading github.com/dsoprea/go-png-image-structure v0.0.0-201906[24](https://github.com/aaro-n/answer-fly/actions/runs/8739108085/job/23979668023#step:4:25)104353-c9b28dcdc5c8
#12 7.924 go: downloading github.com/syndtr/goleveldb v1.0.0
#12 7.975 go: downloading github.com/aymerick/douceur v0.2.0
#12 7.989 go: downloading github.com/gabriel-vasile/mimetype v1.4.2
#12 8.237 go: downloading github.com/leodido/go-urn v1.2.4
#12 8.303 go: downloading gopkg.in/yaml.v2 v2.4.0
#12 8.3[25](https://github.com/aaro-n/answer-fly/actions/runs/8739108085/job/23979668023#step:4:26) go: downloading github.com/KyleBanks/depth v1.2.1
#12 8.350 go: downloading github.com/go-openapi/spec v0.20.9
#12 8.428 go: downloading golang.org/x/tools v0.13.0
#12 8.678 go: downloading github.com/modern-go/concurrent v0.0.0-2018030601[26](https://github.com/aaro-n/answer-fly/actions/runs/8739108085/job/23979668023#step:4:27)44-bacd9c7ef1dd
#12 8.693 go: downloading github.com/modern-go/reflect2 v1.0.2
#12 8.710 go: downloading github.com/subosito/gotenv v1.4.1
#12 8.723 go: downloading github.com/hashicorp/hcl v1.0.0
#12 8.758 go: downloading gopkg.in/ini.v1 v1.67.0
#12 8.782 go: downloading github.com/magiconair/properties v1.8.6
#12 8.813 go: downloading github.com/dsoprea/go-logging v0.0.0-20190624164917-c4f10aab7696
#12 8.828 go: downloading github.com/gorilla/css v1.0.0
#12 8.842 go: downloading github.com/golang/geo v0.0.0-20190812012225-f41920e961ce
#12 8.917 go: downloading github.com/go-openapi/jsonpointer v0.20.0
#12 8.941 go: downloading github.com/go-openapi/jsonreference v0.20.2
#12 8.960 go: downloading github.com/go-openapi/swag v0.22.4
#12 8.967 go: downloading github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311
#12 8.987 go: downloading golang.org/x/arch v0.3.0
#12 8.989 go: downloading github.com/go-errors/errors v1.0.1
#12 9.001 go: downloading github.com/golang/snappy v0.0.4
#12 9.021 go: downloading github.com/twitchyliquid64/golang-asm v0.15.1
#12 9.091 go: downloading github.com/klauspost/cpuid/v2 v2.2.4
#12 9.092 go: downloading golang.org/x/mod v0.12.0
#12 10.[27](https://github.com/aaro-n/answer-fly/actions/runs/8739108085/job/23979668023#step:4:28) go: downloading modernc.org/mathutil v1.5.0
#12 10.27 go: downloading modernc.org/ccgo/v3 v3.16.13
#12 10.27 go: downloading modernc.org/libc v1.22.5
#12 10.31 go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec
#12 11.03 go: downloading github.com/kballard/go-shellquote v0.0.0-201804[28](https://github.com/aaro-n/answer-fly/actions/runs/8739108085/job/23979668023#step:4:29)030007-95032a82bc51
#12 11.03 go: downloading modernc.org/cc/v3 v3.40.0
#12 11.04 go: downloading modernc.org/opt v0.1.3
#12 11.06 go: downloading github.com/dustin/go-humanize v1.0.1
#12 11.33 go: downloading modernc.org/memory v1.5.0
#12 11.88 go: downloading modernc.org/token v1.0.1
#12 11.88 go: downloading modernc.org/strutil v1.1.3
#12 11.88 go: downloading lukechampine.com/uint128 v1.2.0
#12 15.20 go: downloading github.com/onsi/ginkgo v1.16.5
#12 15.28 go: downloading github.com/onsi/gomega v1.18.1
#12 15.[29](https://github.com/aaro-n/answer-fly/actions/runs/8739108085/job/23979668023#step:4:30) go: downloading gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
#12 15.29 go: downloading github.com/mattn/go-sqlite3 v1.14.16
#12 15.29 go: downloading github.com/google/pprof v0.0.0-20221118152[30](https://github.com/aaro-n/answer-fly/actions/runs/8739108085/job/23979668023#step:4:31)2-e6195bd50e26
#12 15.30 go: downloading modernc.org/tcl v1.15.2
#12 15.35 go: downloading gitea.com/xorm/sqlfiddle v0.0.0-20180821085327-62ce714f951a
#12 15.36 go: downloading github.com/google/go-cmp v0.5.9
#12 15.39 go: downloading github.com/nxadm/tail v1.4.8
#12 15.41 go: downloading github.com/jmespath/go-jmespath/internal/testify v1.5.1
#12 15.43 go: downloading github.com/gin-contrib/gzip v0.0.6
#12 15.44 go: downloading modernc.org/ccorpus v1.11.6
#12 15.50 go: downloading github.com/kr/pretty v0.3.1
#12 15.51 go: downloading github.com/BurntSushi/toml v1.0.0
#12 15.52 go: downloading github.com/go-playground/assert/v2 v2.2.0
#12 15.53 go: downloading github.com/jonboulle/clockwork v0.3.0
#12 15.54 go: downloading go.uber.org/goleak v1.1.11
#12 15.56 go: downloading gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7
#12 15.57 go: downloading github.com/frankban/quicktest v1.14.3
#12 15.57 go: downloading github.com/kr/text v0.2.0
#12 15.58 go: downloading github.com/rogpeppe/go-internal v1.8.0
#12 15.59 go: downloading github.com/lestrrat-go/envload v0.0.0-20180220234015-a3eb8ddeffcc
#12 15.59 go: downloading github.com/benbjohnson/clock v1.1.0
#12 15.60 go: downloading golang.org/x/sync v0.3.0
#12 19.91 go: downloading modernc.org/httpfs v1.0.6
#12 21.53 go: downloading modernc.org/z v1.7.3
#12 21.89 [go mod vendor]
#12 24.06 [go list -mod=mod -m -f {{.Dir}} github.com/apache/incubator-answer]
#12 24.13 try to copy dir from /go/answer_build32624[31](https://github.com/aaro-n/answer-fly/actions/runs/8739108085/job/23979668023#step:4:32)575/vendor/github.com/apache/incubator-answer-plugins to /go/answer_build[32](https://github.com/aaro-n/answer-fly/actions/runs/8739108085/job/23979668023#step:4:33)62431575/vendor/github.com/apache/incubator-answer/ui/src/plugins
#12 24.13 check if /go/answer_build3262431575/vendor/github.com/apache/incubator-answer-plugins/cache-redis/package.json is a ui plugin
#12 24.13 check if /go/answer_build3262431575/vendor/github.com/apache/incubator-answer-plugins/search-meilisearch/package.json is a ui plugin
#12 24.13 check if /go/answer_build3262431575/vendor/github.com/apache/incubator-answer-plugins/storage-s3/package.json is a ui plugin
#12 24.13 [pnpm pre-install]
#12 24.76  ERR_PNPM_BAD_PM_VERSION  This project is configured to use v8.9.2 of pnpm. Your current pnpm is v9.0.2
#12 24.77 build failed exit status 1
#12 DONE 25.0s

#13 [stage-2 3/6] COPY --from=golang-builder /usr/bin/new_answer /usr/bin/answer
#13 ERROR: failed to calculate checksum of ref a7f4f8[37](https://github.com/aaro-n/answer-fly/actions/runs/8739108085/job/23979668023#step:4:38)-491b-46bc-92c7-f9c4dafa6e76::hjd8c5uw120h1snwqj08io2ze: "/usr/bin/new_answer": not found
------
 > [stage-2 3/6] COPY --from=golang-builder /usr/bin/new_answer /usr/bin/answer:
------
Error: failed to fetch an image or build from source: error building: failed to solve: failed to compute cache key: failed to calculate checksum of ref a7f4f837-491b-46bc-92c7-f9c4dafa6e76::hjd8c5uw120h1snwqj08io2ze: "/usr/bin/new_answer": not found
Error: Process completed with exit code 1.
LinkinStars commented 6 months ago

@aaro-n

RUN apk --no-cache add \ build-base git bash nodejs npm go && \ npm install -g pnpm

Since pnpm is now up to version 9, you now need to specifically specify that the version of pnpm is 8.9.2

RUN apk --no-cache add \ build-base git bash nodejs npm go && \ npm install -g pnpm@8.9.2

https://github.com/apache/incubator-answer/blob/7a6e5061e5d720157f2aafd07da1a82aaceb543d/Dockerfile#L37

aaro-n commented 6 months ago

Follow the instructions to modify the file, and the deployment is already normal