From ee454fc8ec294cca3e9e27b455e7e95a70af59ef Mon Sep 17 00:00:00 2001 From: Dmytro Serdiuk Date: Sun, 29 Apr 2018 23:07:39 +0300 Subject: [PATCH] Add CI Dockerfile The image will be updated manually in the case of the changes. Always strict version of the Docker image is used. #108 --- .rultor.yml | 2 +- .travis.yml | 2 +- CONTRIBUTING.md | 8 +++++++- Dockerfile | 9 +++++++++ install.bash | 3 ++- 5 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 Dockerfile diff --git a/.rultor.yml b/.rultor.yml index 3c1e152..e31e752 100644 --- a/.rultor.yml +++ b/.rultor.yml @@ -1,6 +1,6 @@ architect: extsoft docker: - image: extsoft/rultor-runtime:r24b04p0g2 + image: extsoft/elegant-git-ci:1 as_root: true merge: fast-forward: only diff --git a/.travis.yml b/.travis.yml index c2ccb2f..e36495e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ sudo: required language: bash services: docker -script: docker run -t --rm -v $PWD:/src -w /src extsoft/rultor-runtime:r24b04p0g2 ./run-tests +script: docker run -t --rm -v $PWD:/eg extsoft/elegant-git-ci:1 ./run-tests notifications: email: false diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index d0b7d46..af02b8f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -36,4 +36,10 @@ Use the following test name template - `'': .` +- `docker push extsoft/elegant-git-ci:` \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..93d5a50 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM ruby:2.4.1-alpine3.6 +RUN apk update && \ + apk upgrade && \ + apk add --no-cache bats=0.4.0-r2 build-base libffi-dev ncurses git && \ + gem install pdd +LABEL maintainer="Dmytro Serdiuk " \ + description="ruby:2.4.1 git:2.13.5 0pdd:0.20.3" \ + version=1 +WORKDIR /eg diff --git a/install.bash b/install.bash index e20c2e3..a9cf3af 100755 --- a/install.bash +++ b/install.bash @@ -1,4 +1,5 @@ -#!/usr/bin/env bash -e +#!/usr/bin/env bash +set -e [ -z "$INSTALL_PATH" ] && INSTALL_PATH="$HOME/.git-elegant" [ -z "$REPO_HOME" ] && REPO_HOME="https://github.com/extsoft/elegant-git.git"