Skip to content

Commit

Permalink
Build newer libkqueue
Browse files Browse the repository at this point in the history
  • Loading branch information
arr2036 committed Sep 12, 2017
1 parent 7d42ce8 commit a4c1d9d
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion scripts/docker/build-ubuntu14/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,25 @@ RUN apt-get install libnl-3-dev libnl-genl-3-dev
RUN mkdir -p /usr/local/src/repositories
WORKDIR /usr/local/src/repositories

#
# Get a modern version of cmake. We need 3.8.2 or later to build libkqueue rpms
#
RUN curl -f -o cmake.sh https://cmake.org/files/v3.8/cmake-3.8.2-Linux-x86_64.sh
RUN [ "$(cat cmake.sh | openssl sha256 | sed 's/^.* //')" = "bb26b1871f9e5c2fb73476186cc94d03b674608f704b48b94d617340b87b4d73" ]
RUN sh cmake.sh --skip-license --prefix=/usr/local

#
# Grab libkqueue and build
#
WORKDIR /usr/local/src/repositories
# Fixme: Change to the main repo when they merge this branch
RUN git clone --branch patch-3 --depth=1 https://github.com/arr2036/libkqueue.git
WORKDIR libkqueue
RUN cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib ./ && \
make && \
cpack -G DEB
RUN apt-get install -y ./*.deb

#
# Shallow clone the FreeRADIUS source
#
Expand All @@ -47,7 +66,7 @@ RUN for i in $(git for-each-ref --format='%(refname:short)' refs/remotes/origin
#
#RUN echo deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse >> /etc/apt/sources.list
RUN apt-add-repository ppa:openjdk-r/ppa
RUN apt-get update && apt-get install -y openjdk-8-jre-headless
RUN apt-get update && apt-get install -y openjdk-8-jre-headless
RUN apt-get install -y openssh-server
RUN useradd -m jenkins
RUN echo "jenkins:jenkins1" | chpasswd
Expand Down

0 comments on commit a4c1d9d

Please sign in to comment.