Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The command "make container-build" fails #22586

Closed
inductor opened this issue Jul 19, 2020 · 14 comments
Closed

The command "make container-build" fails #22586

inductor opened this issue Jul 19, 2020 · 14 comments
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.

Comments

@inductor
Copy link
Member

inductor commented Jul 19, 2020

This is a Bug Report

Problem:

make container-build returns the following error

$ make container-build
docker run --rm --interactive --tty --volume /home/kela/src/github.com/inductor/website:/src kubernetes-hugo hugo --minify
Total in 35509 ms
Error: Error building site: POSTCSS: failed to transform "scss/main.css" (text/css): resource "scss/scss/main.scss_4853eb546e7a6c0898ed71feae7357c0" not found in file cache
make: *** [Makefile:67: container-build] Error 255

This has been reported on Docsy theme repository google/docsy#235

Is it a bug with the Docsy theme currently integrated with this site?

Proposed Solution:

postcss-cli installatikon needed?

Page to Update:

@rlenferink
Copy link
Member

I haven’t experienced this myself. Are you using the latest container image ? : make container-image

@inductor
Copy link
Member Author

@rlenferink Yes. Another person in Japanese localization team had the same problem too actually.

@rlenferink
Copy link
Member

The ticket you referenced said that postcss-cli is probably missing. This is added in #22258.

Are you building the latest master?

@celestehorgan
Copy link
Contributor

@inductor

Also – did you run make container-image before running make container-build?

@inductor
Copy link
Member Author

@celestehorgan Yes I did. Actually it happened right after make container-image && make container-build, which is weird.

@sftim
Copy link
Contributor

sftim commented Jul 19, 2020

I can replicate this. make container-serve works fine.
/kind bug

@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Jul 19, 2020
@sftim
Copy link
Contributor

sftim commented Jul 19, 2020

/priority important-longterm

