-
Notifications
You must be signed in to change notification settings - Fork 237
Add support for time shifting inside the container #921
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
base: main
Are you sure you want to change the base?
Changes from 4 commits
489eb43
f452a2b
db82629
7e2e4a9
15f266f
59925a5
25b400e
941e270
8ae4c02
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -265,4 +265,9 @@ ADD futurenet /opt/stellar-default/futurenet | |
| ADD start / | ||
| RUN ["chmod", "+x", "start"] | ||
|
|
||
| RUN ln -s /usr/lib/*/faketime/libfaketime.so.1 /usr/lib/libfaketime.so.1 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This symlink selects the non-pthread libfaketime variant for the entire container. In the normal quickstart path that library is preloaded into threaded processes such as stellar-core, postgresql, and nginx; libfaketime's non-MT build has unsynchronized cached state around time intercepts, and this image enables caching, so concurrent requests can observe inconsistent fake time when Useful? React with 👍 / 👎. |
||
| COPY faketimerc /etc/faketimerc | ||
| RUN echo /usr/lib/libfaketime.so.1 > /etc/ld.so.preload | ||
|
leighmcculloch marked this conversation as resolved.
Outdated
|
||
| ENV FAKETIME_NO_CACHE=1 | ||
|
|
||
| ENTRYPOINT ["/start"] | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| +0h x1 | ||
|
leighmcculloch marked this conversation as resolved.
|
||
Uh oh!
There was an error while loading. Please reload this page.