Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tip on running on Raspberry Pi #576

Open
DimitryDushkin opened this issue Dec 18, 2024 · 2 comments
Open

Tip on running on Raspberry Pi #576

DimitryDushkin opened this issue Dec 18, 2024 · 2 comments

Comments

@DimitryDushkin
Copy link

DimitryDushkin commented Dec 18, 2024

Maybe it would be helpful for someone. It won't run as is on Raspberry (and I assume any linux) since there is no "apk" command.
To run it on Raspberry Pi (64 bit ARM architecture) OS dockerfile should be modified:

FROM arm64v8/ubuntu:22.04

ENV DEBIAN_FRONTEND=noninteractive

SHELL ["/bin/bash", "-c"]

# Update and install dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
    inkscape \
    make \
    ncurses-bin \
    pandoc \
    perl \
    python3-pygments \
    python3-boto3 \
    python3-requests \
    python3 \
    python3-pip \
    python3-venv \
    texlive \
    texlive-luatex \
    texlive-extra-utils \
    texlive-latex-extra \
    texlive-pictures \
    texlive-science \
    wget \
    libfreetype6-dev \
    libpng-dev \
    qtbase5-dev \
    python3-cairocffi \
    && apt-get clean && rm -rf /var/lib/apt/lists/*

# Update LuaTeX fonts
RUN luaotfload-tool --update

# Install Python packages
RUN python3 -m pip install --no-cache-dir pandas pipx \
    && pipx install cgt-calc \
    && pipx ensurepath

# Set working directory
WORKDIR /data

# Set entrypoint
ENTRYPOINT ["/bin/bash"]


Build command:

docker buildx build --platform linux/arm64 --tag capital-gains-calculator:latest --load .

Run command is the same:

docker run --rm -it -v "$PWD":/data capital-gains-calculator
@vmartinv
Copy link
Collaborator

Why you want to run it in that? Normally I just use the script from my laptop once a year when filing the return.

@DimitryDushkin
Copy link
Author

@vmartinv I change laptops from time to time and do not want to bloat my current laptop with Docker and other things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants