diff options
| author | Väinö Kauppila <vaino@vke.fi> | 2026-04-19 00:33:08 +0300 |
|---|---|---|
| committer | Väinö Kauppila <vaino@vke.fi> | 2026-04-19 00:33:08 +0300 |
| commit | 8bd8dd6ce07fb8e247f651b3c61c94bb1f00895a (patch) | |
| tree | 87bd95bd073d68efd0ad31a34f0d8926c32ff6db /Containerfile | |
| download | vhdl_pic-8bd8dd6ce07fb8e247f651b3c61c94bb1f00895a.tar.gz vhdl_pic-8bd8dd6ce07fb8e247f651b3c61c94bb1f00895a.zip | |
starting files and example programs
Diffstat (limited to 'Containerfile')
| -rw-r--r-- | Containerfile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Containerfile b/Containerfile new file mode 100644 index 0000000..635f5b4 --- /dev/null +++ b/Containerfile @@ -0,0 +1,31 @@ +FROM debian:bookworm-slim + +ARG OSS_CAD_DATE=20260310 +ARG OSS_CAD_VERSION=2026-03-10 + +RUN apt-get update && apt-get install -y --no-install-recommends \ + curl \ + ca-certificates \ + libusb-1.0-0 \ + make \ + gcc \ + libc-dev \ + zlib1g-dev \ + python3 \ + python3-pip \ + && rm -rf /var/lib/apt/lists/* + +RUN curl -L \ + "https://github.com/YosysHQ/oss-cad-suite-build/releases/download/${OSS_CAD_VERSION}/oss-cad-suite-linux-x64-${OSS_CAD_DATE}.tgz" \ + | tar -xz -C /opt + +ENV PATH="/opt/oss-cad-suite/bin:$PATH" + +# pyGHDL ships ghdl-ls (verified from ghdl/ghdl setup.py) +# pyGHDL into system python (for ghdl-ls) +RUN pip3 install --break-system-packages pyGHDL + +# numpy/fastcrc into OSS CAD Suite's site-packages (used by apycula/gowin_pack) +RUN pip3 install --target=/opt/oss-cad-suite/lib/python3.11/site-packages numpy fastcrc + +WORKDIR /workspace |
