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

Use pkcs11-closer to remove sessions references #57

Merged
merged 1 commit into from
May 7, 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 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