Code Monkey home page Code Monkey logo

kong-snap's Introduction

kong Snap

Kong snap packaging

snap store badge

This repo contains necessary wrappers and config files to package and publish Kong as a snap.

The snap currently bundles both Cassandra and PostgeSQL as possible databases to use with Kong. If you installed the snap before PostgeSQL was added to the snap, you will have Cassandra as your default, however if you install a fresh version, then you will have PostgreSQL as your database.

Since previous versions of this snap only bundled Cassandra, to not break anyone who might have had the snap previously installed running with Cassandra, the kong-daemon service in the snap will continue to use Cassandra if you upgrade to the new version of the snap with PostgreSQL in it.

To switch from using Cassandra to PostgreSQL is simple however if you desire. Run the following:

sudo snap run --shell kong -c "sed -i \"s@database = cassandra@database = postgres@\" \$SNAP_DATA/config/kong.conf"
snap stop --disable kong.cassandra
snap restart kong.kong-daemon

And you should be using PostgreSQL now instead of Cassandra and Cassandra should not automatically startup anymore.

Note: that this will only change the config file to tell Kong to use PostgreSQL, if you had important data for Kong stored in Cassandra, you will need to manually migrate that data as well. Consult the Kong docs for more information on how to do this.

This code is released under the same license as the kong project: https://github.com/Kong/kong

kong-snap's People

Contributors

anonymouse64 avatar

Stargazers

Matt Curry 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.