Skip to content

Commit

Permalink
Merge pull request #57 from tiiuae/feat-pkcs11-closer
Browse files Browse the repository at this point in the history
Use pkcs11-closer to remove sessions references
  • Loading branch information
jari-hodju authored May 7, 2024
2 parents e2cc1ae + f90a628 commit e1949ea
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 e1949ea

Please sign in to comment.