toccatore 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile +16 -0
- data/Gemfile.lock +1 -1
- data/lib/toccatore/base.rb +1 -1
- data/lib/toccatore/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d2e82dd691c989d8ade4c0c52b07dd1d59103a3
|
4
|
+
data.tar.gz: 2d1bbdcf29fe0b83e583fc630714c13dcbef1187
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35c1a2fac3faff6158dd3d76e1b53881d277e5f11d68acd2afb7707b05831d212c6b6f39186685f69fd6a11325a11752723400935fddb991218c19f9a692cddc
|
7
|
+
data.tar.gz: f3bb6c228b2ef400f423fa211c71e00c03d803cd1b8ca3cd13be7f189211645d67dc9d1cd11ea4486877a798822a6a8cb3812dad137bfbcbdff5dd9d87d753b2
|
data/Dockerfile
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
FROM phusion/passenger-full:0.9.19
|
2
|
+
MAINTAINER Martin Fenner "mfenner@datacite.org"
|
3
|
+
|
4
|
+
ENV ACCESS_TOKEN=1
|
5
|
+
ENV PATH="/usr/local/rvm/gems/ruby-2.3.1/bin:${PATH}"
|
6
|
+
|
7
|
+
# Update installed APT packages, clean up APT when done.
|
8
|
+
RUN apt-get update && apt-get upgrade -y -o Dpkg::Options::="--force-confold" && \
|
9
|
+
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
10
|
+
|
11
|
+
# Install toccatore gem
|
12
|
+
RUN /sbin/setuser app gem install toccatore
|
13
|
+
|
14
|
+
#CMD ["/usr/local/rvm/gems/ruby-2.3.1/bin/toccatore", "--access_token", ${access_token}]
|
15
|
+
# CMD ["/sbin/my_init"]
|
16
|
+
CMD ["toccatore", "orcid_update"]
|
data/Gemfile.lock
CHANGED
data/lib/toccatore/base.rb
CHANGED
@@ -15,7 +15,7 @@ module Toccatore
|
|
15
15
|
# load ENV variables from container environment if json file exists
|
16
16
|
# see https://github.com/phusion/baseimage-docker#envvar_dumps
|
17
17
|
env_json_file = "/etc/container_environment.json"
|
18
|
-
if File.
|
18
|
+
if File.size?(env_json_file).to_i > 2
|
19
19
|
env_vars = JSON.parse(File.read(env_json_file))
|
20
20
|
env_vars.each { |k, v| ENV[k] = v }
|
21
21
|
end
|
data/lib/toccatore/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: toccatore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Fenner
|
@@ -247,6 +247,7 @@ files:
|
|
247
247
|
- ".gitignore"
|
248
248
|
- ".travis.yml"
|
249
249
|
- CHANGELOG.md
|
250
|
+
- Dockerfile
|
250
251
|
- Gemfile
|
251
252
|
- Gemfile.lock
|
252
253
|
- LICENSE.md
|