Skip to content

Commit

Permalink
realpath for plugins directory
Browse files Browse the repository at this point in the history
Signed-off-by: Zuhayr Elahi <elahi.zuhayr@gmail.com>
  • Loading branch information
zelahi committed Sep 25, 2019
1 parent 940a297 commit c5b1aa8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion deb/Makefile
Expand Up @@ -2,6 +2,7 @@ include ../common.mk

CLI_DIR:=$(realpath $(CURDIR)/../../cli)
ENGINE_DIR:=$(realpath $(CURDIR)/../../engine)
PLUGINS_DIR:=$(realpath $(CURDIR)/../plugins)
GITCOMMIT?=$(shell cd $(CLI_DIR) && git rev-parse --short HEAD)
STATIC_VERSION:=$(shell ../static/gen-static-ver $(ENGINE_DIR) $(VERSION))
GO_BASE_IMAGE=golang
Expand Down Expand Up @@ -114,7 +115,7 @@ sources/engine-image:

sources/plugin-installers.tgz: $(wildcard ../plugins/*)
docker run --rm -i -w /v \
-v $(shell readlink -e ../plugins):/plugins \
-v $(PLUGINS_DIR):/plugins \
-v $(CURDIR)/sources:/v \
alpine \
tar -C / -c -z -f /v/plugin-installers.tgz --exclude .git plugins
3 changes: 2 additions & 1 deletion rpm/Makefile
Expand Up @@ -2,6 +2,7 @@ include ../common.mk

CLI_DIR:=$(realpath $(CURDIR)/../../cli)
ENGINE_DIR:=$(realpath $(CURDIR)/../../engine)
PLUGINS_DIR=$(realpath $(CURDIR)/../plugins)
GITCOMMIT=$(shell cd $(ENGINE_DIR) && git rev-parse --short HEAD)
STATIC_VERSION:=$(shell ../static/gen-static-ver $(ENGINE_DIR) $(VERSION))
GO_BASE_IMAGE=golang
Expand Down Expand Up @@ -114,7 +115,7 @@ rpmbuild/SOURCES/distribution_based_engine.json: rpmbuild/SOURCES/engine-image

rpmbuild/SOURCES/plugin-installers.tgz: $(wildcard ../plugins/*)
docker run --rm -i -w /v \
-v $(shell readlink -e ../plugins):/plugins \
-v $(PLUGINS_DIR):/plugins \
-v $(CURDIR)/rpmbuild/SOURCES:/v \
alpine \
tar -C / -c -z -f /v/plugin-installers.tgz --exclude .git plugins

0 comments on commit c5b1aa8

Please sign in to comment.