Skip to content

Commit 3cf2429

Browse files
committed
Add section as hint for own docker builds
1 parent f4285ec commit 3cf2429

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,22 @@ for enhanced tests with modbus masters and to test collecting values from differ
3939

4040
The Modbus specification can be found here: [PDF](https://modbus.org/docs/Modbus_Application_Protocol_V1_1b3.pdf)
4141

42+
# Own Docker builds and version pinning
43+
44+
If you want to build your own container image with the [Dockerfile](./Dockerfile) you should know that the file uses version pinning to have a deterministic environment for the application.
45+
This is a best bractice and described in [Hadolint DL3018](https://github.com/hadolint/hadolint/wiki/DL3018).
46+
47+
The problem is, that Alpine Linux doesn't keep old versions inside the software repository. When software will be updated, the old (pinned) version will be removed and is so no longer available.
48+
Docker builds will be successfull today and fail tomorrow.
49+
50+
See also here: https://github.com/hadolint/hadolint/issues/464
51+
52+
53+
The [Dockerfile](./Dockerfile) in this repo may have an not working stand of pinned versions. When you run in errors during your own build, please:
54+
55+
1. Update the versions inside the Dockerfile for your own
56+
2. Don't create an issue in the Github repo, because this is a known issue
57+
4258

4359
# QuickStart with Modbus TCP Server and Docker
4460

0 commit comments

Comments
 (0)