-
Notifications
You must be signed in to change notification settings - Fork 18
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
Docker Image does NOT build #2
Comments
Hey. This is a known issue with gcc8 (maybe 7 as well). Will fix. Try using fedora25 based image, linked in readme. |
@anton-povarov here is a section from README you're talking about:
The link is pointing to this directory: As you can see from the full log attached in 1st message when I'm trying to build it I'm getting the following error:
P. S.@anton-povarov also in the log you can see that gcc 6.4.1 was installed. Why are we talking about gcc7/8?
|
Because we've found the same issue with gcc8 internally at badoo. This is a real issue, gimme a bit of time (should be a day or less) to fix. Or, go to configure.ac and remove "-Werror" from build options there, there will be warnings but it should build and run fine. |
I've tried to remove diff --git a/configure.ac b/configure.ac
index aea5c22..264d797 100644
--- a/configure.ac
+++ b/configure.ac
@@ -31,7 +31,7 @@ AC_CHECK_FUNCS([sysconf recvmmsg])
# compiler flags
common_flags=" -pthread"
-common_flags="$common_flags -Wall -Wextra -Wformat-security -Werror"
+common_flags="$common_flags -Wall -Wextra -Wformat-security"
common_flags="$common_flags -Wno-unused -Wno-unused-parameter -Wno-unused-variable -Wno-missing-field-initializers"
common_flags="$common_flags -fno-omit-frame-pointer"
common_flags="$common_flags -fPIC -DPIC" It did not help to build i succesfully and failed with other errors
You can see full log here: |
@alexanderilyin these fixes should work for now. please check latest master. Thank you very much for your pull requests, will definitely try to check them out and accept improvements. feel free to ping me on direct email as well (come on, we've known each other for years!) :) |
I was able to build image Log at 2018-10-10 16-26-27.txt and start container:
But container died Log at 2018-10-10 16-31-54.txt with the following error:
|
@tony2001 maybe you can help me with the problem above? |
Wrong MySQL version? Wrong MySQL options? |
I can reproduce this problem. Didn't have time yet to fix it, but I will try to fix it. |
@tony2001 please see below:
@mkevac thanks for taking your time, please let me know if you need any help. |
@alexanderilyin I've fixed the build. Docker container is not ideal and we would want to improve it, but build should at least work now. |
@mkevac you're the man! Here is container log after starting: There are few minor issues with ports in
Doesn't match an exposed port:
MySQL port is not listed in Dockerfile as well:
I will take care of this and a few other things in #4. Here some other thing just for the record:
P. S.I didn't get why you need a dedicated user |
Here are couple more smoke checks:
|
Some detils on image/layers size.
|
@mkevac looks like I got a general idea why you are using a dedicated user
In logs, I see following errors so looks like something is not going as expected and
|
@alexanderilyin I've tried building with root and got an error that "you should not use root for building". Because of that, I've used a dedicated user. It works because the build is succeeding. You can try removing this part. |
@anton-povarov hey, I can' build docker image from
master
and getting following error:Full log here: Log at 2018-10-08 14-12-12.txt
P. S.
Do you have ready-to use docker image?
The text was updated successfully, but these errors were encountered: