mirror of
https://gitee.com/iresty/apisix.git
synced 2024-12-02 03:58:02 +08:00
luarocks: init version.
This commit is contained in:
parent
fc64a4ccba
commit
184e63e728
2
.gitignore
vendored
2
.gitignore
vendored
@ -40,7 +40,7 @@ luac.out
|
||||
*.hex
|
||||
|
||||
# develop
|
||||
logs
|
||||
logs/*.log
|
||||
t/servroot
|
||||
go
|
||||
\.*
|
||||
|
19
Makefile
19
Makefile
@ -1,3 +1,7 @@
|
||||
INST_PREFIX ?= /usr
|
||||
INST_LIBDIR ?= $(INST_PREFIX)/lib64/lua/5.1
|
||||
INST_LUADIR ?= $(INST_PREFIX)/share/lua/5.1
|
||||
INSTALL ?= install
|
||||
|
||||
### help: Show Makefile rules.
|
||||
.PHONY: help
|
||||
@ -30,3 +34,18 @@ clean:
|
||||
.PHONY: reload
|
||||
reload:
|
||||
sudo $$(which openresty) -p $$PWD/ -s reload
|
||||
|
||||
|
||||
### install: Install the Apisix
|
||||
.PHONY: install
|
||||
install:
|
||||
$(INSTALL) -d $(INST_LUADIR)/apisix/logs/
|
||||
$(INSTALL) logs/placehold.txt $(INST_LUADIR)/apisix/logs/
|
||||
cp -r lua $(INST_LUADIR)/apisix/
|
||||
cp -r conf $(INST_LUADIR)/apisix/
|
||||
cp -r lua $(INST_LUADIR)/apisix/
|
||||
cp -r doc $(INST_LUADIR)/apisix/doc
|
||||
chmod 644 $(INST_LUADIR)/apisix/conf/config.yaml
|
||||
$(INSTALL) COPYRIGHT $(INST_LUADIR)/apisix/
|
||||
$(INSTALL) README.md $(INST_LUADIR)/apisix/
|
||||
$(INSTALL) README_CN.md $(INST_LUADIR)/apisix/
|
||||
|
@ -48,7 +48,7 @@ Now, you can try APISIX, go to [**Quickstart**](#quickstart).
|
||||
> Install by luarocks
|
||||
|
||||
```shell
|
||||
luarocks install lua-resty-r3 lua-resty-etcd lua-resty-balancer lua-resty-ngxvar
|
||||
luarocks install lua-resty-libr3 lua-resty-etcd lua-resty-balancer lua-resty-ngxvar
|
||||
```
|
||||
|
||||
## Quickstart
|
||||
|
40
apisix-0.1-0.rockspec
Normal file
40
apisix-0.1-0.rockspec
Normal file
@ -0,0 +1,40 @@
|
||||
package = "apisix"
|
||||
version = "0.1-0"
|
||||
source = {
|
||||
url = "git://github.com/iresty/apisix",
|
||||
tag = "v0.1",
|
||||
}
|
||||
|
||||
description = {
|
||||
summary = "APISIX is a cloud-native microservices API gateway, delivering the ultimate performance, security, open source and scalable platform for all your APIs and microservices.",
|
||||
homepage = "https://github.com/iresty/apisix",
|
||||
license = "Apache License 2.0",
|
||||
maintainer = "Yuansheng Wang <membphis@gmail.com>"
|
||||
}
|
||||
|
||||
dependencies = {
|
||||
"lua >= 5.1",
|
||||
"lua-resty-libr3 >= 0.1",
|
||||
"lua-resty-etcd >= 0.4",
|
||||
"lua-resty-balancer >= 0.02rc5",
|
||||
"lua-resty-ngxvar >= 0.2",
|
||||
}
|
||||
|
||||
build = {
|
||||
type = "make",
|
||||
build_variables = {
|
||||
CFLAGS="$(CFLAGS)",
|
||||
LIBFLAG="$(LIBFLAG)",
|
||||
LUA_LIBDIR="$(LUA_LIBDIR)",
|
||||
LUA_BINDIR="$(LUA_BINDIR)",
|
||||
LUA_INCDIR="$(LUA_INCDIR)",
|
||||
LUA="$(LUA)",
|
||||
},
|
||||
install_variables = {
|
||||
INST_PREFIX="$(PREFIX)",
|
||||
INST_BINDIR="$(BINDIR)",
|
||||
INST_LIBDIR="$(LIBDIR)",
|
||||
INST_LUADIR="$(LUADIR)",
|
||||
INST_CONFDIR="$(CONFDIR)",
|
||||
},
|
||||
}
|
2
logs/.gitignore
vendored
2
logs/.gitignore
vendored
@ -1,2 +0,0 @@
|
||||
*
|
||||
!.gitignore
|
0
logs/placehold.txt
Normal file
0
logs/placehold.txt
Normal file
Loading…
Reference in New Issue
Block a user