Files
my-rook-config/images/cross-gnu/Makefile
T

30 lines
983 B
Makefile
Raw Normal View History

2017-06-02 13:38:04 -07:00
# Copyright 2016 The Rook Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
include ../image.mk
2017-06-11 13:38:08 -07:00
IMAGE = $(BUILD_REGISTRY)/cross-gnu-$(GOARCH)
2017-06-09 13:34:41 -07:00
IMAGES := $(IMAGE)
CACHE_IMAGES = $(IMAGES)
2017-06-02 13:38:04 -07:00
BASEIMAGE = $(BUILD_REGISTRY)/base-$(GOARCH)
TEMP := $(shell mktemp -d)
2017-06-15 12:09:09 -07:00
do.build:
2017-06-02 13:38:04 -07:00
@echo === docker build $(IMAGE)
@cp -a . $(TEMP)
@cd $(TEMP) && $(SED_CMD) 's|BASEIMAGE|$(BASEIMAGE)|g' Dockerfile
@docker build $(BUILD_ARGS) -t $(IMAGE) $(TEMP)
@rm -fr $(TEMP)