forked from lifull-dev/bucky-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.system-test
47 lines (42 loc) · 907 Bytes
/
Dockerfile.system-test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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