(feel free to adjust that, it's just my opinion)

@k8s-ci-robot k8s-ci-robot added the priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. label Jul 19, 2020
@rlenferink
Copy link
Member

I just pulled the latest master & make container-build succeeded for me. Terminal dump (note that postcss-cli will be installed as part of the image building):

[root@centos8 website]# make container-image
docker build . \
        --network=host \
        --tag kubernetes-hugo \
        --build-arg HUGO_VERSION=0.70.0
Sending build context to Docker daemon  3.584kB
Step 1/7 : FROM alpine:latest
 ---> a24bb4013296
Step 2/7 : LABEL maintainer="Luc Perkins <lperkins@linuxfoundation.org>"
 ---> Running in bdf441299bfd
Removing intermediate container bdf441299bfd
 ---> 62989ff78657
Step 3/7 : RUN apk add --no-cache     curl     git     openssh-client     rsync     build-base     libc6-compat     npm &&     npm install -G autoprefixer postcss-cli
 ---> Running in bd0ee7825eaa
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz
(1/42) Upgrading musl (1.1.24-r8 -> 1.1.24-r9)
(2/42) Installing libgcc (9.3.0-r2)
(3/42) Installing libstdc++ (9.3.0-r2)
(4/42) Installing binutils (2.34-r1)
(5/42) Installing libmagic (5.38-r0)
(6/42) Installing file (5.38-r0)
(7/42) Installing gmp (6.2.0-r0)
(8/42) Installing isl (0.18-r0)
(9/42) Installing libgomp (9.3.0-r2)
(10/42) Installing libatomic (9.3.0-r2)
(11/42) Installing libgphobos (9.3.0-r2)
(12/42) Installing mpfr4 (4.0.2-r4)
(13/42) Installing mpc1 (1.1.0-r1)
(14/42) Installing gcc (9.3.0-r2)
(15/42) Installing musl-dev (1.1.24-r9)
(16/42) Installing libc-dev (0.7.2-r3)
(17/42) Installing g++ (9.3.0-r2)
(18/42) Installing make (4.3-r0)
(19/42) Installing fortify-headers (1.1-r0)
(20/42) Installing patch (2.7.6-r6)
(21/42) Installing build-base (0.5-r2)
(22/42) Installing ca-certificates (20191127-r4)
(23/42) Installing nghttp2-libs (1.41.0-r0)
(24/42) Installing libcurl (7.69.1-r0)
(25/42) Installing curl (7.69.1-r0)
(26/42) Installing expat (2.2.9-r1)
(27/42) Installing pcre2 (10.35-r0)
(28/42) Installing git (2.26.2-r0)
(29/42) Installing libc6-compat (1.1.24-r9)
(30/42) Installing brotli-libs (1.0.7-r5)
(31/42) Installing c-ares (1.16.1-r0)
(32/42) Installing libuv (1.37.0-r0)
(33/42) Installing nodejs (12.17.0-r0)
(34/42) Installing npm (12.17.0-r0)
(35/42) Installing openssh-keygen (8.3_p1-r0)
(36/42) Installing ncurses-terminfo-base (6.2_p20200523-r0)
(37/42) Installing ncurses-libs (6.2_p20200523-r0)
(38/42) Installing libedit (20191231.3.1-r0)
(39/42) Installing openssh-client (8.3_p1-r0)
(40/42) Installing libacl (2.2.53-r0)
(41/42) Installing popt (1.16-r7)
(42/42) Installing rsync (3.1.3-r3)
Executing busybox-1.31.1-r16.trigger
Executing ca-certificates-20191127-r4.trigger
OK: 284 MiB in 55 packages
npm WARN saveError ENOENT: no such file or directory, open '/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN enoent ENOENT: no such file or directory, open '/package.json'
npm WARN !invalid#1 No description
npm WARN !invalid#1 No repository field.
npm WARN !invalid#1 No README data
npm WARN !invalid#1 No license field.

+ postcss-cli@7.1.1
+ autoprefixer@9.8.5
added 114 packages from 108 contributors and audited 115 packages in 8.249s

8 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

Removing intermediate container bd0ee7825eaa
 ---> 09afd9c97901
Step 4/7 : ARG HUGO_VERSION
 ---> Running in 7ad006f7ddc7
Removing intermediate container 7ad006f7ddc7
 ---> 7420286202d4
Step 5/7 : RUN mkdir -p /usr/local/src &&     cd /usr/local/src &&     curl -L https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz | tar -xz &&     mv hugo /usr/local/bin/hugo &&     addgroup -Sg 1000 hugo &&     adduser -Sg hugo -u 1000 -h /src hugo
 ---> Running in e85dae140aef
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   650  100   650    0     0   1957      0 --:--:-- --:--:-- --:--:--  1957
100 13.8M  100 13.8M    0     0  6660k      0  0:00:02  0:00:02 --:--:-- 11.6M
Removing intermediate container e85dae140aef
 ---> f9973a893162
Step 6/7 : WORKDIR /src
 ---> Running in 08f3e4aaf842
Removing intermediate container 08f3e4aaf842
 ---> e6396e44fc47
Step 7/7 : EXPOSE 1313
 ---> Running in 847424b9df4d
Removing intermediate container 847424b9df4d
 ---> 4de5b86ed50e
Successfully built 4de5b86ed50e
Successfully tagged kubernetes-hugo:latest
[root@centos8 website]# make container-build
docker run --rm --interactive --tty --volume /mnt/projects/CNCF/k8s/website:/src kubernetes-hugo hugo --minify

                   |  EN  | ZH  | KO  | JA  | FR  | IT  | DE  | ES  | PT  | ID  | RU  | VI  | PL  | UK
-------------------+------+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+-----+------
  Pages            | 1107 | 780 | 380 | 242 | 243 |  56 | 104 | 177 |  51 | 201 | 115 |  63 |  54 |  64
  Paginator pages  |   34 |   4 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0
  Non-page files   |  438 | 359 | 217 | 237 |  59 |  24 |  20 |  34 |  24 |  81 |  28 |  12 |   9 |  30
  Static files     |  878 | 878 | 878 | 878 | 878 | 878 | 878 | 878 | 878 | 878 | 878 | 878 | 878 | 878
  Processed images |    0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0
  Aliases          |    8 |   4 |   1 |   0 |   0 |   0 |   0 |   0 |   0 |   2 |   0 |   0 |   0 |   0
  Sitemaps         |    2 |   1 |   1 |   1 |   1 |   1 |   1 |   1 |   1 |   1 |   1 |   1 |   1 |   1
  Cleaned          |    0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0 |   0

Total in 132932 ms
[root@centos8 website]#

@inductor or @sftim Can you paste the output of the make container-image command?

@inductor
Copy link
Member Author

@rlenferink

$ make container-image
docker build . \
        --network=host \
        --tag kubernetes-hugo \
        --build-arg HUGO_VERSION=0.70.0
Sending build context to Docker daemon  3.584kB
Step 1/7 : FROM alpine:latest
latest: Pulling from library/alpine
df20fa9351a1: Already exists
Digest: sha256:185518070891758909c9f839cf4ca393ee977ac378609f700f60a771a2dfe321
Status: Downloaded newer image for alpine:latest
 ---> a24bb4013296
Step 2/7 : LABEL maintainer="Luc Perkins <lperkins@linuxfoundation.org>"
 ---> Running in dac9bd630720
Removing intermediate container dac9bd630720
 ---> f47387d08fb8
Step 3/7 : RUN apk add --no-cache     curl     git     openssh-client     rsync     build-base     libc6-compat     npm &&     npm install -G autoprefixer postcss-cli
 ---> Running in 8bf5cac1b31c
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.12/community/x86_64/APKINDEX.tar.gz
(1/42) Upgrading musl (1.1.24-r8 -> 1.1.24-r9)
(2/42) Installing libgcc (9.3.0-r2)
(3/42) Installing libstdc++ (9.3.0-r2)
(4/42) Installing binutils (2.34-r1)
(5/42) Installing libmagic (5.38-r0)
(6/42) Installing file (5.38-r0)
(7/42) Installing gmp (6.2.0-r0)
(8/42) Installing isl (0.18-r0)
(9/42) Installing libgomp (9.3.0-r2)
(10/42) Installing libatomic (9.3.0-r2)
(11/42) Installing libgphobos (9.3.0-r2)
(12/42) Installing mpfr4 (4.0.2-r4)
(13/42) Installing mpc1 (1.1.0-r1)
(14/42) Installing gcc (9.3.0-r2)
(15/42) Installing musl-dev (1.1.24-r9)
(16/42) Installing libc-dev (0.7.2-r3)
(17/42) Installing g++ (9.3.0-r2)
(18/42) Installing make (4.3-r0)
(19/42) Installing fortify-headers (1.1-r0)
(20/42) Installing patch (2.7.6-r6)
(21/42) Installing build-base (0.5-r2)
(22/42) Installing ca-certificates (20191127-r4)
(23/42) Installing nghttp2-libs (1.41.0-r0)
(24/42) Installing libcurl (7.69.1-r0)
(25/42) Installing curl (7.69.1-r0)
(26/42) Installing expat (2.2.9-r1)
(27/42) Installing pcre2 (10.35-r0)
(28/42) Installing git (2.26.2-r0)
(29/42) Installing libc6-compat (1.1.24-r9)
(30/42) Installing brotli-libs (1.0.7-r5)
(31/42) Installing c-ares (1.16.1-r0)
(32/42) Installing libuv (1.37.0-r0)
(33/42) Installing nodejs (12.17.0-r0)
(34/42) Installing npm (12.17.0-r0)
(35/42) Installing openssh-keygen (8.3_p1-r0)
(36/42) Installing ncurses-terminfo-base (6.2_p20200523-r0)
(37/42) Installing ncurses-libs (6.2_p20200523-r0)
(38/42) Installing libedit (20191231.3.1-r0)
(39/42) Installing openssh-client (8.3_p1-r0)
(40/42) Installing libacl (2.2.53-r0)
(41/42) Installing popt (1.16-r7)
(42/42) Installing rsync (3.1.3-r3)
Executing busybox-1.31.1-r16.trigger
Executing ca-certificates-20191127-r4.trigger
OK: 284 MiB in 55 packages
npm WARN saveError ENOENT: no such file or directory, open '/package.json'
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN enoent ENOENT: no such file or directory, open '/package.json'
npm WARN !invalid#1 No description
npm WARN !invalid#1 No repository field.
npm WARN !invalid#1 No README data
npm WARN !invalid#1 No license field.

+ postcss-cli@7.1.1
+ autoprefixer@9.8.5
added 114 packages from 108 contributors and audited 115 packages in 6.663s

8 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

Removing intermediate container 8bf5cac1b31c
 ---> 20df63ff4cf5
Step 4/7 : ARG HUGO_VERSION
 ---> Running in a10889837893
Removing intermediate container a10889837893
 ---> 10089f8236c8
Step 5/7 : RUN mkdir -p /usr/local/src &&     cd /usr/local/src &&     curl -L https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz | tar -xz &&     mv hugo /usr/local/bin/hugo &&     addgroup -Sg 1000 hugo &&     adduser -Sg hugo -u 1000 -h /src hugo
 ---> Running in fef62940cc26
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   650  100   650    0     0   1851      0 --:--:-- --:--:-- --:--:--  1851
100 13.8M  100 13.8M    0     0  1197k      0  0:00:11  0:00:11 --:--:-- 2114k
Removing intermediate container fef62940cc26
 ---> a02805bb8f1e
Step 6/7 : WORKDIR /src
 ---> Running in cb8642f4729d
Removing intermediate container cb8642f4729d
 ---> 72938dbe53db
Step 7/7 : EXPOSE 1313
 ---> Running in f8083dff6e51
Removing intermediate container f8083dff6e51
 ---> f64e7b0139e1
Successfully built f64e7b0139e1
Successfully tagged kubernetes-hugo:latest
$ make container-build
docker run --rm --interactive --tty --volume /home/kela/src/github.com/inductor/website:/src kubernetes-hugo hugo --minify
Total in 32491 ms
Error: Error building site: POSTCSS: failed to transform "scss/main.css" (text/css): resource "scss/scss/main.scss_4853eb546e7a6c0898ed71feae7357c0" not found in file cache
make: *** [Makefile:67: container-build] Error 255

@sftim
Copy link
Contributor

sftim commented Jul 20, 2020

I used Podman but got a similar outcome.

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Oct 18, 2020
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Nov 17, 2020
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

@k8s-ci-robot
Copy link
Contributor

@fejta-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Projects
None yet
Development

No branches or pull requests

6 participants