docToolchain / docker-image

MIT License
3 stars 18 forks source link

Unable to build docker image #27

Closed omichels closed 2 years ago

omichels commented 2 years ago

what i did: $ git checkout master $ cd alpine $ docker build . -t rdmueller/doctoolchain:master


error:
 => => transferring dockerfile: 1.52kB                                                                                          0.0s
 => [internal] load .dockerignore                                                                                               0.0s
 => => transferring context: 2B                                                                                                 0.0s
 => [internal] load metadata for docker.io/library/openjdk:14-jdk-alpine                                                        2.8s
 => [auth] library/openjdk:pull token for registry-1.docker.io                                                                  0.0s
 => CACHED [1/8] FROM docker.io/library/openjdk:14-jdk-alpine@sha256:b8082268ef46d44ec70fd5a64c71d445492941813ba9d68049be6e63a  0.0s
 => [2/8] RUN ECHO "add needed tools" &&     apk add --no-cache curl wget zip unzip git bash     git     graphviz     python  144.4s
 => ERROR [3/8] RUN    gem install pygments.rb                                                                                  1.8s
------
 > [3/8] RUN    gem install pygments.rb:
#7 1.800 ERROR:  While executing gem ... (ArgumentError)
#7 1.800     wrong number of arguments (given 4, expected 1)
------
executor failed running [/bin/sh -c gem install pygments.rb]: exit code: 1
 => => transferring dockerfile: 1.52kB                                                                                          0.0s
 => [internal] load .dockerignore                                                                                               0.0s
 => => transferring context: 2B                                                                                                 0.0s
 => [internal] load metadata for docker.io/library/openjdk:14-jdk-alpine                                                        2.8s
 => [auth] library/openjdk:pull token for registry-1.docker.io                                                                  0.0s
 => CACHED [1/8] FROM docker.io/library/openjdk:14-jdk-alpine@sha256:b8082268ef46d44ec70fd5a64c71d445492941813ba9d68049be6e63a  0.0s
 => [2/8] RUN ECHO "add needed tools" &&     apk add --no-cache curl wget zip unzip git bash     git     graphviz     python  144.4s
 => ERROR [3/8] RUN    gem install pygments.rb                                                                                  1.8s
------
 > [3/8] RUN    gem install pygments.rb:
#7 1.800 ERROR:  While executing gem ... (ArgumentError)
#7 1.800     wrong number of arguments (given 4, expected 1)
------
executor failed running [/bin/sh -c gem install pygments.rb]: exit code: 1```
rdmueller commented 2 years ago

please use the ng-beta branch and try again. the ng-beta branch contains the dockerfile which is currently in use.

omichels commented 2 years ago

> LANG=C git status
On branch ng-beta
Your branch is up to date with 'origin/ng-beta'.

nothing to commit, working tree clean

#6 22.81 Executing ca-certificates-20191127-r2.trigger
#6 22.87 Executing fontconfig-2.13.1-r0.trigger
#6 24.90 Executing graphviz-2.40.1-r1.trigger
#6 24.92 Executing mkfontscale-1.2.1-r1.trigger
#6 24.96 OK: 186 MiB in 74 packages
#6 27.46 Building native extensions. This could take a while...
#6 27.55 ERROR:  Error installing rdoc:
#6 27.55    ERROR: Failed to build gem native extension.
#6 27.55
#6 27.55     current directory: /usr/lib/ruby/gems/2.5.0/gems/psych-4.0.3/ext/psych
#6 27.55 /usr/bin/ruby -r ./siteconf20220217-23-hh2dq3.rb extconf.rb
#6 27.55 mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
#6 27.55
#6 27.55 extconf failed, exit code 1
#6 27.55
#6 27.55 Gem files will remain installed in /usr/lib/ruby/gems/2.5.0/gems/psych-4.0.3 for inspection.
#6 27.55 Results logged to /usr/lib/ruby/gems/2.5.0/extensions/x86_64-linux/2.5.0/psych-4.0.3/gem_make.out
------
executor failed running [/bin/sh -c echo "add needed tools" &&     apk add --no-cache curl wget zip unzip git bash     git     graphviz     python     ruby     py-pygments     libc6-compat     ttf-dejavu &&     gem install rdoc --no-document &&     gem install pygments.rb]: exit code: 1
rdmueller commented 2 years ago

Interesting. This is afaik the docker file which I used to build the last image 😲

rdmueller commented 2 years ago

currently I try to prepare the new release and I also run into the same error. Did you find out what's wrong?

rdmueller commented 2 years ago

I modified the dockerfile and had to remove pygments.rb. But it should work again. can you please give it a try?

rdmueller commented 2 years ago

just fixed even pygments.rb

ascheman commented 2 years ago

Locally it works for me (with current ng-beta branch, commit id de7f15c011242c500258e3a02d29b20a5461cf94). I will soon provide a GitHub Action based build to make sure we get it working on an independent environment (towards a repeatable build on a normalised build environment).

rdmueller commented 2 years ago

I hope we could help. will close this now. please open another issue if problems remain