stack_car 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/stack_car/cli.rb +2 -0
- data/lib/stack_car/version.rb +1 -1
- data/templates/Dockerfile.erb +14 -3
- data/templates/docker-compose.yml.erb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7440e1173a0a4b6f88f6b1081336c03b6220b03d
|
4
|
+
data.tar.gz: 4e3e9cecc7a9369ae72574bc8b2e134fb7ac6557
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da10f5b99a0fb4b1729738f61ef5fd7c2c2eda731f7ce08889996889a9217e23ba557514bd81f395cf730e7407857ce70f35f08b765663c942b033f8ecdadc04
|
7
|
+
data.tar.gz: 6480d5c93fbdb063e2cb72f1a6df26dc849cd245e18052cf97df244ed2c480a90c20462b9ee1f6ccadb872a953359eaee8740ae105c03be49fde1a107530a911
|
data/lib/stack_car/cli.rb
CHANGED
@@ -48,6 +48,7 @@ module StackCar
|
|
48
48
|
method_option :postgres, default: false, type: :boolean, aliases: '-p'
|
49
49
|
method_option :mysql, default: false, type: :boolean, aliases: '-m'
|
50
50
|
method_option :redis, default: false, type: :boolean, aliases: '-r'
|
51
|
+
method_option :fcrepo, default: false, type: :boolean, aliases: '-f'
|
51
52
|
method_option :sidekiq, default: false, type: :boolean, aliases: '-sq' # TODO
|
52
53
|
method_option :mongodb, default: false, type: :boolean, aliases: '-mg' # TODO
|
53
54
|
desc 'dockerize DIR', 'Will copy the docker tempates in to your project, see options for supported dependencies'
|
@@ -65,6 +66,7 @@ module StackCar
|
|
65
66
|
db_libs = []
|
66
67
|
db_libs << "libpq-dev postgresql-client" if options[:postgres]
|
67
68
|
db_libs << "mysql-client" if options[:mysql]
|
69
|
+
db_libs << "libc6-dev libreoffice imagemagick unzip" if options[:fcrepo]
|
68
70
|
db_libs = db_libs.join(' ')
|
69
71
|
|
70
72
|
template_path = File.join(File.dirname(__FILE__), '..', '..', 'templates')
|
data/lib/stack_car/version.rb
CHANGED
data/templates/Dockerfile.erb
CHANGED
@@ -1,16 +1,27 @@
|
|
1
1
|
FROM ruby:2.3.0
|
2
2
|
|
3
|
-
RUN apt-get update -qq && apt-get install -y build-essential
|
3
|
+
RUN apt-get update -qq && apt-get install -y build-essential nodejs pv libsasl2-dev <%= db_libs %> && \
|
4
|
+
apt-get clean && \
|
5
|
+
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && \
|
4
6
|
|
7
|
+
<% if options[:fcrepo] %>
|
8
|
+
RUN mkdir -p /opt/fits && \
|
9
|
+
curl -fSL -o /opt/fits-0.8.5.zip http://projects.iq.harvard.edu/files/fits/files/fits-0.8.5.zip && \
|
10
|
+
cd /opt && \
|
11
|
+
unzip fits-0.8.5.zip && \
|
12
|
+
chmod +x fits-0.8.5/fits.sh
|
13
|
+
|
14
|
+
<% end -i%>
|
5
15
|
ENV APP_HOME /app
|
6
16
|
|
7
17
|
RUN mkdir $APP_HOME
|
8
18
|
WORKDIR $APP_HOME
|
9
19
|
|
20
|
+
VOLUME /bundle
|
21
|
+
|
10
22
|
ENV BUNDLE_GEMFILE=$APP_HOME/Gemfile \
|
11
23
|
BUNDLE_JOBS=2 \
|
12
24
|
BUNDLE_PATH=/bundle
|
25
|
+
|
13
26
|
ADD Gemfile* $APP_HOME/
|
14
27
|
RUN bundle install
|
15
|
-
|
16
|
-
|
@@ -50,6 +50,14 @@ services:
|
|
50
50
|
- '6379'
|
51
51
|
volumes:
|
52
52
|
- 'redis:/var/lib/redis/data'
|
53
|
+
<% end -%>
|
54
|
+
<% if options[:fcrepo] %>
|
55
|
+
fcrepo:
|
56
|
+
image: botimer/fcrepo:4.5.1
|
57
|
+
volumes:
|
58
|
+
- 'fcrepo:/opt/data'
|
59
|
+
ports:
|
60
|
+
- "8984:8080"
|
53
61
|
<% end -%>
|
54
62
|
web:
|
55
63
|
build: .
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stack_car
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rob Kaufman
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|