All Projects → syhily → docker-orange

syhily / docker-orange

Licence: MIT license
Docker distribution for Orange.

Programming Languages

shell
77523 projects
Makefile
30231 projects

Projects that are alternatives of or similar to docker-orange

nginx-lua
Nginx 1.19+ with LUA support based on Alpine Linux, Amazon Linux, Debian, Fedora and Ubuntu.
Stars: ✭ 112 (+173.17%)
Mutual labels:  openresty
z-blog-openresty
程序员技术之旅-OpenResty
Stars: ✭ 25 (-39.02%)
Mutual labels:  openresty
resty-marathon-lb
基于 OpenResty 的 Marathon 服务发现 & 路由
Stars: ✭ 13 (-68.29%)
Mutual labels:  openresty
ngx-lua-images
OpenResty (nginx+lua)+Ceph+GraphicsMagick 动态生成处理图片
Stars: ✭ 34 (-17.07%)
Mutual labels:  openresty
lua-resty-http2
The HTTP/2 Protocol (Client Side) Implementation for OpenResty.
Stars: ✭ 73 (+78.05%)
Mutual labels:  openresty
lua-twitter
A Lua twitter library that works with OpenResty or LuaSocket
Stars: ✭ 29 (-29.27%)
Mutual labels:  openresty
Apicast
3scale API Gateway
Stars: ✭ 225 (+448.78%)
Mutual labels:  openresty
lua-resty-openssl
FFI-based OpenSSL binding for OpenResty
Stars: ✭ 76 (+85.37%)
Mutual labels:  openresty
spacer
🚀Serverless function platform for Lua
Stars: ✭ 50 (+21.95%)
Mutual labels:  openresty
lua-resty-pyf
Lua 汉字拼音首字母提取
Stars: ✭ 30 (-26.83%)
Mutual labels:  openresty
dnmp
docker-compose部署LNMP环境 Nginx/Openresty、MySQL(5.7、8.0、8.1)、PHP7.4(8.0、5.6)、Redis5.0、PHPMyAdmin、Xdebug、RabbitMQ、Nacos
Stars: ✭ 138 (+236.59%)
Mutual labels:  openresty
casper
Yelp's internal caching proxy, powered by Nginx and OpenResty at its core
Stars: ✭ 81 (+97.56%)
Mutual labels:  openresty
lua-resty-feishu-auth
适用于 OpenResty / ngx_lua 的基于飞书组织架构的登录认证
Stars: ✭ 28 (-31.71%)
Mutual labels:  openresty
mocka
Mocka - The complete testing framework for LUA and Nginx
Stars: ✭ 26 (-36.59%)
Mutual labels:  openresty
lua-resty-timer
Extended timers for OpenResty
Stars: ✭ 20 (-51.22%)
Mutual labels:  openresty
Lapis
A web framework for Lua and OpenResty written in MoonScript
Stars: ✭ 2,621 (+6292.68%)
Mutual labels:  openresty
lua-casbin
An authorization library that supports access control models like ACL, RBAC, ABAC in Lua (OpenResty)
Stars: ✭ 43 (+4.88%)
Mutual labels:  openresty
orange3-geo
🍊 🌍 Orange add-on for dealing with geography and geo-location
Stars: ✭ 22 (-46.34%)
Mutual labels:  orange
lua-resty-eureka-client
A Netflix Eureka client for OpenResty/ngx_lua
Stars: ✭ 18 (-56.1%)
Mutual labels:  openresty
openresty-project-v0.01
🌹 基于OpenResty编写一个MVC模式的WEB项目 V0.01
Stars: ✭ 40 (-2.44%)
Mutual labels:  openresty

Orange in Docker

This is an unofficial Docker image for Orange distribution.

What is Orange?

API Gateway based on OpenResty.

How to use this image

First, orange requires a running mysql cluster before it starts. You can either use the official MySQL containers, or use your own.

Using docker-compose (Recommend)

  • start a Orange container + its dependencies (mysql)
$ docker-compose run --service-ports --rm orange
# or
$ make run

Run in debug mode (bash) :

$ make debug-run

Common used commands

  1. docker-compose up Bootstrap a brand new alert service container. if a old container exists, docker compose would reuse it in case of losing data.
  2. docker-compose down Destroy all the containers defined in this compose file.
  3. docker-compose start Start the existed containers.
  4. docker-compose stop Stop the existed containers.
  5. docker-compose restart Restart the existed containers, the new configuration would be applied immediately.
  6. docker-compose run -d --service-ports --rm orange Almost the same with docker-compose up.

Start orange step by step

  • Run a MySQL container
docker run --name orange-database -e MYSQL_ROOT_PASSWORD=your_root_pwd -e MYSQL_DATABASE=orange -p 3306:3306 mysql:5.7

This is not only way to get a runing mysql for orange, but for some dns issue, running a docker-mysql could simplify the process of running a orange instance.

  • Runing a orange instance and initialize database scheme.

Modify the {block} content, and execute it.

ORANGE_INIT_DB variable would be deployment friendly on production.

docker run -d --name orange \
    --link orange-database:orange-database \
    -p 7777:7777 \
    -p 8888:80 \
    -p 9999:9999 \
    --security-opt seccomp:unconfined \
    -e ORANGE_DATABASE={your_database_name} \
    -e ORANGE_HOST=orange-database \
    -e ORANGE_PORT={your_database_port} \
    -e ORANGE_USER={your_database_user} \
    -e ORANGE_PWD={your_database_password} \
    syhily/orange

Access orange dashboard (Default Username: admin, Default Password: orange_admin)

Relative Link's

  1. Orange Dashboard
  2. Orange API Endpoint
  3. Orange Gateway Access Endpoint

Operation Your Orange

docker exec -it orange orange COMMAND [OPTIONS]

The commands are:

start   Start the Orange Gateway
stop    Stop current Orange
reload  Reload the config of Orange
restart Restart Orange
version Show the version of Orange
help    Show help tips

User Feedback

Issues

If you have any problems with or questions about this image, please contact us through a GitHub issue.

Contributing

You are invited to contribute new features, fixes, or updates, large or small; we are always thrilled to receive pull requests, and do our best to process them as fast as we can.

Before you start to code, we recommend discussing your plans through a GitHub issue, especially for more ambitious contributions. This gives other contributors a chance to point you in the right direction, give you feedback on your design, and help you find out if someone else is working on the same thing.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].