-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docker: Move files to the top directory.
This removes symlinks which are particularly troublesome on Win32 systems. This fixes #104
- Loading branch information
Showing
6 changed files
with
51 additions
and
62 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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,35 @@ | ||
export SPEC ?= spec | ||
SPEC_FILE = $(subst ../,, $(SPEC)) | ||
export RUBY_IMAGE ?= ruby:3.1.2-slim | ||
|
||
.PHONY: up | ||
up: | ||
docker-compose up | ||
|
||
.PHONY: down | ||
down: | ||
docker-compose down | ||
|
||
.PHONY: test | ||
test: rspec | ||
|
||
.PHONY: ssh | ||
ssh: | ||
docker-compose run lib bash | ||
|
||
.PHONY: install | ||
install: | ||
docker-compose run lib bin/setup | ||
|
||
.PHONY: console | ||
console: | ||
docker-compose run lib bin/console | ||
|
||
.PHONY: rspec | ||
rspec: | ||
docker-compose run lib bin/rspec ${SPEC_FILE} | ||
|
||
.PHONY: setup | ||
setup: | ||
docker-compose build --build-arg RUBY_IMAGE=${RUBY_IMAGE} | ||
docker-compose run lib bin/setup |
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 was deleted.
Oops, something went wrong.
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,14 @@ | ||
version: "3" | ||
|
||
services: | ||
lib: | ||
build: | ||
context: . | ||
dockerfile: ./Dockerfile | ||
|
||
volumes: | ||
- .:/workspace:z | ||
- bundle:/bundle:z | ||
|
||
volumes: | ||
bundle: |