-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
4c5f5ac
commit 8ca786e
Showing
7 changed files
with
68 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../container/.byebug_history |
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 alpine:latest | ||
MAINTAINER Gabriel de Oliveira <[email protected]> | ||
|
||
RUN set -euvxo pipefail\ | ||
&& apk upgrade --available --latest --no-cache\ | ||
&& apk add --no-cache\ | ||
g++\ | ||
git\ | ||
libffi-dev\ | ||
make\ | ||
ruby-dev\ | ||
ruby-irb\ | ||
&& gem update --clear-sources --no-document --system\ | ||
&& gem update --clear-sources --no-document\ | ||
&& gem install --clear-sources --no-document\ | ||
bundler\ | ||
io-console\ | ||
&& gem cleanup | ||
|
||
WORKDIR /opt/app | ||
|
||
COPY . . | ||
RUN set -euvxo pipefail\ | ||
&& mkdir ../container/\ | ||
&& mkdir ../container/coverage/\ | ||
&& mkdir ../container/pkg/\ | ||
&& mkdir ../container/tmp/\ | ||
&& bundle install --clean --no-cache --system\ | ||
&& bundle clean --force | ||
|
||
CMD ["/bin/ash"] |
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 @@ | ||
../container/Gemfile.lock |
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 @@ | ||
../container/coverage/ |
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,32 @@ | ||
version: "2" | ||
services: | ||
cli: | ||
extends: | ||
service: img | ||
extra_hosts: | ||
- docker_host:172.17.0.1 | ||
volumes: | ||
- ./:/opt/app/ | ||
coverage: | ||
command: ["bundle", "exec", "rake", "coverage:server"] | ||
extends: | ||
service: img | ||
ports: | ||
- 3000:3000 | ||
volumes: | ||
- coverage:/opt/app/coverage/ | ||
guard: | ||
command: ["bundle", "exec", "guard", "-i"] | ||
extends: | ||
service: cli | ||
img: | ||
build: ./ | ||
image: extensible | ||
test: | ||
command: ["bundle", "exec", "rake", "coverage"] | ||
extends: | ||
service: cli | ||
volumes: | ||
- coverage:/opt/app/coverage/ | ||
volumes: | ||
coverage: |
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 @@ | ||
../container/pkg/ |
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 @@ | ||
../container/tmp/ |