Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csbase-dev
sgarest-daemon
Commits
93eddbae
Commit
93eddbae
authored
Dec 22, 2020
by
Felipe Pina
Browse files
Atualiza Dockerfile
+ Substitui o script de entrypoint [SOMA-7061][SOMA-7075]
parent
c4d420f3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Docker/Dockerfile
View file @
93eddbae
...
...
@@ -5,7 +5,6 @@ RUN cd /tmp/sgarest-daemon && ./install.sh --posix /sgad
FROM
repo.tecgraf.puc-rio.br:18089/soma/sga-runtime-ubuntu:20.04
ENV
SGAD_HOME /sgad
COPY
--from=build /sgad /sgad
WORKDIR
/sgad/data
...
...
@@ -13,7 +12,7 @@ WORKDIR /sgad/data
RUN
mkdir
algorithms logs projects
COPY
collect_execution_data .
COPY
flowmonitor .
COPY
sgad
.sh .
COPY
Docker/entrypoint
.sh .
COPY
Docker/sgad.cfg .
VOLUME
/sgad/data/projects
...
...
@@ -21,5 +20,7 @@ VOLUME /sgad/data/algorithms
VOLUME
/sgad/data/logs
ENV
SGAD_HOME /sgad
ENTRYPOINT
["./sgad.sh"]
ENV
SGAD_LOGS_DIR $SGAD_HOME/data/logs
ENTRYPOINT
["./entrypoint.sh"]
CMD
["sgad.cfg"]
Docker/entrypoint.sh
0 → 100755
View file @
93eddbae
#!/bin/sh
timestamp
=
$(
date
+%Y%m%d%H%M%S
)
logfile
=
"
${
SGAD_LOGS_DIR
}
/sgad_
${
SGAD_NAME
}
_
${
timestamp
}
.log"
eval
$(
"
${
SGAD_HOME
}
"
/bin/luarocks path
--bin
)
if
[
-z
"
${
LOG_TO_FILE
}
"
]
then
sgad
"
$@
"
else
sgad
"
$@
"
2>&1 |
tee
-a
"
${
logfile
}
"
fi
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment