The following documents/information need to be prepared before installation:
openresty-edge-config.*.deb, like: openresty-edge-config-0.0.1-1.or.noarch.rpm
[% admin-ip %]and
[% admin-port %]below.
[% log-server-ip %]and
[% log-server-port %]below.
[% docker-image %]below.
sudo docker login --username=[% registry-username %] registry.openresty.com # enter password: [% registry-password %]
docker pull [% docker-image %] # example: docker pull registry.openresty.com/edge/centos/7/openresty-edge-node:1.1.0-5
Create a new folder to be mounted in the container:
Generate the configuration file for Node:
[% admin-ip %],
[% admin-port %],
[% log-server-ip %] and
[% log-server-port %] with their actual contents.
# # NOTICE: please feel free to edit these configurations if necessary. # # Both [admin] section and [log_cluster] section need to be configured below. # [admin] # admin server host, default: host = "[% admin-ip %]" port = "[% admin-port %]" # Another admin server host when you have deployed two admin servers. # The node will choose one of them randomly. # And node will retry another server automatically when one server is down. # It is optional, please ignore it when you only deployed one admin. # host2 = "" [log_cluster] # log server host, default: host = "[% log-server-ip %]" port = "[% log-server-port %]"
Suppose the absolute path to
docker run -d -p 80:80 -p 443:443 --name openresty-edge-node -v /root/custom/:/usr/local/oredge-node/custom/ [% docker-image %] # example: docker run -d -p 80:80 -p 443:443 --name openresty-edge-node -v /root/custom/:/usr/local/oredge-node/custom/ registry.openresty.com/edge/centos/7/openresty-edge-node:1.1.0-5
docker stop openresty-edge-node docker rm openresty-edge-node
Now, the installation of the OpenResty Edge Node container is complete.
You can use the installed Edge Node.
Login to Admin website:
https://[% admin-host %]
If you are trying Edge, the URL and account password for Admin will be sent with your trial email.
For the trial version, admin is deployed on our machines, while for the future purchase of the full version, we will provide the installation package for self-deployment.
After login, go to the gateway clusters tab, there you will see the join request from the newly deployed node.
According to the information in the join request, confirm that it is your own node, and then click approve.
The procedure of approval is to add a new node to a gateway cluster. So before you approve, you need to create a cluster on the GUI, and then you can choose when you approve.
edge node service is deployed according to the above documents, openresty edge is up and running.
We provide online documentations:
In addition we have provided videos:
If you have any questions, please contact us.