Skip to content

Commit

Permalink
Use pkcs11-closer to remove sessions references
Browse files Browse the repository at this point in the history
  • Loading branch information
jari-hodju committed May 3, 2024
1 parent f922e75 commit dccfe26
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ RUN /packaging/build_colcon_sdk.sh ${TARGETARCH:-amd64}
# ▲ runtime ──┐
# └── build ▼

FROM ghcr.io/tiiuae/pkcs11-closer:sha-7bec028 AS closer

FROM ghcr.io/tiiuae/fog-ros-baseimage:v3.2.0

RUN apt-get update \
Expand All @@ -21,4 +23,5 @@ RUN apt-get update \
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]

COPY --from=closer /pkcs11-closer /
COPY --from=builder $INSTALL_DIR $INSTALL_DIR
2 changes: 2 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ trap - TERM
wait $child
RESULT=$?

/pkcs11-closer --label ntrip-client

if [ $RESULT -ne 0 ]; then
echo "ERROR: ntrip node failed with code $RESULT" >&2
exit $RESULT
Expand Down

0 comments on commit dccfe26

Please sign in to comment.