From 429808949fe266c5c15dadc7a92387abb655a901 Mon Sep 17 00:00:00 2001 From: Khue Doan Date: Thu, 11 Mar 2021 01:43:34 +0700 Subject: [PATCH] Rename tools container and add Makefile --- Makefile | 6 +++++- {genesis/tools => tools}/Dockerfile | 0 tools/Makefile | 9 +++++++++ {genesis => tools}/README.md | 0 {genesis => tools}/docker-compose.yaml | 2 +- 5 files changed, 15 insertions(+), 2 deletions(-) rename {genesis/tools => tools}/Dockerfile (100%) create mode 100644 tools/Makefile rename {genesis => tools}/README.md (100%) rename {genesis => tools}/docker-compose.yaml (86%) diff --git a/Makefile b/Makefile index e0b02c27..cdc2eb21 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,10 @@ .POSIX: -all: metal infra apps +default: tools + +.PHONY: tools +tools: + make -C tools .PHONY: metal metal: diff --git a/genesis/tools/Dockerfile b/tools/Dockerfile similarity index 100% rename from genesis/tools/Dockerfile rename to tools/Dockerfile diff --git a/tools/Makefile b/tools/Makefile new file mode 100644 index 00000000..d57a9ddb --- /dev/null +++ b/tools/Makefile @@ -0,0 +1,9 @@ +.POSIX: + +default: build run + +build: + docker-compose build + +run: + docker-compose run --rm tools zsh diff --git a/genesis/README.md b/tools/README.md similarity index 100% rename from genesis/README.md rename to tools/README.md diff --git a/genesis/docker-compose.yaml b/tools/docker-compose.yaml similarity index 86% rename from genesis/docker-compose.yaml rename to tools/docker-compose.yaml index bc06fd78..d8e08154 100644 --- a/genesis/docker-compose.yaml +++ b/tools/docker-compose.yaml @@ -2,7 +2,7 @@ version: '3' services: tools: - build: ./tools + build: . volumes: - ..:/root/src - /var/run/docker.sock:/var/run/docker.sock