docker-builder/openwrt-builder.dockerfile
Martin Kennedy 07d3c4acf5 openwrt-builder: dockerfile for an openwrt builder
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.
2021-02-08 15:04:23 +00:00

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" ]