@@ -43,6 +43,9 @@ RUN groupadd -g 1002 jenkins && \
4343 useradd jenkins -s /bin/bash -g jenkins -m -u ${UID} -g 1002 -d /home/jenkins && \
4444 echo "jenkins ALL=NOPASSWD: ALL" >/etc/sudoers.d/jenkins
4545
46+ # Creating TMP Directoy To Avoid permission Issues -- Bug in Xenial
47+ RUN mkdir /opt/tmp_docker; chmod -R 777 /opt/tmp_docker
48+
4649# volumedriver-core tests use arakoon & alba
4750# (note: apt-get install -y --allow-unauthenticated arakoon alba does not yet work on 16.04)
4851# volumedriver-core needs accelio library to build
@@ -52,7 +55,7 @@ RUN echo "deb http://apt.openvstorage.com unstable main" > /etc/apt/sources.list
5255 libxio0 libxio0-dbg libxio0-dbgsym \
5356 libxio-dev libxio-dev-dbgsym && \
5457 apt-get install -y libev4 && \
55- cd /tmp && apt-get download --allow-unauthenticated arakoon && \
58+ cd /opt/tmp_docker && apt-get download --allow-unauthenticated arakoon && \
5659 dpkg -i --ignore-depends=libgflags2,libsnappy1 arakoon_*_amd64.deb && \
5760 # chown _apt arakoon_*_amd64.deb && \
5861 rm arakoon_*_amd64.deb && \
@@ -78,10 +81,12 @@ RUN sed -i "s/daemonize yes/daemonize no/g" /etc/redis/redis.conf
7881# To preserve the logs for redis
7982RUN chown -R redis:redis /var/log/redis/
8083
84+ # Cleaning behind
85+ RUN rm -fr /opt/tmp_docker
86+
8187ADD supervisord.conf /etc/supervisor/supervisord.conf
8288ADD docker-entrypoint.sh /sbin/docker-entrypoint.sh
8389
84- # ENTRYPOINT ["/sbin/docker-entrypoint.sh"]
90+ ENTRYPOINT ["/sbin/docker-entrypoint.sh" ]
8591
8692CMD [ "/usr/bin/supervisord" ]
87- CMD ["supervisord" , "-n" , "-c" , "/etc/supervisor/supervisord.conf" ]
0 commit comments