Instead of hardcoding laforge's username in all FROM statements in the
Dockerfiles, make use of the USER variable (as passed through by the
"make/Makefile" with "docker build --build-arg USER=..."). Thanks to
fixeria for proposing this fix!
This requires running docker-ce, old versions of docker (such as the
one in the official repositories of the latest Fedora) don't support
variables in the FROM line. But docker-ce can be installed after
adding docker's 3rd party repositories.
Closes: OS#3457
Change-Id: Ic5f11c8a4e247f632cb6aea6d147e94c53e0130f
Changes:
* install ca-certificates, so "git clone" doesn't fail
* checkout specific commits (the most recent ones right now), so we
will get the same code every time we build the container and the
patches won't fail to apply in the future
* rebase patch "disable the use of scheduler priorities and mlockall"
on top of master (I couldn't find the commit it was supposed to be
based on)
* delete obsolete patch that fixed compilation
Change-Id: I7cd647684b983384f419b5cfbea0f8dfc7fee70e