Skip to content

Commit

Permalink
travis: add Dockerfile for Ubuntu 14.04
Browse files Browse the repository at this point in the history
It's not used yet.
  • Loading branch information
kou committed Apr 6, 2018
1 parent 7b26c95 commit f6c9c6f
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
*/*.a
*/*.bundle
*/*.o
*/*.so
*/*.swp
*/Makefile
*/*.pc
*/*.tar.gz
*/tmp
*/.*

packages/apt/repositories/
packages/yum/repositories/
packages/source/files/
packages/windows/source/
packages/windows/files/
packages/windows/dist-*
travis/
48 changes: 48 additions & 0 deletions travis/Dockerfile.ubuntu-14.04
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
FROM ubuntu:14.04

RUN \
apt update && \
apt install -y \
bison \
g++ \
gcc \
gdb \
git \
libdevent-dev \
libmsgpack-dev \
make \
mecab-naist-jdic \
pkg-config \
ruby2.0 \
ruby2.0-dev \
sudo \
zlib1g-dev

RUN \
gem2.0 install bundler

RUN \
useradd --user-group --create-home groonga

RUN \
echo "groonga ALL=(ALL:ALL) NOPASSWD:ALL" | \
EDITOR=tee visudo -f /etc/sudoers.d/groonga

COPY . /home/groonga/source

USER groonga

WORKDIR /home/groonga
RUN mkdir -p build
WORKDIR /home/groonga/build

RUN ../source/configure \
--enable-debug \
--with-ruby=/usr/bin/ruby2.0 \
--enable-mruby

RUN make -j$(nproc) > /dev/null

CMD \
BUILD_DIR=test/command \
../source/test/command/run-test.sh

0 comments on commit f6c9c6f

Please sign in to comment.