Coder Social home page Coder Social logo

openrestylapisdocker's Introduction

Docker & OpenResty & Lapis

Simple Docker project to setup an OpenResty & Lapis web development environment.

  • Lapis, A web framework for Lua or MoonScript
  • OpenResty, OpenResty® is a dynamic web platform based on NGINX and LuaJIT
  • Lua, The Lua language
  • MoonScript, A programmer friendly language that compiles to Lua.

How to setup

Specify the type of the Lapis Project (MoonScript or Lua) by setting the LAPIS_TYPE environment variable in the container/openresty/Dockerfile. If you leave it empty, Lapis will by default create an initial MoonScript project, if you set it to lua, Lapis will create a Lua project.

Building the image

Build the image by running

./docker-build.sh

This command will pass your current UID to the build process, which ensures, that OpenResty will run with your UID, which means, that the NGINX process and the generated files are owned by you. You can specify additional parameters (like --no-cache), which will be simply appended to the docker-compose build command that gets executed.

Starting the container

Start the container by running

./docker-start.sh

This will start the container, mount a volume from the hosts (your computer) html directory into the containers /app directory. If an nginx.conf file is not present, it will create a new Lapis project. After that or when a NGINX configuration is already present, it will simply start the CMD which is defined in the container/openresty/Dockerfile - by default the lapis server command.

You can also specify additional parameters (like -d) which will appended to the docker-compose up command that gets executed.

Note

This is just an hobby project and has been tested on Fedora 28 and Ubuntu 18.04 only. Any improvements are welcome!

openrestylapisdocker's People

Contributors

dubst3pp4 avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  avatar

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.