Skip to content

Commit

Permalink
Add CI Dockerfile
Browse files Browse the repository at this point in the history
The image will be updated manually in the case of the changes. Always
strict version of the Docker image is used.

#108
  • Loading branch information
extsoft committed Apr 30, 2018
1 parent 16d9542 commit ee454fc
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .rultor.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 7 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,10 @@ Use the following test name template - `'<command args>': <describe what will be
Use one of the following commands to run the unit tests:
- `bats src/test`
- `./run-tests`
- `docker run -t --rm -v $PWD:/src -w /src extsoft/rultor-runtime:r24b04p0g2 ./run-tests`
- `docker run -t --rm -v $PWD:/eg extsoft/elegant-git-ci:1 ./run-tests`

# CI
CI execution is automated using Docker. If some changes are required to the CI docker image, please follow next:
- update `Dockerfile` (including `version` and and `description`)
- `docker build -t extsoft/elegant-git-ci:<version> .`
- `docker push extsoft/elegant-git-ci:<version>`
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>" \
description="ruby:2.4.1 git:2.13.5 0pdd:0.20.3" \
version=1
WORKDIR /eg
3 changes: 2 additions & 1 deletion install.bash
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit ee454fc

Please sign in to comment.