Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#453] Add rsyslog config for iRODS and start rsyslog #454

Merged
merged 1 commit into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading