Skip to content

Commit

Permalink
[docker] [skycoin] refs #1190 Adds build file for docker cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
stdevMauricio committed May 5, 2018
1 parent d45b355 commit 40b9765
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,5 @@ skycoin-cli
# FIXME: see #1027 - Temporary solution to deal with generated file
include/libskycoin.h

# Do not ignore Docker Cloud build
!hooks/build
6 changes: 6 additions & 0 deletions hooks/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
docker build -f $DOCKERFILE_PATH -t $IMAGE_NAME .
docker build --build-arg=ARCH=arm --build-arg=GOARM= --build-arg=IMAGE_FROM="arm32v5/alpine" -f $DOCKERFILE_PATH -t $IMAGE_NAME-arm32v5 .
docker build --build-arg=ARCH=arm --build-arg=GOARM=6 --build-arg=IMAGE_FROM="arm32v6/alpine" -f $DOCKERFILE_PATH -t $IMAGE_NAME-arm32v6 .
docker build --build-arg=ARCH=arm --build-arg=GOARM=7 --build-arg=IMAGE_FROM="arm32v7/alpine" -f $DOCKERFILE_PATH -t $IMAGE_NAME-arm32v7 .
docker build --build-arg=ARCH=arm64 --build-arg=IMAGE_FROM="arm64v8/alpine" -f $DOCKERFILE_PATH -t $IMAGE_NAME-arm64v8 .

0 comments on commit 40b9765

Please sign in to comment.