Merge pull request #240 from groggemans/fix/GH-239
fix: armv7 docker builds
This commit is contained in:
commit
96d13a56e5
@ -12,10 +12,11 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
ARG ARCH=amd64
|
|
||||||
|
|
||||||
FROM k8s.gcr.io/build-image/debian-base:buster-v1.6.0
|
FROM k8s.gcr.io/build-image/debian-base:buster-v1.6.0
|
||||||
|
|
||||||
|
# Architecture for bin folder
|
||||||
|
ARG ARCH
|
||||||
|
|
||||||
# Copy nfsplugin from build _output directory
|
# Copy nfsplugin from build _output directory
|
||||||
COPY bin/${ARCH}/nfsplugin /nfsplugin
|
COPY bin/${ARCH}/nfsplugin /nfsplugin
|
||||||
|
|
||||||
|
|||||||
2
Makefile
2
Makefile
@ -100,7 +100,7 @@ nfs:
|
|||||||
|
|
||||||
.PHONY: nfs-armv7
|
.PHONY: nfs-armv7
|
||||||
nfs-armv7:
|
nfs-armv7:
|
||||||
CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -a -ldflags "${LDFLAGS} ${EXT_LDFLAGS}" -mod vendor -o bin/arm/v7/nfsplugin ./cmd/nfsplugin
|
CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=7 go build -a -ldflags "${LDFLAGS} ${EXT_LDFLAGS}" -mod vendor -o bin/arm/v7/nfsplugin ./cmd/nfsplugin
|
||||||
|
|
||||||
.PHONY: container-build
|
.PHONY: container-build
|
||||||
container-build:
|
container-build:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user