GithubHelp home page GithubHelp logo

erikcw / docker-lapis Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 0.0 10 KB

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

docker-lapis's People

Contributors

erikcw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

docker-lapis's Issues

Volumes doesn't work

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?

Cannot install luasec

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.