You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.5 KiB

  1. FROM debian:9
  2. # Configuration version history
  3. # v1.0 - Initial version by Etienne Champetier
  4. # v1.0.1 - Run as non-root, add unzip, xz-utils
  5. # v1.0.2 - Add bzr
  6. # v1.0.3 - Verify usign signatures
  7. # v1.0.4 - Add support for Python3
  8. RUN apt update && apt install -y \
  9. build-essential \
  10. bzr \
  11. curl \
  12. jq \
  13. gawk \
  14. gettext \
  15. git \
  16. libncurses5-dev \
  17. libssl-dev \
  18. python \
  19. python3 \
  20. signify-openbsd \
  21. subversion \
  22. time \
  23. unzip \
  24. wget \
  25. xz-utils \
  26. zlib1g-dev \
  27. && rm -rf /var/lib/apt/lists/*
  28. RUN useradd -c "OpenWrt Builder" -m -d /home/build -s /bin/bash build
  29. USER build
  30. ENV HOME /home/build
  31. # LEDE Build System (LEDE GnuPG key for unattended build jobs)
  32. RUN curl 'https://git.openwrt.org/?p=keyring.git;a=blob_plain;f=gpg/626471F1.asc' | gpg --import \
  33. && echo '54CC74307A2C6DC9CE618269CD84BCED626471F1:6:' | gpg --import-ownertrust
  34. # LEDE Release Builder (17.01 "Reboot" Signing Key)
  35. RUN curl 'https://git.openwrt.org/?p=keyring.git;a=blob_plain;f=gpg/D52BBB6B.asc' | gpg --import \
  36. && echo 'B09BE781AE8A0CD4702FDCD3833C6010D52BBB6B:6:' | gpg --import-ownertrust
  37. # OpenWrt Release Builder (18.06 Signing Key)
  38. RUN curl 'https://git.openwrt.org/?p=keyring.git;a=blob_plain;f=gpg/17E1CE16.asc' | gpg --import \
  39. && echo '6768C55E79B032D77A28DA5F0F20257417E1CE16:6:' | gpg --import-ownertrust
  40. # LEDE Build System (LEDE usign key for unattended build jobs)
  41. RUN curl 'https://git.openwrt.org/?p=keyring.git;a=blob_plain;f=usign/b5043e70f9a75cde' --create-dirs \
  42. -o /home/build/usign/b5043e70f9a75cde