cdbattags / openresty-testsuite

Docker for Openresty lua module testing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Openresty Testsuite

A batteries included docker image for Openresty lua module developers!

With powerful modules installed

Available Versions:

DockerHub

  • 1.19.3.1 (latest)
  • 1.15.8.3

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: cdbattags/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


Languages

Language:Dockerfile 100.0%