Skip to content

Commit a49aa21

Browse files
author
Ben Visser
committed
adding build
1 parent abdbc67 commit a49aa21

File tree

4 files changed

+30
-2
lines changed

4 files changed

+30
-2
lines changed

Dockerfile renamed to Dockerfile.tmpl

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ruby:2.2.5
1+
FROM ruby:{{ .RUBY_VERSION }}
22
MAINTAINER iron.io
33

44
ARG DEBIAN_FRONTEND=noninteractive

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Rails(+ Nginx, Unicorn) Dockerfile
22

3+
[![CircleCI](https://circleci.com/gh/iron-io/rails-nginx-unicorn.svg?style=svg&circle-token=fc354275fd99b352c8f4055345a3fb1aae91139d)](https://circleci.com/gh/iron-io/rails-nginx-unicorn)
4+
35
Forked from https://github.com/seapy/dockerfiles/tree/master/rails-nginx-unicorn
46

57
Easy useable docker for rails. less configuration, affordable production.

build.sh

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
ruby_versions=(2.1.10 2.1.8 2.1.9 2.1 2.2.5 2.2 2.3.1 2.3)
4+
5+
for version in "${ruby_versions[@]}"; do
6+
export RUBY_VERSION=${version}
7+
echo $RUBY_VERSION
8+
gucci Dockerfile.tmpl > Dockerfile
9+
docker build -t iron/rails-nginx-unicorn:ruby${version} .
10+
docker push iron/rails-nginx-unicorn:ruby${version}
11+
rm Dockerfile
12+
done;
13+

circle.yml

+14-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
1-
# TODO
1+
machine:
2+
services:
3+
- docker
4+
checkout:
5+
post:
6+
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
7+
8+
dependencies:
9+
pre:
10+
- go get github.com/noqcks/gucci
11+
12+
test:
13+
override:
14+
- ./build.sh

0 commit comments

Comments
 (0)