From 39acd6e3e52624e457c26b7dd60659b1fa1438d3 Mon Sep 17 00:00:00 2001 From: Danny Ben Shitrit Date: Wed, 20 Jul 2022 14:18:16 +0000 Subject: [PATCH 1/2] - Add docker release --- Dockerfile | 8 ++++++++ README.md | 8 +++++++- Runfile | 1 + 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d931155 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM dannyben/alpine-ruby + +ENV PS1 "\n\n>> completely \W \$ " +WORKDIR /app + +RUN gem install completely --version 0.4.3 + +ENTRYPOINT ["completely"] \ No newline at end of file diff --git a/README.md b/README.md index c46afcc..7590f6c 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,13 @@ or with homebrew: ```bash $ brew install brew-gem $ brew gem install completely -```` +``` + +oe with Docker: + +```bash +alias completely='docker run --rm -it --user $(id -u):$(id -g) --volume "$PWD:/app" dannyben/completely' +``` ## Using the `completely` command line diff --git a/Runfile b/Runfile index 160d168..40ea393 100644 --- a/Runfile +++ b/Runfile @@ -9,6 +9,7 @@ version Completely::VERSION RunfileTasks::RubyGems.all 'completely' RunfileTasks::Testing.rspec +RunfileTasks::Docker.all 'dannyben/completely', Completely::VERSION help "Run interactive console" action :console, :c do From 66cecbd9b2334b6a738a8b10d95831c933dbc854 Mon Sep 17 00:00:00 2001 From: Danny Ben Shitrit Date: Wed, 20 Jul 2022 14:19:29 +0000 Subject: [PATCH 2/2] typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7590f6c..16412bb 100644 --- a/README.md +++ b/README.md @@ -34,7 +34,7 @@ $ brew install brew-gem $ brew gem install completely ``` -oe with Docker: +or with Docker: ```bash alias completely='docker run --rm -it --user $(id -u):$(id -g) --volume "$PWD:/app" dannyben/completely'