Containerfile.dev 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. FROM docker.io/library/golang@sha256:3b4a11519ad929d1e1d261a12cff056f0c85b735253d7d861346b9c6f8b36437
  2. ENV DEBIAN_FRONTEND=noninteractive \
  3. PATH=/opt/sby:/usr/local/go/bin:/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
  4. PYTHONDONTWRITEBYTECODE=1 \
  5. PIP_DISABLE_PIP_VERSION_CHECK=1
  6. RUN apt-get update \
  7. && apt-get install -y --no-install-recommends \
  8. boolector \
  9. ca-certificates \
  10. curl \
  11. git \
  12. iverilog \
  13. jq \
  14. libffi-dev \
  15. libxml2-dev \
  16. libxslt1-dev \
  17. make \
  18. ninja-build \
  19. pkg-config \
  20. python3 \
  21. python3-dev \
  22. python3-pip \
  23. python3-venv \
  24. ripgrep \
  25. shellcheck \
  26. unzip \
  27. verilator \
  28. xz-utils \
  29. yosys \
  30. z3 \
  31. zip \
  32. && rm -rf /var/lib/apt/lists/*
  33. COPY requirements/dev.txt /tmp/prod2u-dev-requirements.txt
  34. RUN python3 -m pip install --break-system-packages --no-cache-dir -r /tmp/prod2u-dev-requirements.txt
  35. RUN git clone https://github.com/YosysHQ/sby.git /opt/sby \
  36. && git -C /opt/sby checkout --detach b1a1e98cba941ec8433f8dc27f416cd7bb7f14be \
  37. && make -C /opt/sby install PREFIX=/usr/local
  38. WORKDIR /workspace/cpld-temperature-control
  39. CMD ["./dev.sh", "doctor"]