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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 814456b5afb8f8bffaa719ca737e7e754b74e73d
4
- data.tar.gz: 3d7f8ff357806976c305fcbde53d82f1867f7ecf
3
+ metadata.gz: 7440e1173a0a4b6f88f6b1081336c03b6220b03d
4
+ data.tar.gz: 4e3e9cecc7a9369ae72574bc8b2e134fb7ac6557
5
5
  SHA512:
6
- metadata.gz: 5720260df738401459e6e8831398d6262fc16bfc3346dbc53b86e80680db01a957091e9a0f2eb6bbe04ac92bfb700cb431b5ab54ba98a63140039c7c4880c173
7
- data.tar.gz: 3ca69f9ea7a3bbd39f6366b475d7272590398b02f6f8f2ea44821f977d63d810abe849b7f63645fa1ba8c1f78be4ba8f0ba76d47556957a2363326aa424159d8
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')
@@ -1,3 +1,3 @@
1
1
  module StackCar
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
@@ -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 libpq-dev nodejs postgresql-client mysql-client pv libsasl2-dev
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.6
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-09 00:00:00.000000000 Z
11
+ date: 2017-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler