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 e2cc1ae commit f90a628
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 @@ -14,6 +14,8 @@ RUN /packaging/build_colcon_sdk.sh ${TARGETARCH:-amd64}
# Even though it is possible to tar the install directory for retrieving it later in runtime image,
# the tar extraction in arm64 emulated on arm64 is still slow. So, we copy the install directory instead

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

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

HEALTHCHECK --interval=5s \
Expand All @@ -29,4 +31,5 @@ COPY entrypoint.sh /entrypoint.sh
# See: https://github.com/tiiuae/fog-ros-baseimage/blob/main/Dockerfile
WORKDIR $WORKSPACE_DIR

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

/pkcs11-closer --label mocap-pose

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

0 comments on commit f90a628

Please sign in to comment.