Skip to content

Commit c53e33d

Browse files
committed
Fixing Issues for the Ubuntu Builds in Docker
1 parent f09e3ad commit c53e33d

File tree

9 files changed

+28
-16
lines changed

9 files changed

+28
-16
lines changed

docker/arch/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ RUN pacman -Sy --noconfirm gcc clang valgrind \
1717
unzip doxygen git cmake \
1818
wget openssl python2 libxml2 \
1919
curl lsb-release \
20-
rabbitmq libaio krb5 c-ares libgcrypt \
20+
rabbitmq libaio krb5 c-ares \
2121
python2-pylint libcap lz4 numactl libunwind google-glog \
2222
\
2323
# next are for volumedriver-core

docker/centos/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ RUN echo '%_install_langs C' >> /etc/rpm/macros && \
1919
cppzmq-devel tokyocabinet-devel bzip2-devel protobuf-compiler \
2020
gflags-devel snappy-devel omniORB-devel omniORB-servers python-omniORB \
2121
redis hiredis-devel lz4-devel \
22-
python-nose libcurl-devel libgcrypt-devel libgcrypt \
22+
python-nose libcurl-devel \
2323
rpm rpm-build fuse protobuf-python fakeroot libxio-devel \
2424
uriparser-devel supervisor rpcbind libunwind glog-devel && \
2525
yum clean all && \

docker/fc22/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN echo '%_install_langs C' >> /etc/rpm/macros && \
1616
librdmacm-devel loki-lib-devel protobuf-devel lttng-ust-devel \
1717
cppzmq-devel tokyocabinet-devel bzip2-devel protobuf-compiler \
1818
gflags-devel snappy-devel omniORB-devel omniORB-servers python-omniORB \
19-
redis hiredis-devel libgcrypt-devel libgcrypt \
19+
redis hiredis-devel \
2020
python-nose libcurl-devel lz4-devel \
2121
rpm rpm-build fuse protobuf-python fakeroot debhelper \
2222
supervisor rpcbind && \
Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ RUN apt-get update && \
2525
apt-get update && \
2626
apt-get install -y gcc-4.9 g++-4.9 libstdc++-4.9-dev clang-3.5 \
2727
libboost1.57-all-dev \
28-
build-essential libgcrypt11-dev libgcrypt11 \
28+
build-essential \
2929
flex bison gawk check pkg-config \
3030
autoconf libtool realpath bc gettext lcov \
3131
unzip doxygen dkms debhelper pylint git cmake \
@@ -86,6 +86,12 @@ RUN usermod -a -G fuse jenkins && \
8686
usermod -a -G sudo jenkins && \
8787
usermod -a -G adm jenkins
8888

89+
# Redis cannot start as a daemon on a Docker build.
90+
RUN sed -i "s/daemonize yes/daemonize no/g" /etc/redis/redis.conf
91+
92+
# To preserve the logs for redis
93+
RUN chown -R redis:redis /var/log/redis/
94+
8995
ADD supervisord.conf /etc/supervisor/supervisord.conf
9096
ADD docker-entrypoint.sh /sbin/docker-entrypoint.sh
9197

docker/ubuntu1604/Dockerfile

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ RUN apt-get update -qq && \
1212
apt-get dist-upgrade -y && \
1313
apt-get install -y gcc g++ clang-3.8 valgrind \
1414
libboost1.58-all-dev \
15-
build-essential sudo libgcrypt20-dev libgcrypt20 \
15+
build-essential sudo \
1616
flex bison gawk check pkg-config \
1717
autoconf libtool realpath bc gettext lcov \
1818
unzip doxygen dkms debhelper pylint git cmake \
@@ -52,8 +52,9 @@ RUN echo "deb http://apt.openvstorage.com unstable main" > /etc/apt/sources.list
5252
libxio0 libxio0-dbg libxio0-dbgsym \
5353
libxio-dev libxio-dev-dbgsym && \
5454
apt-get install -y libev4 && \
55-
cd /root && apt-get download --allow-unauthenticated arakoon && \
55+
cd /tmp && apt-get download --allow-unauthenticated arakoon && \
5656
dpkg -i --ignore-depends=libgflags2,libsnappy1 arakoon_*_amd64.deb && \
57+
#chown _apt arakoon_*_amd64.deb && \
5758
rm arakoon_*_amd64.deb && \
5859
apt-get clean
5960

@@ -71,9 +72,16 @@ RUN update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.8 100 &&
7172
update-alternatives --install /usr/bin/scan-build scan-build /usr/bin/scan-build-3.8 100 && \
7273
update-alternatives --install /usr/bin/llvm-symbolizer llvm-symbolizer /usr/bin/llvm-symbolizer-3.8 100
7374

75+
# Redis cannot start as a daemon on a Docker build.
76+
RUN sed -i "s/daemonize yes/daemonize no/g" /etc/redis/redis.conf
77+
78+
# To preserve the logs for redis
79+
RUN chown -R redis:redis /var/log/redis/
80+
7481
ADD supervisord.conf /etc/supervisor/supervisord.conf
7582
ADD docker-entrypoint.sh /sbin/docker-entrypoint.sh
7683

77-
ENTRYPOINT ["/sbin/docker-entrypoint.sh"]
84+
#ENTRYPOINT ["/sbin/docker-entrypoint.sh"]
7885

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

docker/ubuntu1604/docker-entrypoint.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,3 @@ then
1616
chown ${UID} /home/jenkins
1717
[ -d /home/jenkins/.ssh ] && chown ${UID} /home/jenkins/.ssh
1818
fi
19-
20-
# update alba & arakoon packages to latest/greatest
21-
22-
##apt-get update -qq
23-
##apt-get install -qq -y alba arakoon
24-
25-
# finally execute the command the user requested
26-
exec "$@"

docker/ubuntu1604/supervisord.conf

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
[supervisord]
2-
nodaemon=true
2+
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

0 commit comments

Comments
 (0)