Closed dennislwm closed 3 years ago
thank you. Any reason you don't use ubuntu:latest
btw?
thank you. Any reason you don't use
ubuntu:latest
btw?
No reason, you can change to latest if you want.
docker run --rm -v $1:/usr/ledger2beancount/docker:rw $2 docker/$3
It seems that docker run --rm IMAGE
is enough to run. Is there a reason not to do that?
I applied this manually. Thank you!
-v $1:/usr/ledger2beancount/docker:rw
mounts the host directory to docker container
This is because apps within the docker container cannot read or write to host files by default.
so that we can run read ledger files and write to beancount files outside the docker container.
Thanks again @dennislwm
Run ledger2beancount from a Docker image. Fix #239.
To build the Docker image from Dockerfile:
DOCKER_BUILDKIT=1 docker image build -t <IMAGENAME> .
To run ledger2beancount from the above image:
--- copy and paste into bash script ---
--- end ---