soulbird opened a new pull request, #350:
URL: https://github.com/apache/apisix-docker/pull/350

   1、Add `docker-entrypoint.sh` file to make Dockerfile more spec-compliant.
   
   2、Support for enabling stand-alone mode via environment variables:
   ```shell
   docker run --name apache/apisix -e APISIX_STAND_ALONE=true apache/apisix
   ````
   The above command will create a default apisix.yaml file with a default 
route:
   ```shell
   routes:
      -
        id: 1
        uri: /*
        upstream:
          nodes:
            "httpbin.org:80": 1
          type: roundrobin
   ````
   If you want to add a new route, you can use this command:
   ```shell
   docker exec -i apisix-test sh -c "cat > /usr/local/apisix/conf/apisix.yaml 
<<_EOC_
   routes:
      -
        id: status
        uri: /status
        plugins:
          fault-injection:
            abort:
              http_status: 200
              body: fine
      -
        id: anything
        uri: /anything
        upstream:
          nodes:
            \"httpbin.org:80\": 1
          type: roundrobin
   #END
   _EOC_"
   ````


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to