All Projects → orangesys → alpine-kong

orangesys / alpine-kong

Licence: other
alpine-kong

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to alpine-kong

Lua Cassandra
Pure Lua driver for Apache Cassandra
Stars: ✭ 95 (+533.33%)
Mutual labels:  cassandra, openresty
Kong Docs Cn
微服务 Api 网关 Kong 最新文档中文版
Stars: ✭ 371 (+2373.33%)
Mutual labels:  kong, openresty
casper
Yelp's internal caching proxy, powered by Nginx and OpenResty at its core
Stars: ✭ 81 (+440%)
Mutual labels:  cassandra, openresty
cassandra-nginx-cdn
Some config files and POC code to use Apache Cassandra as distributed storage for HLS chunks accross multiple datacenters and scripts for converting/transcoding UDP MPEG-TS to HLS and vice versa. The idea is take from Globo.com’s Live Video Platform for FIFA World Cup ’14.
Stars: ✭ 24 (+60%)
Mutual labels:  cassandra, openresty
lua-resty-timer
Extended timers for OpenResty
Stars: ✭ 20 (+33.33%)
Mutual labels:  kong, openresty
mango
mango is a man-page generator for the Go flag, pflag, cobra, coral, and kong packages
Stars: ✭ 191 (+1173.33%)
Mutual labels:  kong
kubernetes-examples
A bunch of examples of how to deploy things on kubernetes
Stars: ✭ 34 (+126.67%)
Mutual labels:  cassandra
docker-orange
Docker distribution for Orange.
Stars: ✭ 41 (+173.33%)
Mutual labels:  openresty
esop
Cloud-enabled backup and restore tool for Apache Cassandra
Stars: ✭ 40 (+166.67%)
Mutual labels:  cassandra
kuma-gui
🐻 A GUI built on Vue.js for use with Kuma.
Stars: ✭ 34 (+126.67%)
Mutual labels:  kong
EFCore.Cassandra
Entity Framework Core provider for Cassandra
Stars: ✭ 23 (+53.33%)
Mutual labels:  cassandra
cassandra.realtime
Different ways to process data into Cassandra in realtime with technologies such as Kafka, Spark, Akka, Flink
Stars: ✭ 25 (+66.67%)
Mutual labels:  cassandra
openresty dev
Code for OpenResty Development Guide
Stars: ✭ 85 (+466.67%)
Mutual labels:  openresty
docker-lapis
Dockerized Lapis
Stars: ✭ 20 (+33.33%)
Mutual labels:  openresty
kubernetes-helm-chart-cassandra
Kubernetes Helm Chart for Cassandra
Stars: ✭ 29 (+93.33%)
Mutual labels:  cassandra
kong-java-client
Java Client for Kong API Gateway configuration
Stars: ✭ 69 (+360%)
Mutual labels:  kong
kong-plugin-zipkin
A Kong plugin for propogating zipkin spans and reporting spans to a zipkin server - this plugin has been moved into https://github.com/Kong/kong, please open issues and PRs in that repo
Stars: ✭ 60 (+300%)
Mutual labels:  kong
scalable-retail-web-service
A highly scalable retail web service.
Stars: ✭ 20 (+33.33%)
Mutual labels:  cassandra
lua-mailgun
Lua bindings to Mailgun HTTP API
Stars: ✭ 25 (+66.67%)
Mutual labels:  openresty
loopback-connector-cassandra
Cassandra connector for the LoopBack framework.
Stars: ✭ 13 (-13.33%)
Mutual labels:  cassandra

CircleCI Docker Pulls Docker Repository on Quay

Kong in Docker

This is the official Docker image for Kong.

orangesys/alpine-kong with dumb-init installed and used as default ENTRYPOINT.

Run kong in Kubernetes

You can run Kubernetes use helm charts for this

You can use this image like you would use any other base image, just don't override ENTRYPOINT or run dumb-init yourself.

Run docker compose

  git clone https://github.com/orangesys/alpine-kong.git
  docker-compose up -d

Supported tags and respective Dockerfile links

What is Kong?

Kong was built to secure, manage and extend Microservices & APIs. If you're building for web, mobile or IoT (Internet of Things) you will likely end up needing to implement common functionality on top of your actual software. Kong can help by acting as a gateway for any HTTP resource while providing logging, authentication and other functionality through plugins.

Powered by NGINX and Cassandra with a focus on high performance and reliability, Kong runs in production at Mashape where it has handled billions of API requests for over ten thousand APIs.

Kong's documentation can be found at getkong.org/docs.

How to use this image

First, Kong requires a running Cassandra or PostgreSQL cluster before it starts. You can either use the official Cassandra/PostgreSQL containers, or use your own.

1. Link Kong to either a Cassandra or PostgreSQL container

It's up to you to decide which datastore between Cassandra or PostgreSQL you want to use, since Kong supports both.

Cassandra

Start a Cassandra container by executing:

$ docker run -d --name kong-database \
                -p 9042:9042 \
                cassandra:2.2

Postgres

Start a PostgreSQL container by executing:

docker run -d --name kong-database \
                -p 5432:5432 \
                -e "POSTGRES_USER=kong" \
                -e "POSTGRES_DB=kong" \
                postgres:9.4

Start Kong

Once the database is running, we can start a Kong container and link it to the database container, and configuring the DATABASE environment variable with either cassandra or postgres depending on which database you decided to use:

$ docker run -d --name kong \
    -e "DATABASE=cassandra" \
    --link kong-database:kong-database \
    -p 8000:8000 \
    -p 8443:8443 \
    -p 8001:8001 \
    -p 7946:7946 \
    -p 7946:7946/udp \
    --security-opt seccomp:unconfined \
    orangesys/alpine-kong:0.7.0

Note: If Docker complains that --security-opt is an invalid option, just remove it and re-execute the command (it was introduced in Docker 1.3).

If everything went well, and if you created your container with the default ports, Kong should be listening on your host's 8000 (proxy), 8443 (proxy SSL) and 8001 (admin api) ports. Port 7946 (cluster) is being used only by other Kong nodes.

You can now read the docs at getkong.org/docs to learn more about Kong.

2. Use Kong with a custom configuration (and a custom Cassandra/PostgreSQL cluster)

This container stores the Kong configuration file in a Data Volume. You can store this file on your host (name it kong.yml and place it in a directory) and mount it as a volume by doing so:

$ docker run -d \
    -v /path/to/your/kong/configuration/directory/:/etc/kong/ \
    -p 8000:8000 \
    -p 8443:8443 \
    -p 8001:8001 \
    -p 7946:7946 \
    -p 7946:7946/udp \
    --security-opt seccomp:unconfined \
    --name kong \
    orangesys/alpine-kong:0.7.0

When attached this way you can edit your configuration file from your host machine and restart your container. You can also make the container point to a different Cassandra/PostgreSQL instance, so no need to link it to a Cassandra/PostgreSQL container.

Reload Kong in a running container

If you change your custom configuration, you can reload Kong (without downtime) by issuing:

$ docker exec -it kong kong reload

This will run the kong reload command in your container.

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].