-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #37 from thecoolestguy/master
Added per-minute processes for frontend/indexing and 2 yum packages
- Loading branch information
Showing
4 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ MAINTAINER Ilios Project Team <[email protected]> | |
ENV GITHUB_ACCOUNT_SSH_USERS='' | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y wget openssh-server sudo netcat mysql-client && \ | ||
apt-get install -y wget openssh-server sudo netcat mysql-client vim telnet && \ | ||
rm -rf /var/lib/apt/lists/* && \ | ||
apt-get autoremove -y | ||
|
||
|
@@ -22,8 +22,16 @@ RUN sed -i 's/#PermitUserEnvironment no/PermitUserEnvironment yes/' /etc/ssh/ssh | |
# allow users in the sudo group to do wo without a password | ||
RUN /bin/echo "%sudo ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/no-password-group | ||
|
||
# initialize the log files for the loop processes | ||
RUN /bin/touch /tmp/ilios_frontend_updates.log | ||
RUN /bin/touch /tmp/ilios_search_index_updates.log | ||
|
||
# copy over the script files that will run the processess | ||
COPY update_ilios_frontend_loop.sh /update_ilios_frontend_loop.sh | ||
COPY update_ilios_search_index_loop.sh /update_ilios_search_index_loop.sh | ||
COPY entrypoint.sh /entrypoint.sh | ||
|
||
# expose the ssh port | ||
EXPOSE 22 | ||
ENTRYPOINT /entrypoint.sh | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
while sleep 60; do | ||
echo -n `date +\%H:\%M:\ ` > /tmp/ilios_frontend_updates.log | ||
cd /var/www/ilios;sudo bin/console ilios:maintenance:update-frontend >> /tmp/ilios_frontend_updates.log 2>&1 | ||
: | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
while sleep 60; do | ||
echo -n `date +\%H:\%M:\ ` > /tmp/ilios_search_index_updates.log | ||
cd /var/www/ilios;sudo /var/www/ilios/bin/console messenger:consume async --time-limit=60 >> /tmp/ilios_search_index_updates.log 2>&1 | ||
: | ||
done |