This is a base builder -- it sets up *most* of the environment right and provides a great cache; later we can git pull again and check out the right commit, without needing to invalidate this builder and re-clone OpenWrt again.
16 lines
354 B
Docker
16 lines
354 B
Docker
FROM builder
|
|
|
|
USER buildbot
|
|
|
|
WORKDIR /builder
|
|
|
|
RUN git clone https://git.laboratoryb.org/hurricos/openwrt-mirror --branch master openwrt
|
|
|
|
ENV openwrt_dir=/builder/openwrt
|
|
|
|
RUN cd ${openwrt_dir} && ./scripts/feeds update -a && ./scripts/feeds install -a
|
|
|
|
COPY openwrt-builder-entry.sh /openwrt-builder-entry.sh
|
|
|
|
ENTRYPOINT [ "/openwrt-builder-entry.sh" ]
|