Commit 389eb592 authored by Felipe Pina's avatar Felipe Pina
Browse files

Updating the README.md

+ New install lnstructions
+ Updated Docker section
Showing with 23 additions and 11 deletions
+23 -11
......@@ -38,27 +38,39 @@ following to your `sgad.cfg`:
To use `sga-exec` when writing your own driver, the rule of thumb is to
avoid Lua's standard `io.*` and `os.*` routines.
## Install
Install Luarocks 2.4.2 then run the following commands
```shell
luarocks install lua-schema-scm-1.rockspec
luarocks make sga-daemon-scm-1.rockspec
luarocks make sga-driver-posix-scm-1.rockspec
```
## Docker
### Build
```shell
docker build . -t csbase/sgarest-daemon:1.0.2 --build-arg SGAREST_VERSION=1.0.2
docker build . -t csbase/sgarest-daemon:1.1.1 --build-arg SGAREST_VERSION=1.1.1
```
### Run
```shell
docker run --rm \
-p 40100:40100 \
-v /home/sgad/logs/sga:/sgad/logs \
-v /home/sgad/projects:/sgad/projects \
-v /home/sgad/algorithms:/sgad/algorithms \
-e CSBASE_SERVER="http://csgrid:40500" \
-e SGAD_HOST="sgad40100" \
-e SGAD_PORT="40100" \
-e SGAD_NAME="40100" \
sgarest-daemon:1.0.2
docker run --rm \
-p 40100:40100 \
-v /home/sgad/logs/sga:/sgad/logs \
-v /home/sgad/projects:/sgad/projects \
-v /home/sgad/algorithms:/sgad/algorithms \
-e CSBASE_SERVER="http://csgrid:40500" \
-e SGAD_HOST="sgad40100" \
-e SGAD_PORT="40100" \
-e SGAD_NAME="40100" \
--network host \
csbase/sgarest-daemon:1.0.2
```
## Credits
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment