Skip to content

Cannot install luasec #3

@saucisson

Description

@saucisson

Since a few hours, http://luarocks.org redirects to https://luarocks.org. This prevents installing luasec within your docker image, as installing luasec now requires luasec already.

Here a simple Dockerfile showing the problem:

FROM erikcw/lapis
RUN luarocks install luasec OPENSSL_LIBDIR="/lib/x86_64-linux-gnu/"

And the error:

Step 1 : FROM erikcw/lapis
 ---> 69edd4eebf0c
Step 2 : RUN luarocks install luasec OPENSSL_LIBDIR="/lib/x86_64-linux-gnu/"
 ---> Running in ddb5f9a51888
Warning: Failed searching manifest: Failed loading manifest: Failed fetching manifest for http://luarocks.org/repositories/rocks - Error fetching file: Failed downloading http://luarocks.org/repositories/rocks/manifest - URL redirected to unsupported protocol - install luasec to get HTTPS support.

Error: No results matching query were found.
The command '/bin/sh -c luarocks install luasec OPENSSL_LIBDIR="/lib/x86_64-linux-gnu/"' returned a non-zero code: 1

Strangely, the problem does not occur when doing an install of lua and luarocks using hererocks:

$ hererocks -r^ -l^ lua-install
...
$ ./lua-install/bin/luarocks install luasec
...
luasec 0.6-1 is now built and installed in /Users/alinard/Temporary/lua-install (license: MIT)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions