mirror of
https://github.com/openfaas/faas.git
synced 2025-06-29 02:03:24 +00:00
Initial work for ARMHF
This commit is contained in:
7
watchdog/Dockerfile.armhf
Normal file
7
watchdog/Dockerfile.armhf
Normal file
@ -0,0 +1,7 @@
|
||||
FROM alexellis2/go-armhf:1.7.4
|
||||
|
||||
RUN mkdir -p /go/src/app
|
||||
COPY main.go /go/src/app
|
||||
WORKDIR /go/src/app
|
||||
RUN go get -d -v
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .
|
13
watchdog/armhf.build.sh
Executable file
13
watchdog/armhf.build.sh
Executable file
@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Below makes use of "builder pattern" so that binary is extracted separate
|
||||
# from the golang runtime/SDK
|
||||
|
||||
echo Building alexellis2/faas-watchdog:build-armhf
|
||||
|
||||
docker build --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy \
|
||||
-t alexellis2/faas-watchdog:build-armhf . -f Dockerfile.armhf
|
||||
docker create --name buildoutput alexellis2/faas-watchdog:build-armhf echo
|
||||
docker cp buildoutput:/go/src/app/app ./fwatchdog
|
||||
docker rm buildoutput
|
||||
|
@ -5,6 +5,6 @@
|
||||
|
||||
docker build --build-arg https_proxy=$https_proxy --build-arg http_proxy=$http_proxy \
|
||||
-t alexellis2/faas-watchdog:build .
|
||||
docker create --name buildoutput alexellis2/faas-watchdog:build
|
||||
docker create --name buildoutput alexellis2/faas-watchdog:build echo
|
||||
docker cp buildoutput:/go/src/app/app ./fwatchdog
|
||||
docker rm buildoutput
|
||||
|
Reference in New Issue
Block a user