-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enable arm support for travis builds
Signed-off-by: prateekpandey14 <[email protected]>
- Loading branch information
1 parent
6bc7c5e
commit 75d0f4e
Showing
4 changed files
with
66 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,9 @@ language: go | |
go: | ||
- 1.12.10 | ||
|
||
arch: | ||
- amd64 | ||
- arm64 | ||
addons: | ||
apt: | ||
update: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#Make the base image configurable. If BASE IMAGES is not provided | ||
#docker command will fail | ||
#ARG BASE_IMAGE=arm64v8/alpine | ||
#FROM $BASE_IMAGE | ||
FROM arm64v8/alpine | ||
|
||
RUN apk add --no-cache \ | ||
iproute2 \ | ||
bash \ | ||
curl \ | ||
net-tools \ | ||
mii-tool \ | ||
procps \ | ||
libc6-compat \ | ||
ca-certificates | ||
|
||
COPY cvc-operator /usr/local/bin/cvc-operator | ||
|
||
ARG BUILD_DATE | ||
LABEL org.label-schema.name="cvc-operator" | ||
LABEL org.label-schema.description="Operator for OpenEBS cStor csi volumes" | ||
LABEL org.label-schema.url="http://www.openebs.io/" | ||
LABEL org.label-schema.vcs-url="https://github.com/openebs/maya" | ||
LABEL org.label-schema.schema-version="1.0" | ||
LABEL org.label-schema.build-date=$BUILD_DATE | ||
|
||
ENTRYPOINT ["/usr/local/bin/cvc-operator"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Specify the name of the docker repo for amd64 | ||
CVC_OPERATOR?=cvc-operator | ||
# Specify the name of the docker repo for amd64 | ||
CVC_OPERATOR_REPO_NAME?=cvc-operator | ||
|
||
# Specify the name of the docker repo for arm64 | ||
CVC_OPERATOR_REPO_NAME_ARM64?=cvc-operator-arm64 | ||
|
||
.PHONY: cvc-operator-image | ||
cvc-operator-image: | ||
@echo "----------------------------" | ||
@echo -n "--> cvc-operator image " | ||
@echo "${HUB_USER}/${CVC_OPERATOR_REPO_NAME}:${IMAGE_TAG}" | ||
@echo "----------------------------" | ||
@PNAME=${CVC_OPERATOR} CTLNAME=${CVC_OPERATOR} sh -c "'$(PWD)/buildscripts/build.sh'" | ||
@cp bin/${CVC_OPERATOR}/${CVC_OPERATOR} buildscripts/cvc-operator/ | ||
@cd buildscripts/${CVC_OPERATOR} && sudo docker build -t ${HUB_USER}/${CVC_OPERATOR_REPO_NAME}:${IMAGE_TAG} --build-arg BUILD_DATE=${BUILD_DATE} . | ||
@rm buildscripts/${CVC_OPERATOR}/${CVC_OPERATOR} | ||
|
||
.PHONY: cvc-operator-image.arm64 | ||
cvc-operator-image.arm64: | ||
@echo "----------------------------" | ||
@echo -n "--> arm64 based cstor-volume-mgmt image " | ||
@echo "${HUB_USER}/${CVC_OPERATOR_REPO_NAME}:${IMAGE_TAG}" | ||
@echo "----------------------------" | ||
@PNAME=${CVC_OPERATOR} CTLNAME=${CVC_OPERATOR} sh -c "'$(PWD)/buildscripts/build.sh'" | ||
@cp bin/${CVC_OPERATOR}/${CVC_OPERATOR} buildscripts/cvc-operator/ | ||
@cd buildscripts/${CVC_OPERATOR} && sudo docker build -t ${HUB_USER}/${CSTOR_VOLUME_MGMT_REPO_NAME_ARM64}:${IMAGE_TAG} -f Dockerfile.arm64 --build-arg BUILD_DATE=${BUILD_DATE} . | ||
@rm buildscripts/${CVC_OPERATOR}/${CVC_OPERATOR} | ||
|
||
|