Git Product home page Git Product logo

apisix-vagrant's Introduction

Apache APISIX vagrant (Experimental)

HashiCorp Vagrant is a tool to maintain isolated environments for developing and testing. Please refer to Vagrant for more details. We assumes you have both vagrant and a proper provider already installed.

This project will provide us a dedicated environment for developing APISIX with local code synced.

Note that this project is still under developement. Any and all feedback is welcome.

Development environment

Please follow the steps below to build our development environment.

# Clone this repository
$ git clone https://github.com/imjoey/apisix-vagrant

# Clone APISIX repository
$ git clone https://github.com/apache/apisix

# Build the box and sync your cloned ../apisix code into vagrant machine
$ cd apisix-vagrant && vagrant up

# SSH into vagrant machine and install dependencies
$ vagrant ssh
$ cd /apisix && make deps

# Check APISIX version and start it
$ ./bin/apisix version && ./bin/apisix start

# Check the availability of APISIX Admin API which will return the following data:
#   {
#      "count":"1",
#      "node":{
#         "dir":true,
#         "key":"\/apisix\/services",
#         "nodes":{
#            
#         }
#      },
#      "action":"get"
#   }
$ curl "http://127.0.0.1:9080/apisix/admin/services/" -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1'

Troubleshooting

How to use http/https proxy in vagrant machine

In order to support proxy for vagrant, we need to install the proxyconf plugin.

vagrant plugin install vagrant-proxyconf

Then vagrant is able to run behind a proxy by either of the following ways.

  • Add proxy configurations into your Vagrantfile
  config.proxy.http     = "http://your-http-proxy"
  config.proxy.https    = "http://your-https-proxy"
  config.proxy.no_proxy = "localhost,127.0.0.1"
  • Add proxy environment variables for vagrant command
export VAGRANT_HTTP_PROXY=http://your-http-proxy
export VAGRANT_HTTPS_PROXY=http://your-https-proxy
export VAGRANT_NO_PROXY="localhost,127.0.0.1"
vagrant up

TODO

  • Support testing environment via initializing cpanminus and test-nginx
  • Support developing and testing Apache APISIX Dashboard repository
  • Support trying Apache APISIX and APISIX Dashboard with official releases
  • More improvements, such as input, output, logic and error handling

apisix-vagrant's People

Contributors

imjoey avatar

Watchers

 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.