Skip to content
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

Fix 32-bit Promtail ARM docker builds from Drone #1740

Merged
merged 3 commits into from
Feb 25, 2020

Conversation

rfratto
Copy link
Member

@rfratto rfratto commented Feb 25, 2020

Drone's non-64 bit ARM builds run on armv8l rather than the armv7l on 32-bit Raspberry Pis. When the Docker image is built, the apt-get commands cause ldconfig to be rerun and removes armv7l-specific shared libraries, causing Promtail to not work on these platforms.

Note that this problem is only seen in Promtail because it needs to be built without static linking for scraping from the Journal to work. This issue was introduced by #1469, as Promtail was built with static linking prior to that PR.

The workaround mentioned in #1575 (symbolically linking the existing shared library to the one with the expected name) is used by this PR as a temporary solution to allow the next release to work on 32-bit ARM platforms. A more proper solution with Buildkit and a cross-compiler should be implemented in the future.

/cc @slim-bean

Copy link
Collaborator

@slim-bean slim-bean left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @rfratto

.drone/drone.jsonnet Outdated Show resolved Hide resolved
.drone/drone.jsonnet Outdated Show resolved Hide resolved
rfratto and others added 2 commits February 25, 2020 09:58
Co-Authored-By: sh0rez <me@shorez.de>
Copy link
Member

@sh0rez sh0rez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@rfratto rfratto merged commit ab4d885 into master Feb 25, 2020
@rfratto rfratto deleted the investigate-promtail-arm branch February 25, 2020 15:06
cyriltovena pushed a commit to cyriltovena/loki that referenced this pull request Jun 11, 2021
Signed-off-by: Marco Pracucci <marco@pracucci.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants