Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Update with manifest commands.
James Cole492c11784b7f
diff --git a/.deploy/docker/build-generic.sh b/.deploy/docker/build-generic.shindex 83cd672e2c..ede14570c8 100755--- a/.deploy/docker/build-generic.sh+++ b/.deploy/docker/build-generic.sh@@ -4,7 +4,7 @@echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin# get qemu-arm-static binary-if [ "$TRAVIS_BRANCH" != "amd64" ]; then+if [ "$TRAVIS_BRANCH" == "arm" ]; thenmkdir tmppushd tmp && \curl -L -o qemu-arm-static.tar.gz https://github.com/multiarch/qemu-user-static/releases/download/v2.6.0/qemu-arm-static.tar.gz && \@@ -15,15 +15,14 @@ fi# build developif [ "$TRAVIS_BRANCH" == "develop" ]; thenecho "Build develop $ARCH"- # > original command. docker build -t whoami --build-arg "arch=$ARCH" .- docker build -t jc5x/firefly-iii:develop-$ARCH -f Dockerfile.$ARCH --build-arg "arch=$ARCH" .- #docker push jc5x/firefly-iii:develop+ docker build -t jc5x/firefly-iii:develop-$ARCH -f Dockerfile.$ARCH .+ docker push jc5x/firefly-iii:develop-$ARCHfi-#if [ "$TRAVIS_BRANCH" == "master" ]; then-# echo "Build master amd64"-# docker build -t jc5x/firefly-iii:latest-amd -f Dockerfile .-# docker tag jc5x/firefly-iii:latest-amd jc5x/firefly-iii:release-$VERSION-amd-# docker push jc5x/firefly-iii:latest-amd-# docker push jc5x/firefly-iii:release-$VERSION-amd-#fi\ No newline at end of file+if [ "$TRAVIS_BRANCH" == "master" ]; then+ echo "Build master $ARCH"+ docker build -t jc5x/firefly-iii:latest-$ARCH -f Dockerfile.$ARCH .+ docker tag jc5x/firefly-iii:latest-$ARCH jc5x/firefly-iii:release-$VERSION-$ARCH+ docker push jc5x/firefly-iii:latest-$ARCH+ docker push jc5x/firefly-iii:release-$VERSION-$ARCH+fi\ No newline at end of filediff --git a/.deploy/docker/entrypoint.sh b/.deploy/docker/entrypoint.shindex 326d932e26..f5978beb77 100755--- a/.deploy/docker/entrypoint.sh+++ b/.deploy/docker/entrypoint.sh@@ -2,6 +2,8 @@echo "Now in entrypoint.sh for Firefly III"+lscpu+# make sure the correct directories exists (suggested by @chrif):echo "Making directories..."mkdir -p $FIREFLY_PATH/storage/app/publicdiff --git a/.deploy/docker/manifest.sh b/.deploy/docker/manifest.shindex 7e7d9b0abb..f67bf4792f 100755--- a/.deploy/docker/manifest.sh+++ b/.deploy/docker/manifest.sh@@ -1,12 +1,9 @@#!/usr/bin/env bash-# Disabled until I can figure out how this works in Travis.-exit 0-if [ "$TRAVIS_BRANCH" == "develop" ]; thenTARGET=jc5x/firefly-iii:developARM=jc5x/firefly-iii:develop-arm- AMD=jc5x/firefly-iii:develop-amd+ AMD=jc5x/firefly-iii:develop-amd64docker manifest create $TARGET $AMD $ARMdocker manifest annotate $TARGET $ARM --arch arm --os linux@@ -19,7 +16,7 @@ echo "The version is $VERSION"if [ "$TRAVIS_BRANCH" == "master" ]; thenTARGET=jc5x/firefly-iii:latestARM=jc5x/firefly-iii:latest-arm- AMD=jc5x/firefly-iii:latest-amd+ AMD=jc5x/firefly-iii:latest-amd64docker manifest create $TARGET $AMD $ARMdocker manifest annotate $TARGET $ARM --arch arm --os linux@@ -29,7 +26,7 @@ if [ "$TRAVIS_BRANCH" == "master" ]; then# and another one for version specific:TARGET=jc5x/firefly-iii:release-$VERSIONARM=jc5x/firefly-iii:release-$VERSION-arm- AMD=jc5x/firefly-iii:release-$VERSION-amd+ AMD=jc5x/firefly-iii:release-$VERSION-amd64docker manifest create $TARGET $AMD $ARMdocker manifest annotate $TARGET $ARM --arch arm --os linuxdiff --git a/.travis.yml b/.travis.ymlindex edc0dea906..6444c709df 100644--- a/.travis.yml+++ b/.travis.yml@@ -1,8 +1,10 @@sudo: requiredenv:+ global:+ - VERSION=4.7.11matrix:- ARCH=arm- - ARCH=arm64+ #- ARCH=arm64- ARCH=amd64dist: xenialdiff --git a/Dockerfile.amd64 b/Dockerfile.amd64index c056613149..4b27c86669 100644--- a/Dockerfile.amd64+++ b/Dockerfile.amd64@@ -1,5 +1,5 @@FROM php:7.2-apache-+ARG ARCHENV FIREFLY_PATH=/var/www/firefly-iii COMPOSER_ALLOW_SUPERUSER=1LABEL version="1.3" maintainer="[email protected]"diff --git a/Dockerfile.arm b/Dockerfile.armindex cfe6e0ad31..3860b358af 100644--- a/Dockerfile.arm+++ b/Dockerfile.arm@@ -1,5 +1,5 @@FROM arm32v7/php:7.2.8-apache-stretch-ARG TARGETPLATFORM+ARG ARCHCOPY tmp/qemu-arm-static /usr/bin/qemu-arm-staticENV FIREFLY_PATH=/var/www/firefly-iii COMPOSER_ALLOW_SUPERUSER=1LABEL version="1.3" maintainer="[email protected]"diff --git a/Dockerfile.arm64 b/Dockerfile.arm64index cfe6e0ad31..3860b358af 100644--- a/Dockerfile.arm64+++ b/Dockerfile.arm64@@ -1,5 +1,5 @@FROM arm32v7/php:7.2.8-apache-stretch-ARG TARGETPLATFORM+ARG ARCHCOPY tmp/qemu-arm-static /usr/bin/qemu-arm-staticENV FIREFLY_PATH=/var/www/firefly-iii COMPOSER_ALLOW_SUPERUSER=1LABEL version="1.3" maintainer="[email protected]"