Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Carlos Ribas
rnacentral-webcode
Commits
e284551c
Commit
e284551c
authored
Jun 16, 2021
by
carlosribas
Browse files
Remove supervisor
parent
9ebff12c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
37 deletions
+0
-37
Dockerfile-local
Dockerfile-local
+0
-3
entrypoint-local.sh
entrypoint-local.sh
+0
-34
No files found.
Dockerfile-local
View file @
e284551c
...
...
@@ -61,6 +61,3 @@ RUN npm install --only=production
COPY ./entrypoint-local.sh /
RUN chmod 744 /entrypoint-local.sh
ENTRYPOINT ["/entrypoint-local.sh"]
# Supervisor
CMD [ "/bin/sh", "-c", "/usr/bin/supervisord -c ${SUPERVISOR_CONF_DIR}/supervisord.conf" ]
entrypoint-local.sh
View file @
e284551c
...
...
@@ -19,12 +19,6 @@ S3_HOST=${S3_HOST}
S3_KEY
=
${
S3_KEY
}
S3_SECRET
=
${
S3_SECRET
}
# Supervisor
SUPERVISOR_CONF_DIR
=
${
SUPERVISOR_CONF_DIR
:-
"/srv/rnacentral/supervisor"
}
# Entrypoint variable
LOGS
=
/srv/rnacentral/log
# Add debug_toolbar info
if
!
grep
-q
debug_toolbar
"
${
RNACENTRAL_HOME
}
"
/rnacentral/rnacentral/urls.py
;
then
sed
-i
"13 a import debug_toolbar"
"
${
RNACENTRAL_HOME
}
"
/rnacentral/rnacentral/urls.py
;
\
...
...
@@ -89,32 +83,4 @@ cat <<-EOF > "${RNACENTRAL_HOME}"/rnacentral/rnacentral/local_settings.py
}
EOF
# Supervisor setup
if
[
-f
"
${
SUPERVISOR_CONF_DIR
}
"
/supervisord.conf
]
then
echo
"INFO: Supervisord configuration file already provisioned"
else
echo
"INFO: Creating Supervisord configuration file"
cat
<<-
EOF
> "
${
SUPERVISOR_CONF_DIR
}
"/supervisord.conf
[supervisord]
pidfile=
${
SUPERVISOR_CONF_DIR
}
/supervisord.pid
logfile=
${
LOGS
}
/supervisord.log
user=rnacentral
logfile_maxbytes=50MB
logfile_backups=2
loglevel=info
nodaemon=true
[program:rqworkers]
command=python
$RNACENTRAL_HOME
/rnacentral/manage.py rqworker
directory=
$RNACENTRAL_HOME
/rnacentral/rnacentral
numprocs=1
process_name=%(program_name)s_%(process_num)s
autorestart=true
autostart=true
stderr_logfile=
${
LOGS
}
/rqworkers.err.log
stdout_logfile=
${
LOGS
}
/rqworkers.out.log
EOF
fi
exec
"
$@
"
\ No newline at end of file
Write
Preview
Markdown
is supported
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