Configure Renovate #1
3 changed files with 24 additions and 21 deletions
|
@ -3,52 +3,46 @@ ARG BEANCOUNT_VERSION=2.3.6
|
||||||
# renovate: datasource=github-tags depName=fava packageName=beancount/fava
|
# renovate: datasource=github-tags depName=fava packageName=beancount/fava
|
||||||
ARG FAVA_VERSION=1.27.3
|
ARG FAVA_VERSION=1.27.3
|
||||||
|
|
||||||
FROM node:20.17.0-slim as node_build_env
|
FROM node:20.11.0-slim AS node_build_env
|
||||||
ARG FAVA_VERSION
|
ARG FAVA_VERSION
|
||||||
|
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
apt-get update; \
|
apt-get update; \
|
||||||
apt-get install -y python3-babel git make;
|
apt-get install -y python3-babel git make;
|
||||||
|
|
||||||
RUN git clone --depth 1 --branch v${FAVA_VERSION} https://github.com/beancount/fava /tmp/build/fava
|
RUN git clone --depth 1 --branch v${FAVA_VERSION} https://github.com/beancount/fava /tmp/build/fava;
|
||||||
|
|
||||||
WORKDIR /tmp/build/fava
|
WORKDIR /tmp/build/fava
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
make -j $(nproc); \
|
make -j $(nproc); \
|
||||||
rm -rf .*cache .eggs .tox build dist frontend/node_modules; \
|
rm -rf .*cache .eggs .tox build dist frontend/node_modules; \
|
||||||
find . -type f -name '*.py[c0]' -delete; \
|
find . -type f -name '*.py[c0]' -delete; \
|
||||||
find . -type d -name "__pycache__" -delete
|
find . -type d -name "__pycache__" -delete;
|
||||||
|
|
||||||
FROM python:3.12.3-slim as build_env
|
FROM python:3.12.3-slim AS build_env
|
||||||
ARG BEANCOUNT_VERSION
|
ARG BEANCOUNT_VERSION
|
||||||
|
ENV PATH "/app/bin:$PATH"
|
||||||
|
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
apt-get update; \
|
apt-get update; \
|
||||||
apt-get install -y build-essential libxml2-dev libxslt-dev curl git;
|
apt-get install -y build-essential libxml2-dev libxslt-dev curl git; \
|
||||||
|
python -mvenv /app;
|
||||||
|
|
||||||
ENV PATH "/app/bin:$PATH"
|
|
||||||
RUN python -mvenv /app
|
|
||||||
COPY --from=node_build_env /tmp/build/fava /tmp/build/fava
|
COPY --from=node_build_env /tmp/build/fava /tmp/build/fava
|
||||||
|
|
||||||
RUN git clone --depth 1 --branch ${BEANCOUNT_VERSION} https://github.com/beancount/beancount /tmp/build/beancount
|
RUN git clone --depth 1 --branch ${BEANCOUNT_VERSION} https://github.com/beancount/beancount /tmp/build/beancount;
|
||||||
|
|
||||||
WORKDIR /tmp/build/beancount
|
WORKDIR /tmp/build/beancount
|
||||||
|
|
||||||
|
COPY requirements.txt ./
|
||||||
|
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
CFLAGS=-s pip3 install -U /tmp/build/beancount; \
|
CFLAGS=-s pip3 install -U /tmp/build/beancount; \
|
||||||
pip3 install -U /tmp/build/fava; \
|
pip3 install -U /tmp/build/fava; \
|
||||||
pip3 install \
|
pip3 install -r requirements.txt; \
|
||||||
beancount-reds-plugins \
|
|
||||||
git+https://github.com/andreasgerstmayr/fava-dashboards.git \
|
|
||||||
git+https://github.com/beancount/beangrow.git \
|
|
||||||
git+https://github.com/redstreet/fava_investor.git \
|
|
||||||
git+https://github.com/daniel-wells/beancount_checkclosed.git \
|
|
||||||
git+https://github.com/PhracturedBlue/fava-portfolio-summary.git \
|
|
||||||
git+https://github.com/polarmutex/fava-envelope.git \
|
|
||||||
git+https://github.com/scauligi/refried.git \
|
|
||||||
git+https://github.com/beancount/beanprice.git@41576e2ac889e4825e4985b6f6c56aa71de28304 \
|
|
||||||
; \
|
|
||||||
pip3 uninstall -y pip; \
|
pip3 uninstall -y pip; \
|
||||||
find /app -name __pycache__ -exec rm -rf -v {} +
|
find /app -name __pycache__ -exec rm -rf -v {} + \;; \
|
||||||
|
rm -r /app/share;
|
||||||
|
|
||||||
FROM python:3.12.3-slim
|
FROM python:3.12.3-slim
|
||||||
COPY --from=build_env /app /app
|
COPY --from=build_env /app /app
|
||||||
|
|
9
images/fava/requirements.txt
Normal file
9
images/fava/requirements.txt
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
beancount-reds-plugins==0.3.0
|
||||||
|
beanprice==1.2.0
|
||||||
|
fava_envelope==0.5.8
|
||||||
|
fava-investor==0.7.0
|
||||||
|
git+https://github.com/andreasgerstmayr/fava-dashboards.git@df40f4e2ccc6b4ec479e5146d8e62c327e44e6f9
|
||||||
|
git+https://github.com/beancount/beangrow.git@7dd642b10a66c10ec807d9eb50fd58dc26635ba2
|
||||||
|
git+https://github.com/daniel-wells/beancount_checkclosed.git@5abc380703105c12b518144f83a5c4fe25cc8f39
|
||||||
|
git+https://github.com/PhracturedBlue/fava-portfolio-summary.git@fb31e371c9808a8a99ea02a60e3712271925d379
|
||||||
|
git+https://github.com/scauligi/refried.git@b1b2a1fe1efd321142163ecc1796a38b71bb48b0
|
|
@ -1,4 +1,4 @@
|
||||||
FROM node:20.17.0-slim
|
FROM node:20.11.0-slim
|
||||||
|
|
||||||
# renovate: datasource=npm packageName=npm versioning=npm
|
# renovate: datasource=npm packageName=npm versioning=npm
|
||||||
ARG NPM_VERSION=10.5.0
|
ARG NPM_VERSION=10.5.0
|
||||||
|
|
Loading…
Add table
Reference in a new issue