-
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.
Changes for building Docker images in Circle CI as part of the CI pro…
…cess (#133)
- Loading branch information
1 parent
bd473b3
commit fe2409a
Showing
7 changed files
with
133 additions
and
19 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
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,25 @@ | ||
.DS_Store | ||
.bin | ||
.git | ||
.gitignore | ||
.bundleignore | ||
.bundle | ||
.byebug_history | ||
.rspec | ||
tmp | ||
log | ||
test | ||
config/deploy | ||
public/packs | ||
public/packs-test | ||
node_modules | ||
yarn-error.log | ||
coverage/ | ||
.env.* | ||
.idea | ||
.coveralls.yml | ||
.rubocop*.yml | ||
.ruby-gemset | ||
.ruby-version | ||
.dockerignore | ||
README.md |
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 +1 @@ | ||
5HBlnFxCyN2VCHbw/UQwGffIEupORPVLHdA83nc55+qDy/4dSsUPVizh3FImvs1iCYSKOF5Aunc+8gV7SBhVbH/2w+EZQvv4mc3HAP2PUBOSO93NsH75i4CG0C9yqxcZddnbHfjUg80LD45cvK0MmiSlg61C4ugT04QMbeDorWn/KSeg9aMaY4xPrcVwC6EwT6xd/6mqGDcMvtF+Go6LUgvNoloTfk6K/7axFR3mLXuuaV6BiaXhKOy1on/1YFaZMVEWEdXpgkfs/jWPyhzpd34EmALpsLc9xVFV+Jn+iXCdpdDsWDDmu+B2QVOvnjtRys+h8faipydpYvbTjgRxlzHYdT5f4lFnHlLVxZB1McxG4oaKGk5AdTLEj6MzjqyXKCoz47Q+rMv8qFQXMe3CEyGsE2RPuNjiqvEY--GTt38r7oSChXDpxc--qhTWdCWMHNlzPUyUaBgx+w== | ||
JTVpnHXV3OQlFfuihjFVPupKNEmemIM/b40kt5FgJsY0pz9ldvi1c6w4BS+Z1eQdbWMHQjz5runXZGohMO+mRxACwvATJnRtt5i5kN+P8gqCqSqUBCVRGt3d117Ly2tKm/DTSIoXvKMr6HMTv4HzdkyqJJ5uRVkCP26PrzPeP42axY2F3K3TtlPxIi3scLonZ1DJKpodPCSH0vDN8i7fiNfmUAKnPEdmwXdApO7aUcbRFHHPth/RUlLDt68akkn7EUwp1sAN9186SQLY8lyl8pFzZHQs60JUz6WpVjMY/XYZMCUrCkmPggbgXXHLvSDtD8wymcBBDQmcJr9XzxYL5lXEwtuE/YFRgZViIkOALPHi9gJv09Xpv3vzn1Xs1JwsXEkitAfrHeCzQd1WCI9VTKG2bhzVW4QDx4GD--RYt8JCyqZCRorDSX--K/ZHirOuRGrC3hYoDCAE/Q== |
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,26 +1,25 @@ | ||
FROM ruby:2.6.6-alpine3.11 | ||
RUN apk --update add build-base ncurses wkhtmltopdf xvfb xvfb-run nodejs postgresql postgresql-contrib sqlite-dev tzdata libxslt-dev libxml2-dev | ||
RUN apk --update add openssh-server | ||
RUN apk --update add mariadb-dev | ||
RUN apk --update --no-cache add build-base ncurses wkhtmltopdf xvfb xvfb-run nodejs yarn sqlite-dev tzdata libxslt-dev libxml2-dev | ||
RUN apk --update --no-cache add openssh-server mariadb-dev | ||
|
||
ARG RAILS_MASTER_KEY | ||
# Set Rails to run in production | ||
ENV RAILS_ENV='production' | ||
ENV RACK_ENV='production' | ||
ENV RAILS_ENV='production' | ||
ENV TREATMENT_DATABASE_ADAPTER='mysql2' | ||
|
||
ENV RAILS_ROOT /var/www/treatment_app | ||
RUN mkdir -p $RAILS_ROOT | ||
|
||
WORKDIR $RAILS_ROOT | ||
COPY scripts/wkhtmltopdf.sh /usr/local/bin/ | ||
RUN chmod +x /usr/local/bin/wkhtmltopdf.sh | ||
COPY Gemfile* ./ | ||
RUN gem install bundler && bundle install --jobs 20 --retry 5 --without development test | ||
RUN gem install bundler && bundle config set --local without 'development test' && bundle install --no-cache --jobs 20 --retry 5 | ||
|
||
COPY . ./ | ||
# Precompile Rails assets. | ||
RUN bundle exec rake assets:precompile | ||
|
||
RUN RAILS_MASTER_KEY=$RAILS_MASTER_KEY bundle exec rake assets:precompile | ||
RUN mkdir -p $RAILS_ROOT/tmp/puma | ||
EXPOSE 3000 | ||
|
||
# ENTRYPOINT ["bundle", "exec"] | ||
# CMD ["rails", "server", "-b", "0.0.0.0"] | ||
CMD ["bundle", "exec", "puma", "-C", "config/puma.rb"] |