Skip to content

Commit

Permalink
refactor directory structure for docker automated build
Browse files Browse the repository at this point in the history
  • Loading branch information
Takuya Murakami committed Nov 19, 2018
1 parent e891b32 commit e326043
Show file tree
Hide file tree
Showing 16 changed files with 10 additions and 706 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
20 changes: 10 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,25 @@ all: api console both
#download:
# @./download.sh

update: api/Dockerfile console/Dockerfile both/Dockerfile
update: Dockerfile.api Dockerfile.console Dockerfile.both

api/Dockerfile: Dockerfile.in
@cat Dockerfile.in | sed "s/%%SERVER_TYPE%%/api/" > api/Dockerfile
Dockerfile.api: Dockerfile.in
@cat Dockerfile.in | sed "s/%%SERVER_TYPE%%/api/" > $@

console/Dockerfile: Dockerfile.in
@cat Dockerfile.in | sed "s/%%SERVER_TYPE%%/console/" > console/Dockerfile
Dockerfile.console: Dockerfile.in
@cat Dockerfile.in | sed "s/%%SERVER_TYPE%%/console/" > $@

both/Dockerfile: Dockerfile.in
@cat Dockerfile.in | sed "s/%%SERVER_TYPE%%/*/" > both/Dockerfile
Dockerfile.both: Dockerfile.in
@cat Dockerfile.in | sed "s/%%SERVER_TYPE%%/*/" > $@

api:
docker build -t $(NAME_API) -f api/Dockerfile .
docker build -t $(NAME_API) -f Dockerfile.api .

console:
docker build -t $(NAME_CONSOLE) -f console/Dockerfile .
docker build -t $(NAME_CONSOLE) -f Dockerfile.console .

both:
docker build -t $(NAME_BOTH) -f both/Dockerfile .
docker build -t $(NAME_BOTH) -f Dockerfile.both .

rmi:
docker rmi $(NAME_API) $(NAME_CONSOLE)
Expand Down
File renamed without changes.
91 changes: 0 additions & 91 deletions both/bootstrap.sh

This file was deleted.

11 changes: 0 additions & 11 deletions both/logback.template.properties

This file was deleted.

72 changes: 0 additions & 72 deletions both/properties.template.xml

This file was deleted.

174 changes: 0 additions & 174 deletions both/server.template.xml

This file was deleted.

Loading

0 comments on commit e326043

Please sign in to comment.