Created
April 26, 2021 22:59
Star
You must be signed in to star a gist
luarocks install http failing within Docker build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM nickblah/lua:5.4.3-luarocks-ubuntu | |
RUN apt --assume-yes update | |
RUN apt --assume-yes install build-essential | |
RUN apt --assume-yes install libssl-dev | |
RUN luarocks install http |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> docker build --no-cache -f app-learner-tests.Dockerfile -t studycat/app-learner-tests:latest . | |
[+] Building 81.5s (8/8) FINISHED | |
=> [internal] load build definition from app-learner-tests.Dockerfile 0.0s | |
=> => transferring dockerfile: 433B 0.0s | |
=> [internal] load .dockerignore 0.0s | |
=> => transferring context: 2B 0.0s | |
=> [internal] load metadata for docker.io/nickblah/lua:5.4.3-luarocks-ubuntu 2.9s | |
=> CACHED [1/5] FROM docker.io/nickblah/lua:5.4.3-luarocks-ubuntu@sha256:3ba160abf2fa7a7af61e8047445ec36f2606d9273ea46a713 0.0s | |
=> [2/5] RUN apt --assume-yes update 12.7s | |
=> [3/5] RUN apt --assume-yes install build-essential 45.8s | |
=> [4/5] RUN apt --assume-yes install libssl-dev 7.9s | |
=> ERROR [5/5] RUN luarocks install http 12.0s | |
------ | |
> [5/5] RUN luarocks install http: | |
#8 1.989 Installing https://luarocks.org/http-0.4-0.all.rock | |
#8 3.511 Missing dependencies for http 0.4-0: | |
#8 3.511 compat53 >= 0.3 (not installed) | |
#8 3.511 bit32 (not installed) | |
#8 3.511 cqueues >= 20161214 (not installed) | |
#8 3.511 luaossl >= 20161208 (not installed) | |
#8 3.511 basexx >= 0.2.0 (not installed) | |
#8 3.511 lpeg (not installed) | |
#8 3.511 lpeg_patterns >= 0.5 (not installed) | |
#8 3.511 binaryheap >= 0.3 (not installed) | |
#8 3.511 fifo (not installed) | |
#8 3.511 | |
#8 3.511 http 0.4-0 depends on lua >= 5.1 (5.4-1 provided by VM) | |
#8 3.511 http 0.4-0 depends on compat53 >= 0.3 (not installed) | |
#8 3.511 Installing https://luarocks.org/compat53-0.8-1.src.rock | |
#8 5.325 | |
#8 5.325 compat53 0.8-1 depends on lua >= 5.1, < 5.5 (5.4-1 provided by VM) | |
#8 5.325 gcc -O2 -fPIC -I/usr/local/include -c lutf8lib.c -o lutf8lib.o | |
#8 5.325 gcc -shared -o compat53/utf8.so lutf8lib.o | |
#8 5.325 gcc -O2 -fPIC -I/usr/local/include -c ltablib.c -o ltablib.o | |
#8 5.325 gcc -shared -o compat53/table.so ltablib.o | |
#8 5.325 gcc -O2 -fPIC -I/usr/local/include -c lstrlib.c -o lstrlib.o | |
#8 5.325 gcc -shared -o compat53/string.so lstrlib.o | |
#8 5.443 No existing manifest. Attempting to rebuild... | |
#8 5.499 compat53 0.8-1 is now installed in /usr/local (license: MIT) | |
#8 5.499 | |
#8 5.499 Missing dependencies for http 0.4-0: | |
#8 5.499 bit32 (not installed) | |
#8 5.499 cqueues >= 20161214 (not installed) | |
#8 5.499 luaossl >= 20161208 (not installed) | |
#8 5.499 basexx >= 0.2.0 (not installed) | |
#8 5.499 lpeg (not installed) | |
#8 5.499 lpeg_patterns >= 0.5 (not installed) | |
#8 5.499 binaryheap >= 0.3 (not installed) | |
#8 5.499 fifo (not installed) | |
#8 5.499 http 0.4-0 depends on bit32 (not installed) | |
#8 5.499 Installing https://luarocks.org/bit32-5.3.5.1-1.src.rock | |
#8 6.859 | |
#8 6.859 bit32 5.3.5.1-1 depends on lua >= 5.1, < 5.5 (5.4-1 provided by VM) | |
#8 6.859 gcc -O2 -fPIC -I/usr/local/include -c lbitlib.c -o lbitlib.o -DLUA_COMPAT_BITLIB -Ic-api | |
#8 6.859 gcc -shared -o bit32.so lbitlib.o | |
#8 6.981 bit32 5.3.5.1-1 is now installed in /usr/local (license: MIT) | |
#8 6.981 | |
#8 6.981 Missing dependencies for http 0.4-0: | |
#8 6.981 cqueues >= 20161214 (not installed) | |
#8 6.981 luaossl >= 20161208 (not installed) | |
#8 6.981 basexx >= 0.2.0 (not installed) | |
#8 6.981 lpeg (not installed) | |
#8 6.981 lpeg_patterns >= 0.5 (not installed) | |
#8 6.981 binaryheap >= 0.3 (not installed) | |
#8 6.981 fifo (not installed) | |
#8 6.981 http 0.4-0 depends on cqueues >= 20161214 (not installed) | |
#8 6.981 Installing https://luarocks.org/cqueues-20200726.54-0.src.rock | |
#8 9.413 Warning: unmatched variable LUA_LIBDIR | |
#8 9.745 enabling Lua 5.4 | |
#8 9.764 cp /tmp/luarocks_cqueues-20200726.54-0-29cgxR/cqueues-rel-20200726/config.h.guess /tmp/luarocks_cqueues-20200726.54-0-29cgxR/cqueues-rel-20200726/config.h | |
#8 9.766 cp /tmp/luarocks_cqueues-20200726.54-0-29cgxR/cqueues-rel-20200726/config.h /tmp/luarocks_cqueues-20200726.54-0-29cgxR/cqueues-rel-20200726/src/config.h | |
#8 9.832 mkdir -p /tmp/luarocks_cqueues-20200726.54-0-29cgxR/cqueues-rel-20200726/src/5.4 | |
#8 9.833 gcc -O2 -std=gnu99 -fPIC -g -Wall -Wextra -Wno-missing-field-initializers -Wno-override-init -Wno-unused -O2 -fPIC -DLUA_COMPAT_APIINTCASTS -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE -I"/usr/include" -I"/usr/include" -DCOMPAT53_PREFIX=cqueues -DCQUEUES_VENDOR='"quae@daurnimator.com"' -DCQUEUES_VERSION=20200726L -c -o /tmp/luarocks_cqueues-20200726.54-0-29cgxR/cqueues-rel-20200726/src/5.4/cqueues.o /tmp/luarocks_cqueues-20200726.54-0-29cgxR/cqueues-rel-20200726/src/cqueues.c | |
#8 10.87 mkdir -p /tmp/luarocks_cqueues-20200726.54-0-29cgxR/cqueues-rel-20200726/src/5.4 | |
#8 10.87 gcc -O2 -std=gnu99 -fPIC -g -Wall -Wextra -Wno-missing-field-initializers -Wno-override-init -Wno-unused -O2 -fPIC -DLUA_COMPAT_APIINTCASTS -I/usr/local/include -D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE -I"/usr/include" -I"/usr/include" -DCOMPAT53_PREFIX=cqueues -DCQUEUES_VENDOR='"quae@daurnimator.com"' -DCQUEUES_VERSION=20200726L -c -o /tmp/luarocks_cqueues-20200726.54-0-29cgxR/cqueues-rel-20200726/src/5.4/socket.o /tmp/luarocks_cqueues-20200726.54-0-29cgxR/cqueues-rel-20200726/src/socket.c | |
#8 11.96 cd /tmp/luarocks_cqueues-20200726.54-0-29cgxR/cqueues-rel-20200726/src && m4 /tmp/luarocks_cqueues-20200726.54-0-29cgxR/cqueues-rel-20200726/src/errno.c.m4 >| /tmp/luarocks_cqueues-20200726.54-0-29cgxR/cqueues-rel-20200726/src/errno.c.tmp | |
#8 11.96 /bin/sh: 1: m4: not found | |
#8 11.96 make: *** [/tmp/luarocks_cqueues-20200726.54-0-29cgxR/cqueues-rel-20200726/src/GNUmakefile:42: /tmp/luarocks_cqueues-20200726.54-0-29cgxR/cqueues-rel-20200726/src/errno.c] Error 127 | |
#8 11.96 | |
#8 11.96 Error: Failed installing dependency: https://luarocks.org/cqueues-20200726.54-0.src.rock - Build error: Failed building. | |
#8 11.99 | |
#8 11.99 cqueues 20200726.54-0 depends on lua 5.4 (5.4-1 provided by VM) | |
------ | |
executor failed running [/bin/sh -c luarocks install http]: exit code: 1 | |
I reverted to 5.1 and fixed like this:
FROM nickblah/lua:5.1-luarocks-ubuntu
RUN apt --assume-yes update
RUN apt --assume-yes install build-essential
RUN apt --assume-yes install libssl-dev
RUN apt --assume-yes install m4
RUN luarocks install luaossl
RUN luarocks install http
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did you ever solve this?