diff options
| author | mo khan <mo@mokhan.ca> | 2019-09-03 18:57:41 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2019-09-03 18:57:41 -0600 |
| commit | 84d78463bdc98a45647e1f0ef2802caeb2c8c7c8 (patch) | |
| tree | 5ef5e8fc922d9455976f91ca959e01349e74e560 | |
| parent | a67ef9c7d53548cd5bea9196eb7e754f893990db (diff) | |
install bats in docker image
| -rw-r--r-- | .dockerignore | 2 | ||||
| -rw-r--r-- | Dockerfile | 6 | ||||
| -rwxr-xr-x | bin/test | 1 |
3 files changed, 4 insertions, 5 deletions
diff --git a/.dockerignore b/.dockerignore index ec635fc..088fa3b 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,4 +1,4 @@ -.git +.git* tmp node_modules *.pdf @@ -3,12 +3,12 @@ MAINTAINER mo@mokhan.ca RUN apk update && \ apk upgrade && \ - apk add ruby nodejs yarn chromium nss freetype freetype-dev harfbuzz ca-certificates ttf-freefont && \ + apk add git bash ruby nodejs yarn chromium nss freetype freetype-dev harfbuzz ca-certificates ttf-freefont && \ gem install bundler:'~> 2.0' --no-document && \ mkdir -p /code - +RUN git clone https://github.com/sstephenson/bats.git /opt/bats && cd /opt/bats && ./install.sh /usr/local WORKDIR /code COPY . /code -RUN bundle install --jobs $(nproc) && yarn install && mvn install +RUN bundle install --jobs $(nproc) && yarn install RUN sed -i 's/{ headless: true }/{ headless: true, executablePath: "\/usr\/bin\/chromium-browser", args: ["--no-sandbox", "--disable-setuid-sandbox"] }/g' node_modules/mdpdf/src/index.js CMD ["bundle", "exec", "rake", "test"] @@ -4,6 +4,5 @@ set -e cd "$(dirname "$0")/.." -./bin/setup export PATH="./vendor/bats/bin:./bin:$PATH" bats --tap test |
