-
Notifications
You must be signed in to change notification settings - Fork 3
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
Fixing Issues for the Ubuntu Builds in Docker #16
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ RUN apt-get update -qq && \ | |
apt-get dist-upgrade -y && \ | ||
apt-get install -y gcc g++ clang-3.8 valgrind \ | ||
libboost1.58-all-dev \ | ||
build-essential sudo libgcrypt20-dev libgcrypt20 \ | ||
build-essential sudo \ | ||
flex bison gawk check pkg-config \ | ||
autoconf libtool realpath bc gettext lcov \ | ||
unzip doxygen dkms debhelper pylint git cmake \ | ||
|
@@ -43,6 +43,9 @@ RUN groupadd -g 1002 jenkins && \ | |
useradd jenkins -s /bin/bash -g jenkins -m -u ${UID} -g 1002 -d /home/jenkins && \ | ||
echo "jenkins ALL=NOPASSWD: ALL" >/etc/sudoers.d/jenkins | ||
|
||
#Creating TMP Directoy To Avoid permission Issues -- Bug in Xenial | ||
RUN mkdir /opt/tmp_docker; chmod -R 777 /opt/tmp_docker | ||
|
||
# volumedriver-core tests use arakoon & alba | ||
# (note: apt-get install -y --allow-unauthenticated arakoon alba does not yet work on 16.04) | ||
# volumedriver-core needs accelio library to build | ||
|
@@ -52,8 +55,9 @@ RUN echo "deb http://apt.openvstorage.com unstable main" > /etc/apt/sources.list | |
libxio0 libxio0-dbg libxio0-dbgsym \ | ||
libxio-dev libxio-dev-dbgsym && \ | ||
apt-get install -y libev4 && \ | ||
cd /root && apt-get download --allow-unauthenticated arakoon && \ | ||
cd /opt/tmp_docker && apt-get download --allow-unauthenticated arakoon && \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. see above: mkdir /opt/tmp_docker && cd /opt/tmp_docker && apt-get download... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. to check: is an apt-get install arakoon not possible these days instead of the download/install sequence hack? |
||
dpkg -i --ignore-depends=libgflags2,libsnappy1 arakoon_*_amd64.deb && \ | ||
#chown _apt arakoon_*_amd64.deb && \ | ||
rm arakoon_*_amd64.deb && \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "rm -rf /opt/tmp_docker" to clean-up |
||
apt-get clean | ||
|
||
|
@@ -71,6 +75,15 @@ RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.8 100 && | |
update-alternatives --install /usr/bin/scan-build scan-build /usr/bin/scan-build-3.8 100 && \ | ||
update-alternatives --install /usr/bin/llvm-symbolizer llvm-symbolizer /usr/bin/llvm-symbolizer-3.8 100 | ||
|
||
# Redis cannot start as a daemon on a Docker build. | ||
RUN sed -i "s/daemonize yes/daemonize no/g" /etc/redis/redis.conf | ||
|
||
# To preserve the logs for redis | ||
RUN chown -R redis:redis /var/log/redis/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. add to RUN above to avoid extra docker layer; these 2 are redis customisations that go together anyway |
||
|
||
# Cleaning behind | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not needed if /opt/tmp_docker is cleaned up after use |
||
RUN rm -fr /opt/tmp_docker | ||
|
||
ADD supervisord.conf /etc/supervisor/supervisord.conf | ||
ADD docker-entrypoint.sh /sbin/docker-entrypoint.sh | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,10 +17,5 @@ then | |
[ -d /home/jenkins/.ssh ] && chown ${UID} /home/jenkins/.ssh | ||
fi | ||
|
||
# update alba & arakoon packages to latest/greatest | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. keep this the same as for 14.04 (couldn't do this at the time this Dockerfile was created) |
||
|
||
##apt-get update -qq | ||
##apt-get install -qq -y alba arakoon | ||
|
||
# finally execute the command the user requested | ||
exec "$@" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't make this an extra step (layer) but create the directory below (around line 55) where it's used (and cleanup afterwards)