From 7fed3de5dc0d24510aece944025b96d30d403a09 Mon Sep 17 00:00:00 2001 From: Dan Jones Date: Tue, 14 Sep 2021 10:22:42 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Replace=20docker=20with=20podman?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 61564f7..2de17e6 100644 --- a/Makefile +++ b/Makefile @@ -7,20 +7,20 @@ IMAGE=danjones000/danielrayjones/ruby-with-bundler:1.0.0 all: serve Gemfile.lock: - docker run -u $(shell id -u) --rm -v $(shell pwd):/app -w /app ruby:2.6.3 sh -c 'gem install bundler:2.0.2 && bundle install' + podman run --rm -v $(shell pwd):/app -w /app ruby:2.6.3 sh -c 'gem install bundler:2.0.2 && bundle install' .image: Gemfile.lock - docker build -t $(IMAGE) . - docker image inspect $(IMAGE) | jq -r '.[0].Id' | tee .image + podman build -t $(IMAGE) . + podman image inspect $(IMAGE) | jq -r '.[0].Id' | tee .image _config.local.yml: touch $@ _site/index.html: .image _config.local.yml - docker run -u $(shell id -u) --rm -v $(shell pwd):/app -w /app $(IMAGE) bundle exec jekyll build -c '_config.yml,_config.local.yml' + podman run --rm -v $(shell pwd):/app:rw -w /app $(IMAGE) bundle exec jekyll build -c '_config.yml,_config.local.yml' serve: _site/index.html - docker run --rm -it -v $(shell pwd):/app -w /app -p $(PORT):$(PORT) $(IMAGE) bundle exec jekyll serve -H 0.0.0.0 -P "$(PORT)" -c '_config.yml,_config.local.yml' + podman run --rm -it -v $(shell pwd):/app -w /app -p $(PORT):$(PORT) $(IMAGE) bundle exec jekyll serve -H 0.0.0.0 -P "$(PORT)" -c '_config.yml,_config.local.yml' clean: rm -rf _site