-
Notifications
You must be signed in to change notification settings - Fork 436
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
vitalie
committed
Apr 6, 2023
1 parent
67f1396
commit 5f52bac
Showing
7 changed files
with
35 additions
and
15 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 |
---|---|---|
@@ -1,27 +1,41 @@ | ||
FROM ruby:2.5.8 as builder | ||
WORKDIR /app | ||
|
||
ARG GITHUB_OAUTH_TOKEN=notset | ||
|
||
RUN gem update --silent --system 3.3.26 | ||
|
||
WORKDIR /app | ||
|
||
COPY .ruby-version Gemfile Gemfile.lock ./ | ||
|
||
RUN bundle install --frozen --deployment --without='development test' --clean | ||
|
||
COPY . . | ||
|
||
RUN git describe --always --dirty --tags | tee VERSION | ||
RUN git rev-parse --short HEAD | tee BUILD_SLUG_COMMIT | ||
RUN rm -rf .git | ||
RUN bundle install --frozen --deployment --without='development test' --clean | ||
|
||
RUN bundle exec rake assets:precompile GITHUB_OAUTH_TOKEN=$GITHUB_OAUTH_TOKEN | ||
RUN tar -cjf public.tar.bz2 public && rm -rf public | ||
|
||
|
||
FROM ruby:2.5.8-slim | ||
|
||
LABEL maintainer Travis CI GmbH <[email protected]> | ||
WORKDIR /app | ||
|
||
ENV TRAVIS_BUILD_DUMP_BACKTRACE true | ||
ENV PORT 4000 | ||
|
||
RUN gem update --silent --system 3.3.26 | ||
|
||
WORKDIR /app | ||
|
||
COPY --from=builder /app /app | ||
COPY --from=builder /usr/local/bundle/config /usr/local/bundle/config | ||
|
||
HEALTHCHECK --interval=5s CMD script/healthcheck | ||
EXPOSE 4000/tcp | ||
|
||
EXPOSE $PORT/tcp | ||
|
||
CMD ["script/server"] |
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 |
---|---|---|
|
@@ -271,5 +271,8 @@ DEPENDENCIES | |
travis-support! | ||
webmock | ||
|
||
RUBY VERSION | ||
ruby 2.5.8p224 | ||
|
||
BUNDLED WITH | ||
1.17.3 | ||
2.3.26 |
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,4 +1,3 @@ | ||
version: "2.1" | ||
services: | ||
web: | ||
build: | ||
|
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
require 'json' | ||
require 'logger' | ||
require 'tmpdir' | ||
require 'pathname' | ||
require 'date' | ||
|
||
|
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