1
0

Switch to hledger-multiarch image

This commit is contained in:
Tony Grosinger 2022-07-22 17:23:39 -07:00
parent 736765561c
commit dfe32d9cc0
6 changed files with 1 additions and 62 deletions

View File

@ -16,9 +16,7 @@ services:
- "${LEDGER_DIR}:/data"
entrypoint: ["ledger-analytics", "-f", "/data/${LEDGER_FILE}"]
hledger:
# If you are running on ARM64, build the Dockerfile in this repo in the
# hledger directory.
image: "dastapov/hledger:1.26"
image: "ghcr.io/tgrosinger/hledger-multiarch:1.26.1"
ports:
- "${HLEDGER_PORT}:5000"
user: "1000"

View File

@ -1,10 +0,0 @@
FROM ubuntu:20.04
COPY bin/hledger /usr/local/bin/hledger
COPY bin/hledger-web /usr/local/bin/hledger-web
COPY start.sh /start.sh
ENV LC_ALL C.UTF-8
EXPOSE 5000 5001
CMD ["/start.sh"]

View File

@ -1,22 +0,0 @@
These binary files are built for aarch64 using the following steps. If you are
not on that architecture, you should use the official published image
`dastapov/hledger`.
They were last built at verion 1.26.1.
```bash
docker run -it --entrypoint bash ubuntu:20.04
# Then in the container...
apt update
apt install -y make curl libnuma1 build-essential libffi-dev libffi7 libgmp-dev libgmp10 libncurses-dev libncurses5 libtinfo5 zlib1g-dev
curl --proto '=https' --tlsv1.2 -sSf https://get-ghcup.haskell.org | sh
export LANG=C.UTF-8
cd /hledger
stack install --allow-different-user hledger
stack install --allow-different-user hledger-web
# Then in another terminal without letting that container terminate...
docker cp ____:/root/.local/bin/hledger bin/.
docker cp ____:/root/.local/bin/hledger-web bin/.
```

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3ab9702bdb074be018c8df6bf26c79548edc3190ee0169abe8a039cb5b37954d
size 36947640

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0ea193d02a1bc62f101d5dc9ae9950cab87ee88bea76a9220a2fdfd241389363
size 98665312

View File

@ -1,21 +0,0 @@
#!/bin/bash
# Retrieved from https://github.com/simonmichael/hledger/blob/master/docker/start.sh
echo "host: ${HLEDGER_HOST:=0.0.0.0}"
echo "port: ${HLEDGER_PORT:=5000}"
echo "base url: ${HLEDGER_BASE_URL:="http://localhost:$HLEDGER_PORT"}"
echo "file url: ${HLEDGER_FILE_URL:=}"
echo "input file: ${HLEDGER_JOURNAL_FILE:=/data/hledger.journal}"
echo "debug level: ${HLEDGER_DEBUG:=1}"
echo "rules file: ${HLEDGER_RULES_FILE:=/data/hledger.rules}"
exec hledger-web \
--server \
--host=$HLEDGER_HOST \
--port=$HLEDGER_PORT \
--file "$HLEDGER_JOURNAL_FILE" \
--debug=$HLEDGER_DEBUG \
--base-url=$HLEDGER_BASE_URL \
--file-url=$HLEDGER_FILE_URL \
--rules-file="$HLEDGER_RULES_FILE"