mirror of
https://github.com/submariner-io/submariner-charts.git
synced 2026-09-20 20:20:35 +00:00
Import Makefile.dapper downloaded from Shipyard
Instead of redefining the dapper file here, download it from Shiyard Also use the BASE_BRANCH env variable for the dapper file Signed-off-by: Mike Kolesnik <mkolesni@redhat.com>
This commit is contained in:
committed by
Daniel Farrell
parent
51975c6bc7
commit
50a2d3db29
@@ -2,3 +2,4 @@
|
||||
.idea
|
||||
.shflags
|
||||
*.tgz
|
||||
Makefile.dapper
|
||||
|
||||
+2
-1
@@ -1,4 +1,5 @@
|
||||
FROM quay.io/submariner/shipyard-dapper-base:devel
|
||||
ARG BASE_BRANCH
|
||||
FROM quay.io/submariner/shipyard-dapper-base:${BASE_BRANCH}
|
||||
|
||||
ARG DAPPER_HOST_ARCH
|
||||
ENV HOST_ARCH=${DAPPER_HOST_ARCH} ARCH=${DAPPER_HOST_ARCH} \
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
BASE_BRANCH ?= devel
|
||||
export BASE_BRANCH
|
||||
|
||||
ifneq (,$(DAPPER_HOST_ARCH))
|
||||
|
||||
# Running in Dapper
|
||||
@@ -54,9 +57,13 @@ else
|
||||
|
||||
# Not running in Dapper
|
||||
|
||||
Makefile.dapper:
|
||||
@echo Downloading $@
|
||||
@curl -sfLO https://raw.githubusercontent.com/submariner-io/shipyard/$(BASE_BRANCH)/$@
|
||||
|
||||
include Makefile.dapper
|
||||
|
||||
endif
|
||||
|
||||
# Disable rebuilding Makefile
|
||||
Makefile Makefile.dapper Makefile.inc: ;
|
||||
Makefile Makefile.inc: ;
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
# This Makefile contains the rules required to set up our
|
||||
# Dapper-based build environment; it can be copied as-is to
|
||||
# other projects (and needs to be copied, it can't be shared
|
||||
# via the Dapper image since it's needed to retrieve the image)
|
||||
|
||||
.dapper:
|
||||
@echo Downloading dapper
|
||||
@curl -sL https://releases.rancher.com/dapper/latest/dapper-`uname -s`-`uname -m` > .dapper.tmp
|
||||
@@chmod +x .dapper.tmp
|
||||
@./.dapper.tmp -v
|
||||
@mv .dapper.tmp .dapper
|
||||
|
||||
invoke_dapper = +./.dapper -m bind make -- $1
|
||||
|
||||
%: .dapper
|
||||
@echo Invoking Dapper, MAKEFLAGS=$(MAKEFLAGS)
|
||||
$(call invoke_dapper,$@)
|
||||
|
||||
# Ensure that files in the current directory don't hide Dapper targets
|
||||
$(wildcard [^M]*): .dapper
|
||||
$(call invoke_dapper,$@)
|
||||
|
||||
shell: .dapper
|
||||
./.dapper -m bind -s
|
||||
|
||||
.PHONY: shell $(wildcard [^M]*)
|
||||
Reference in New Issue
Block a user