-
-
Notifications
You must be signed in to change notification settings - Fork 359
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add docker instructions for development
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 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,31 @@ | ||
FROM ruby:2.6.5-alpine | ||
|
||
RUN apk add --no-cache \ | ||
ca-certificates \ | ||
wget \ | ||
openssl \ | ||
bash \ | ||
build-base \ | ||
git \ | ||
sqlite-dev \ | ||
tzdata \ | ||
tini | ||
|
||
ENV LANG en_US.UTF-8 | ||
ENV LANGUAGE en_US:en | ||
ENV LC_ALL en_US.UTF-8 | ||
|
||
ENV BUNDLER_VERSION 2.1.4 | ||
RUN gem install bundler -v ${BUNDLER_VERSION} -i /usr/local/lib/ruby/gems/$(ls /usr/local/lib/ruby/gems) --force | ||
|
||
WORKDIR /srv | ||
|
||
COPY Gemfile restforce.gemspec /srv/ | ||
COPY lib/restforce/version.rb /srv/lib/restforce/version.rb | ||
|
||
RUN bundle install | ||
|
||
COPY . /srv/ | ||
|
||
ENTRYPOINT ["/sbin/tini", "-g", "--", "bundle", "exec"] | ||
CMD ["rspec"] |
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,7 @@ | ||
version: "3.6" | ||
services: | ||
restforce: | ||
build: . | ||
image: restforce:dev | ||
volumes: | ||
- .:/srv |