kore-docker

Official Kore Dockerfiles
Commits | Files | Refs | README | git clone

commit 445e5cfb90ec4b48307d81d1fb54df144e566098
parent 91d8554d1db579826abd4b315d13506564df1524
Author: Joris Vink <joris@coders.se>
Date:   Sat, 10 Jul 2021 09:58:24 +0200

update build scripts and README

Diffstat:
README.md | 4++--
build.sh | 25+++++++++++++++----------
2 files changed, 17 insertions(+), 12 deletions(-)

diff --git a/README.md b/README.md @@ -28,14 +28,14 @@ While doing so it is important you set the workdir to the name of your application so kodev build will correctly pickup the configuration. -The kore/kodev container has 2 tags, amd64 and arm64. +The kore/kodev container has 2 tags, kodev-amd64 and kodev-arm64. Building an application: ``` $ docker run -it --rm \ -v `pwd`:/myapp \ - -w /myapp kore/kodev:arm64 build + -w /myapp kore/kodev:kodev-arm64 build ``` ## ACME diff --git a/build.sh b/build.sh @@ -1,24 +1,29 @@ #!/bin/sh +set -e + if [ $# -ne 1 ]; then echo "Usage: build.sh <dir>" exit 1 fi IMAGE=$1 +REPO=kore -set -e +if [ "$IMAGE" = "kodev" ]; then + REPO=kodev +fi -docker build -t kore/kore:$IMAGE-amd64 --platform linux/amd64 $IMAGE -docker push kore/kore:$IMAGE-amd64 +docker build -t kore/$REPO:$IMAGE-amd64 --platform linux/amd64 $IMAGE +docker push kore/$REPO:$IMAGE-amd64 -docker build -t kore/kore:$IMAGE-arm64 $IMAGE -docker push kore/kore:$IMAGE-arm64 +docker build -t kore/$REPO:$IMAGE-arm64 $IMAGE +docker push kore/$REPO:$IMAGE-arm64 -docker manifest rm kore/kore:$IMAGE +docker manifest rm kore/$REPO:$IMAGE -docker manifest create kore/kore:$IMAGE \ - --amend kore/kore:$IMAGE-arm64 \ - --amend kore/kore:$IMAGE-amd64 +docker manifest create kore/$REPO:$IMAGE \ + --amend kore/$REPO:$IMAGE-arm64 \ + --amend kore/$REPO:$IMAGE-amd64 -docker manifest push kore/kore:$IMAGE +docker manifest push kore/$REPO:$IMAGE