forked from EvergreenCrypto/docker-finance
As discussed in #216, hledger-flow breaks with the latest hledger release (1.50). Until hledger-flow has another release, current master tip appears to be as stable as v0.15.0 and includes fixes that work with hledger 1.50.
61 lines
1.9 KiB
Docker
61 lines
1.9 KiB
Docker
# docker-finance | modern accounting for the power-user
|
|
#
|
|
# Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC)
|
|
#
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
FROM haskell:latest
|
|
|
|
RUN apt-get update -y
|
|
RUN apt-get upgrade -y
|
|
|
|
#
|
|
# hledger-flow
|
|
#
|
|
|
|
WORKDIR /usr/local/src
|
|
|
|
# NOTE: haskell:latest currently doesn't provide git 2.49.0+ for `git clone --revision`
|
|
RUN git clone https://github.com/apauley/hledger-flow
|
|
RUN git -C hledger-flow checkout 0bcf667b24b030e30acee350c05dd69ba5ec20b5
|
|
|
|
WORKDIR /usr/local/src/hledger-flow
|
|
RUN stack setup
|
|
RUN stack install --install-ghc --local-bin-path=/usr/local/bin
|
|
|
|
#
|
|
# hledger-iadd
|
|
#
|
|
|
|
WORKDIR /usr/local/src
|
|
RUN git clone --depth=1 https://github.com/hpdeifel/hledger-iadd -b v1.3.21
|
|
|
|
WORKDIR /usr/local/src/hledger-iadd
|
|
RUN sed -i 's/^ - hledger-lib-1\.32\.2/ - hledger-lib-1\.33\.1@sha256\:3920c9b273ecae8be59628b6f6f93fd1b4f3cee03a89fda23b0c4b183d0577f2\,7844/g' stack.yaml
|
|
RUN stack setup
|
|
RUN stack install --resolver="lts-22.20" --install-ghc --local-bin-path=/usr/local/bin hledger-iadd
|
|
|
|
#
|
|
# hledger / hledger-ui / hledger-web
|
|
#
|
|
|
|
WORKDIR /usr/local/src
|
|
RUN git clone --depth=1 https://github.com/simonmichael/hledger -b 1.50
|
|
|
|
WORKDIR /usr/local/src/hledger
|
|
RUN stack setup
|
|
RUN stack install --resolver="lts-24.8" --install-ghc --local-bin-path=/usr/local/bin
|
|
|
|
# vim: sw=2 sts=2 si ai et
|