Commit 14158fc6 authored by Carla Goncalves Ourofino's avatar Carla Goncalves Ourofino
Browse files

[SOMA-1264][SOMA-1306] Guarda correções em um branch pois a SOMA-1306 foi...

[SOMA-1264][SOMA-1306] Guarda correções em um branch pois a SOMA-1306 foi convertida em história futura.
parent 43e9dd23
......@@ -4,6 +4,9 @@ ENV LUA_VERSION 5.2
ENV LUAROCKS_VERSION 2.4.2
ENV PBS_VERSION 2.5.12
ARG SGAREST_VERSION
ARG HOSTNAME
ARG UID
ARG USER
RUN apt-get update && apt-get install -y \
bc \
......@@ -37,10 +40,13 @@ RUN mkdir sgarest-daemon && \
COPY torque-package-clients-linux-x86_64.sh .
RUN ./torque-package-clients-linux-x86_64.sh --install
RUN echo $HOSTNAME > /var/spool/torque/server_name
RUN adduser --disabled-password --gecos=$USER --uid=$UID $USER
WORKDIR /sgad
RUN mkdir logs
RUN mkdir -m 777 logs
RUN cp ../sgarest-daemon/collect_execution_data .
RUN cp ../sgarest-daemon/flowmonitor .
RUN rm -rf ../sgarest-daemon
......@@ -49,4 +55,5 @@ COPY sgad-pbs.cfg .
VOLUME /sgad/logs
USER $USER
ENTRYPOINT ["./sgad.sh"]
......@@ -9,8 +9,8 @@ if [ -z ${confgfile} ]; then
confgfile=sgad-pbs.cfg
fi
export PATH=$PATH:/local/bin:/local/sbin
export PATH=$PATH:/local/bin:/local/sbin:/opt/local/bin:/opt/local/sbin
eval $(luarocks path --bin)
# sgad ${confgfile} >> "${logfile}" 2>&1
sgad ${confgfile}
\ No newline at end of file
#sgad ${confgfile} >> "${logfile}" 2>&1
sgad ${confgfile}
......@@ -88,7 +88,7 @@ Follow instructions on https://github.com/luarocks/luarocks/wiki/LuaRocks-throug
### Build
```shell
docker build . -t csbase/sgarest-daemon:1.1.1 --build-arg SGAREST_VERSION=1.1.1
docker build . -t csbase/sgarest-daemon:1.3.1-WS --build-arg HOSTNAME=$HOST --build-arg UID=$UID --build-arg USER=$USER --build-arg SGAREST_VERSION=1.3.1-WS
```
### Run
......@@ -104,7 +104,8 @@ docker run --rm \
-e SGAD_PORT="40100" \
-e SGAD_NAME="40100" \
--network host \
csbase/sgarest-daemon:1.1.1
--privileged \
csbase/sgarest-daemon:1.3.1-WS
```
## Credits
......
Markdown is supported
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