Skip to content

Commit

Permalink
Force line-buffering for 'tpm2-simulator' process, so that its text o…
Browse files Browse the repository at this point in the history
…utput will be visible.
  • Loading branch information
danieltrick committed Nov 21, 2024
1 parent 906f129 commit 9a910fd
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/).

## r2 - 2024-11-21

### Added
- Force line-buffering for 'tpm2-simulator' process, so that its text output will be visible.

## r1 - 2024-11-21

- This is the first public release of this project.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ RUN install_packages \
# Copy the built binaries
COPY --from=build /opt/mssim/bin/tpm2-simulator /usr/bin/

# Copy startup script
COPY bin/entrypoint.sh /opt/

# Start TPM simulator
ENTRYPOINT ["/usr/bin/tpm2-simulator"]
ENTRYPOINT ["/opt/entrypoint.sh"]
CMD ["2321"]
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ The purpose of this repository is to provide ready to use Docker images of [ms-t
Version history
---------------

| **Release** | **Date** | **Base system** | **TPM Simulator Version** | **Commit** |
| ------------| ---------- | --------------------- | ------------------------- |--------------------------------------------------------------------------------- |
| r1 | 2024-11-21 | Debian 12, 2024-11-11 | 1.62.0 | [`ee21db0a941d`](https://github.com/microsoft/ms-tpm-20-ref/commit/ee21db0a941d) |
| **Release** | **Date** | **Base system** | **TPM Simulator Version** | **Commit** |
| ------------| ---------- | --------------------- | ------------------------- |---------------------------------------------------------------------------------------------- |
| r2 | 2024-11-21 | Debian 12, 2024-11-11 | 1.62.0 | [`ee21db0a941d`](https://github.com/microsoft/ms-tpm-20-ref/commit/ee21db0a941d) (2024-10-04) |
3 changes: 3 additions & 0 deletions bin/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
set -ex
stdbuf -oL -eL /usr/bin/tpm2-simulator "$@"

0 comments on commit 9a910fd

Please sign in to comment.