-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dd6e792
commit 2485320
Showing
98 changed files
with
437 additions
and
15,276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
reports |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,21 @@ | ||
FROM ruby:2.4 | ||
FROM ruby:2.5.5 | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y cmake && \ | ||
apt-get install -y libxslt-dev && \ | ||
apt-get install -y libxml2-dev && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y locales && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
#Set the locale | ||
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \ | ||
echo 'LANG="en_US.UTF-8"'>/etc/default/locale && \ | ||
dpkg-reconfigure --frontend=noninteractive locales && \ | ||
update-locale LANG=en_US.UTF-8 | ||
|
||
ENV LANG en_US.UTF-8 | ||
ENV LANGUAGE en_US:en | ||
ENV LC_ALL en_US.UTF-8 | ||
|
||
#This istalls a patched version of wkhtmltopdf that allows it to run headless without configuration | ||
RUN mkdir -p /var/lib/wkhtml | ||
|
||
WORKDIR /var/lib/wkhtml | ||
RUN wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.3/wkhtmltox-0.12.3_linux-generic-amd64.tar.xz && \ | ||
tar -xvf wkhtmltox-0.12.3_linux-generic-amd64.tar.xz && \ | ||
rm wkhtmltox-0.12.3_linux-generic-amd64.tar.xz && \ | ||
ln -sf /var/lib/wkhtml/wkhtmltox/bin/wkhtmltopdf /usr/bin/wkhtmltopdf | ||
|
||
RUN bundle config --global frozen 1 | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN mkdir -p /usr/src/app | ||
WORKDIR /usr/src/app | ||
|
||
COPY Gemfile /usr/src/app/ | ||
COPY Gemfile.lock /usr/src/app/ | ||
|
||
#Ruby knows best how to install this particular version of PAC | ||
#This means that this dockerfile can build any version of PAC. | ||
RUN bundle install --without=test_gems | ||
|
||
COPY . /usr/src/app | ||
|
||
RUN ln -s /usr/src/app/pac.rb /usr/bin/pac | ||
#Ruby knows best how to install this particular version of PAC CLI | ||
RUN rake install | ||
|
||
VOLUME ["/data"] | ||
WORKDIR /data | ||
|
||
COPY entrypoint.sh /usr/local/bin/entrypoint.sh | ||
|
||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] | ||
|
||
CMD ["pac"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,3 @@ | ||
source "https://rubygems.org" | ||
#pdfkit and kramdown reqires sudo apt-get install wkhtmltopdf on the machines | ||
gem 'mercurial-ruby', :require => false | ||
gem 'pdfkit' | ||
gem 'rake' | ||
gem 'rugged', '~> 0.24.0' | ||
gem 'trac4r', :require => false | ||
gem 'docopt' | ||
gem 'ruby-fogbugz', :require => false | ||
gem 'flexmock' | ||
gem 'zip' | ||
gem 'liquid' | ||
gem 'xml-simple', '~> 1.1', '>= 1.1.5' | ||
gem 'simplecov' | ||
gem 'simplecov-rcov' | ||
gem 'ci_reporter_test_unit' | ||
gem 'rspec' | ||
gem 'xmlrpc' | ||
source 'http://rubygems.org' | ||
|
||
gemspec |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.