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 build by using sources and linking with libmysqlservices.a #5

Merged
merged 1 commit into from
Nov 1, 2018

Conversation

mkevac
Copy link
Contributor

@mkevac mkevac commented Nov 1, 2018

Fixes issue #2

I've removed ability to build with just installed headers.
I am now using mariadb built from sources (*.src.rpm) in pinba build.
I am now building pinba with libmysqlservices.a needed for some symbols.

@mkevac mkevac merged commit 056dfd3 into badoo:master Nov 1, 2018
mkdir /home/builder/rpm && \
chown -R builder /home/builder

USER builder
Copy link
Contributor

Choose a reason for hiding this comment

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

@mkevac what was the goal of the dedicated user and why we can do it under current?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

rpmbuild refuses to build as a root user


RUN mkdir -p /_src && cd /_src && \
git clone https://github.com/anton-povarov/pinba2 && \
# git clone --branch=fix_lib https://github.com/mkevac/pinba2 && \
git clone https://github.com/badoo/pinba2 && \
Copy link
Contributor

Choose a reason for hiding this comment

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

@mkevac oh now this is official but git clone should be replaced with COPY, but I will take care of it in:

Please consider updating links to new repo / web page here:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, there are many improvements here that can be made. I wanted to fix build issue first for you to be able to use this thing at all.

Copy link
Contributor

Choose a reason for hiding this comment

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

Docs were moved as well:

@@ -36,7 +36,7 @@ make install
cd /_src/pinba2
./buildconf.sh
./configure --prefix=/_install/pinba2 \
--with-mysql=/usr \
--with-mysql=/home/builder/rpm/mariadb-10.1.26 \
Copy link
Contributor

Choose a reason for hiding this comment

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

@mkevac this will fail with next release of MariaDB. We should either get the directory name dynamically or explicitly set versions in Dockerfile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants