Skip to content

Commit 98d8d6e

Browse files
committed
Fixing Issues for the Ubuntu Builds in Docker
1 parent 3ff68bb commit 98d8d6e

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

docker/ubuntu1404/supervisord.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,15 @@ nodaemon=true
33

44
[program:rpcbind]
55
command=/sbin/rpcbind -f
6+
startsecs=5
7+
exitcodes=0
68

79
[program:redis]
810
command=bash -c "/usr/bin/redis-server /etc/redis/redis.conf"
11+
startsecs=5
12+
exitcodes=0
913

1014
[program:omniNames]
1115
command=bash -c "/usr/bin/omniNames -start -errlog /var/log/omniorb-nameserver.log || /usr/bin/omniNames -errlog /var/log/omniorb-nameserver.log"
16+
startsecs=5
17+
exitcodes=0

docker/ubuntu1604/Dockerfile

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -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
7982
RUN chown -R redis:redis /var/log/redis/
8083

84+
# Cleaning behind
85+
RUN rm -fr /opt/tmp_docker
86+
8187
ADD supervisord.conf /etc/supervisor/supervisord.conf
8288
ADD docker-entrypoint.sh /sbin/docker-entrypoint.sh
8389

84-
#ENTRYPOINT ["/sbin/docker-entrypoint.sh"]
90+
ENTRYPOINT ["/sbin/docker-entrypoint.sh"]
8591

8692
CMD [ "/usr/bin/supervisord" ]
87-
CMD ["supervisord", "-n", "-c", "/etc/supervisor/supervisord.conf"]

docker/ubuntu1604/docker-entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ then
1616
chown ${UID} /home/jenkins
1717
[ -d /home/jenkins/.ssh ] && chown ${UID} /home/jenkins/.ssh
1818
fi
19+
20+
# finally execute the command the user requested
21+
exec "$@"

0 commit comments

Comments
 (0)