Skip to content

Commit

Permalink
[#453] Configure and start rsyslog for iRODS server.
Browse files Browse the repository at this point in the history
  • Loading branch information
korydraughn committed Aug 9, 2024
1 parent 6cfa5e8 commit b7a266b
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docker-test-framework/4-3/Dockerfile.consumer
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ RUN wget -qO - https://packages.irods.org/irods-signing-key.asc | apt-key add -;

EXPOSE 1247 1248

# Configure rsyslog for iRODS.
COPY irods.rsyslog /etc/rsyslog.d/00-irods.conf

# Set command to execute when launching the container.
ADD start_consumer.sh irods_consumer.input /
RUN chmod u+x /start_consumer.sh
Expand Down
3 changes: 3 additions & 0 deletions docker-test-framework/4-3/Dockerfile.provider
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ RUN wget -qO - https://packages.irods.org/irods-signing-key.asc | apt-key add -;

EXPOSE 1247 1248

# Configure rsyslog for iRODS.
COPY irods.rsyslog /etc/rsyslog.d/00-irods.conf

# Set command to execute when launching the container.
ADD start_provider.sh /
ADD testsetup-consortium.sh /
Expand Down
8 changes: 8 additions & 0 deletions docker-test-framework/4-3/irods.rsyslog
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
$FileCreateMode 0644
$DirCreateMode 0755
$Umask 0000
$template irods_format,"%msg%\n"
:programname,startswith,"irodsServer" /var/log/irods/irods.log;irods_format
& stop
:programname,startswith,"irodsDelayServer" /var/log/irods/irods.log;irods_format
& stop
4 changes: 4 additions & 0 deletions docker-test-framework/4-3/start_consumer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ until nc -z $topo_provider 1247; do
sleep 1
done

# Rsyslog must be started before iRODS so that the log messages
# are written to the correct file.
rsyslogd

# Set up iRODS.
python3 /var/lib/irods/scripts/setup_irods.py < /irods_consumer.input
su - irods -c './irodsctl -v start'
Expand Down
4 changes: 4 additions & 0 deletions docker-test-framework/4-3/start_provider.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ do
done
echo Postgres took approximately $counter seconds to fully start ...

# Rsyslog must be started before iRODS so that the log messages
# are written to the correct file.
rsyslogd

# Set up iRODS.
python3 /var/lib/irods/scripts/setup_irods.py < /var/lib/irods/packaging/localhost_setup_postgres.input
su - irods -c './irodsctl -v start'
Expand Down

0 comments on commit b7a266b

Please sign in to comment.