erikcw / docker-lapis Goto Github PK
View Code? Open in Web Editor NEWThis image aims to provide a clean docker base image for the latest version of the Lapis Lua web framework (backed by OpenResty).
License: MIT License
This image aims to provide a clean docker base image for the latest version of the Lapis Lua web framework (backed by OpenResty).
License: MIT License
Logs say this when running the container
Aborting: can not find an installation of OpenResty
If I add a volumes to the Docker container like below::
lapis:
volumes:
- "/vagrant/src:/opt/openresty/nginx/conf"
build: ../dockerfiles/lapis/.
ports:
- "9000:8080"
It will first create the container and run lapis new
and then attach the volumes so we'll end overlapping opt/openresty/nginx/conf
with our code but won't be able to run lapis new
until the container got created.
What could be the best way to solve this?
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)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.