-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker and AWS CloudFormation support
bitcoind config: * prune=2000 minimum prune size * 4 to account for SegWit * maxuploadtarget=300 keep upload cost below $1 / month, but maintain reasonable karma if blocks avg < 2 MB month (although in practice pruned nodes don't upload much) * peerbloomfilters=0 Ain't got time for BIP-37
- Loading branch information
Showing
18 changed files
with
739 additions
and
31 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,38 @@ | ||
FROM starefossen/ruby-node:2-8 | ||
|
||
RUN mkdir /matreon | ||
WORKDIR /matreon | ||
|
||
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev --no-install-recommends && rm -rf /var/lib/apt/lists/* | ||
|
||
ENV RAILS_ENV production | ||
ENV RAILS_SERVE_STATIC_FILES true | ||
ENV RAILS_LOG_TO_STDOUT true | ||
|
||
COPY Gemfile /matreon/ | ||
COPY Gemfile.lock /matreon/ | ||
RUN bundle config --global frozen 1 | ||
RUN bundle install --without development test | ||
|
||
ENV NODE_ENV production | ||
|
||
COPY package.json /matreon/package.json | ||
COPY yarn.lock /matreon/yarn.lock | ||
RUN yarn install | ||
|
||
COPY Procfile Rakefile config.ru .babelrc .postcssrc.yml /matreon/ | ||
COPY config /matreon/config | ||
COPY db /matreon/db | ||
COPY vendor /matreon/vendor | ||
COPY app /matreon/app | ||
COPY bin /matreon/bin | ||
COPY lib /matreon/lib | ||
|
||
COPY public /matreon/public | ||
RUN rm -rf public/assets public/packs | ||
|
||
ENV DEVISE_SECRET_KEY ${DEVISE_SECRET_KEY} | ||
RUN bundle exec rake assets:precompile | ||
|
||
EXPOSE 3000 | ||
CMD bundle exec puma -C config/puma.rb |
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
Oops, something went wrong.