Closed themicster closed 8 years ago
Interesting find. I fired up coreos 899.9.0 and reproduced it in the same exact manner.
Turns out it's an obscure bug in CentOS (CentOS being the base image for this Dockerfile) that's exposed here when using overlayFS, which the default storage driver for CoreOS (and a good choice).
Here's the domino that starts it all, I guess:
Last login: Sat May 14 23:07:39 2016 from 192.168.122.1
CoreOS beta (899.9.0)
core@coreos5 ~ $ docker info
Containers: 6
Images: 27
Server Version: 1.9.1
Storage Driver: overlay
Backing Filesystem: extfs
Execution Driver: native-0.2
Logging Driver: json-file
Kernel Version: 4.3.6-coreos
Operating System: CoreOS 899.9.0
CPUs: 1
Total Memory: 997.3 MiB
Name: coreos5
ID: MJWM:NRZO:OVQO:KMHI:4YFV:5DKO:BDRR:LDBC:4KCN:525D:DCMZ:TP5U
More info on it here: https://github.com/docker/docker/issues/10180
Given what I saw for work-arounds, it wasn't pretty. So I decided to update the base image to CentOS7, which appears to do the trick nicely (supposedly the fix on the CentOS side has made it officially into upstream), and... it's about time, really, to use CentOS7.
Just manually tested and it looks good so far as building it.
I'm going to open a PR, which I'll reference here, but, some further debugging is needed it didn't pass it's Travis build. If you do a git checkout fixcore
after your git clone
and then build, you'll see it build at least.
Update to CentOS 7 is working -- and should work for a build under CoreOS now too, all merged into master. Let me know if you run into any snags.
Yup, that fixed it. Can you get this changed in the other Dockerfiles's as well?
I tried building asterisk 13 by just changing to centos7 but it gave me this error: /bin/sh: make: command not found Might need to add some more packages to the yum command
I've almost got it for Asterisk 13, wound up changing it while addressing another issue, should be merging it in this afternoon.
After that I think the only straggler are dougbtv/kamailio & dougbtv/fastagi
Alright, I merged in those changes -- give 'er a whirl at will. NB the kamailio image doesn't have any CI, which I gotta add a todo, so.... it's sorta untested, it's just a couple minor versions ahead so it should be JustFine™
trouble building captagent
/bin/sh: ./build.sh: No such file or directory
capt-agent has undergone a lot of improvements since this dockerfile. and it's breaking changes, and that dockerfile tracks HEAD on master. which isn't... ideal. I'll open a new issue.
I've got it in #51 -- I'm going to make this dockerfile work, but, I'm going to deprecate all the Homer stuff herein -- otherwise kind of duplicating other maintained official dockerfiles. I'll contribute back to the Homer guys what I get working here, but...
If you need the image right away, do a docker pull dougbtv/homer-captagent
(but, the 6.0 / 6.1 changes are better)