Dockerfile.system-test
FROM ruby:2.6.10-alpine
ENV LANG ja_JP.UTF-8
ENV PAGER busybox less
RUN apk update && \
apk upgrade && \
apk add --update\
bash \
build-base \
curl-dev \
git \
iproute2 \
libxml2-dev \
libxslt-dev \
linux-headers \
mysql-dev \
openssh \
ruby-dev \
ruby-json \
tzdata \
yaml \
yaml-dev \
zlib-dev \
curl \
parallel
RUN git clone https://github.com/bats-core/bats-core.git /tmp/bats-core \
&& cd /tmp/bats-core \
&& ./install.sh /usr/local \
&& rm -rf /tmp/bats-core
ENV BC_DIR /bucky-core/
ENV PATH /bucky-core/exe/:$PATH
WORKDIR $BC_DIR
COPY . $BC_DIR
RUN \
gem install bundler -v 1.17.3 && \
echo 'gem: --no-document' >> ~/.gemrc && \
cp ~/.gemrc /etc/gemrc && \
chmod uog+r /etc/gemrc && \
bundle config --global build.nokogiri --use-system-libraries && \
bundle config --global jobs 4 && \
bundle install && \
rm -rf ~/.gem
WORKDIR /app