SkyLothar / openresty-testsuite

Docker for Openresty lua module testing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Openresty Testsuite

A battery included docker image for Openresty lua module developers!

With powerful modules installed

Available Versions:

DockerHub

  • 1.9.7.4 (latest)

Usage

  1. Install Docker Engine
  2. Install Docker Compose
  3. Write Your docker-compose.yml (See Sample)

Docker Compose Sample

  • Save following content as docker-compose.yml
openresty:
  image: skylothar/openresty-testsuite:latest
  volumes:
    - .:/tests
  working_dir: /tests
  command:
    - '/bin/sh'
    - '-c'
    - 'luarocks make YOUR-ROCKSPEC && prove -r t'
  • Open your favourite editor to change YOUR-ROCKSPEC to real path or replace command with what ever your test scripts is.
  • Run docker-compose up

About

Docker for Openresty lua module testing

License:Apache License 2.0