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 592cb66
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
id: meta
uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7
with:
images: danieltrick/ms-tpm2sim-docker
images: danieltrick/mssim-docker

- name: Build and push Docker image
id: push
Expand All @@ -47,8 +47,8 @@ jobs:
steps:
- name: Pull and save the Docker image
run: |
docker image pull danieltrick/ms-tpm2sim-docker:${{ github.ref_name }}
docker image save danieltrick/ms-tpm2sim-docker:${{ github.ref_name }} | xz -9v > mssim_docker-${{ github.ref_name }}.tar.xz
docker image pull danieltrick/mssim-docker:${{ github.ref_name }}
docker image save danieltrick/mssim-docker:${{ github.ref_name }} | xz -9v > mssim_docker-${{ github.ref_name }}.tar.xz
- name: Upload image to GitHub release
uses: Roang-zero1/github-upload-release-artifacts-action@v2
Expand Down
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"]
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ MS TPM 2.0 Simulator Docker
The purpose of this repository is to provide ready to use Docker images of [ms-tpm-20-ref](https://github.com/microsoft/ms-tpm-20-ref).

**Docker Hub page:**
<https://hub.docker.com/r/danieltrick/ms-tpm2sim-docker>
<https://hub.docker.com/r/danieltrick/mssim-docker>


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** |
| ------------| ---------- | --------------------- | ------------------------- |---------------------------------------------------------------------------------------------- |
| r1 | 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 592cb66

Please sign in to comment.