-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Leaving this here for reference in case someone else finds this handy:
Dockerfile:
FROM ubuntu:22.04
RUN mkdir /import && \
useradd nonroot
WORKDIR /import
RUN apt-get update && \
apt-get install -y \
curl \
dotnet6 \
unzip && \
rm -rf /var/lib/apt/lists/*
RUN project_url='https://github.com/vermiceli/ynab-to-ledger' && \
version='1.0' && \
checksum='4b196e6cc56e9fadd91ad54d487a827e5c840a740281498ff7373b31f8cbf01a' && \
curl -sSLo /tmp/linux.zip "$project_url/releases/download/v$version/linux.zip" && \
echo "$checksum /tmp/linux.zip" | sha256sum -c && \
unzip /tmp/linux.zip -d /tmp && \
mv /tmp/linux /usr/local/bin/ynab-to-leger && \
chmod +x /usr/local/bin/ynab-to-leger/YNABCSVToLedger && \
ln -s /usr/local/bin/ynab-to-leger/YNABCSVToLedger /usr/local/bin/YNABCSVToLedger && \
rm /tmp/linux.zip
USER nonroot
To run:
docker build . -t ynab-to-ledger
# Lets say your file is ynab.csv in the current folder
docker run --rm \
--volume $PWD:/import \
--interactive --tty ynab-to-ledger
# Once inside the container YNABCSVToLedger is available to run imports
vermiceli and YEGCSharpDev
Metadata
Metadata
Assignees
Labels
No labels