-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update ruby to 3.1.1 * update CircleCI * update Docker
- Loading branch information
1 parent
36fddb0
commit 4cd8c91
Showing
21 changed files
with
809 additions
and
524 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 |
---|---|---|
|
@@ -28,3 +28,6 @@ [email protected] | |
TOUCHPOINTS_SUPPORT=[email protected] | ||
TOUCHPOINTS_TEAM=[email protected] | ||
TOUCHPOINTS_WEB_DOMAIN=127.0.0.1 | ||
|
||
DATABASE_CLEANER_ALLOW_REMOTE_DATABASE_URL=true | ||
|
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,34 +1,20 @@ | ||
# gets the docker image of ruby 2.5 and lets us build on top of that | ||
FROM ruby:2.6.5-slim | ||
FROM ruby:3.1.1-slim | ||
|
||
# install rails dependencies | ||
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs postgresql-client && apt-get install -y git | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
libpq-dev \ | ||
postgresql-client \ | ||
nodejs \ | ||
git \ | ||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | ||
|
||
# create a folder /FlexUOMConverter in the docker container and go into that folder | ||
RUN mkdir /touchpoints | ||
WORKDIR /touchpoints | ||
RUN gem update --system | ||
RUN gem install bundler:2.3.8 | ||
|
||
# Copy the Gemfile and Gemfile.lock from app root directory into the /myapp/ folder in the docker container | ||
COPY Gemfile /touchpoints/Gemfile | ||
WORKDIR /usr/src/app | ||
|
||
# Run bundle install to install gems inside the gemfile | ||
RUN bundle install | ||
ENTRYPOINT ["./entrypoint.sh"] | ||
|
||
EXPOSE 3002 | ||
|
||
# Copy the whole app | ||
COPY . /touchpoints | ||
|
||
RUN cd /touchpoints | ||
|
||
# Expose port 3000 to the Docker host, so we can access it | ||
# from the outside. | ||
EXPOSE 3000 | ||
|
||
# Configure an entry point, so we don't need to specify | ||
# "bundle exec" for each of our commands. | ||
ENTRYPOINT ["bundle", "exec"] | ||
|
||
# The main command to run when the container starts. Also | ||
# tell the Rails dev server to bind to all interfaces by | ||
# default. | ||
CMD ["rails", "server", "-b", "0.0.0.0"] | ||
CMD ["bundle", "exec", "rails", "s", "-b", "0.0.0.0"] |
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.