Skip to content

Commit

Permalink
Block app start before time has been synced
Browse files Browse the repository at this point in the history
  • Loading branch information
maseabunikie committed Dec 7, 2023
1 parent 9e67fa5 commit 8e476be
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ RUN apt update \
&& rm -rf /var/lib/apt/lists/* \
&& pip3 install simplejson pystache

RUN dpkg -i $SRC_DIR/microxrcedds_agent/debs/*.deb

RUN mkdir -p /usr/local/lib \
&& mkdir -p /usr/local/bin

Expand Down
Binary file added debs/chronyc_4.2-r0_amd64.deb
Binary file not shown.
Binary file added debs/libedit0_20210910-3.1-r0_amd64.deb
Binary file not shown.
Binary file added debs/libncurses5_6.3+20220423-r0_amd64.deb
Binary file not shown.
Binary file added debs/ncurses_6.3+20220423-r0_amd64.deb
Binary file not shown.
2 changes: 2 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/bash -e

# Start chrony client and wait for timesync before doing anything.
/usr/bin/chronyc waitsync

if [ "$FASTRTPS_DEFAULT_PROFILES_FILE" != "" ]; then
cp $FASTRTPS_DEFAULT_PROFILES_FILE /default_profiles.xml
Expand Down

0 comments on commit 8e476be

Please sign in to comment.