summaryrefslogtreecommitdiffhomepage
path: root/.circleci/Dockerfile
diff options
context:
space:
mode:
authorPaul Spooren <mail@aparcar.org>2019-07-07 22:14:13 +0200
committerPaul Spooren <mail@aparcar.org>2019-07-08 18:55:33 +0200
commitda35bfcf54246550bd00b1004f5ec2ca3764457b (patch)
tree421c8be08e666aa5621d6682720bf45f92ea4d3c /.circleci/Dockerfile
parent006f7c7932a29cf0473f0b3c256eb3504001dd01 (diff)
build: add circleci
This automatically performs formal checks and also checks and compiles the packages. The resulting packages are then stored as artifacts and easily testable on running machines. Signed-off-by: Paul Spooren <mail@aparcar.org>
Diffstat (limited to '.circleci/Dockerfile')
-rw-r--r--.circleci/Dockerfile42
1 files changed, 42 insertions, 0 deletions
diff --git a/.circleci/Dockerfile b/.circleci/Dockerfile
new file mode 100644
index 000000000..b3575b206
--- /dev/null
+++ b/.circleci/Dockerfile
@@ -0,0 +1,42 @@
+FROM debian:9
+
+
+# Configuration version history
+# v1.0 - Initial version by Etienne Champetier
+# v1.0.1 - Run as non-root, add unzip, xz-utils
+# v1.0.2 - Add bzr
+
+RUN apt update && apt install -y \
+build-essential \
+curl \
+jq \
+gawk \
+gettext \
+git \
+libncurses5-dev \
+libssl-dev \
+python \
+subversion \
+bzr \
+time \
+wget \
+zlib1g-dev \
+unzip \
+xz-utils \
+&& rm -rf /var/lib/apt/lists/*
+
+RUN useradd -c "OpenWrt Builder" -m -d /home/build -s /bin/bash build
+USER build
+ENV HOME /home/build
+
+# LEDE Build System (LEDE GnuPG key for unattended build jobs)
+RUN curl 'https://git.openwrt.org/?p=keyring.git;a=blob_plain;f=gpg/626471F1.asc' | gpg --import \
+ && echo '54CC74307A2C6DC9CE618269CD84BCED626471F1:6:' | gpg --import-ownertrust
+
+# LEDE Release Builder (17.01 "Reboot" Signing Key)
+RUN curl 'https://git.openwrt.org/?p=keyring.git;a=blob_plain;f=gpg/D52BBB6B.asc' | gpg --import \
+ && echo 'B09BE781AE8A0CD4702FDCD3833C6010D52BBB6B:6:' | gpg --import-ownertrust
+
+# OpenWrt Release Builder (18.06 Signing Key)
+RUN curl 'https://git.openwrt.org/?p=keyring.git;a=blob_plain;f=gpg/17E1CE16.asc' | gpg --import \
+ && echo '6768C55E79B032D77A28DA5F0F20257417E1CE16:6:' | gpg --import-ownertrust