Configure git protocols and update feeds in Dockerfile
This commit is contained in:
+9
-2
@@ -59,9 +59,16 @@ RUN cd /home/builder/openwrt && \
|
||||
RUN wget -q -O /etc/ssl/certs/ca-certificates.crt https://curl.se/ca/cacert.pem && \
|
||||
update-ca-certificates --fresh
|
||||
|
||||
COPY feeds.conf /home/builder/openwrt/feeds.conf
|
||||
|
||||
RUN git config --system protocol.file.allow always && \
|
||||
git config --system url."https://git.openwrt.org/".insteadOf "git://git.openwrt.org/" && \
|
||||
git config --system url."https://git.openwrt.org/project/luci.git".insteadOf "git://nbd.name/luci.git" && \
|
||||
git config --system url."https://github.com/openwrt/".insteadOf "git://github.com/openwrt/"
|
||||
|
||||
RUN cd /home/builder/openwrt && \
|
||||
./scripts/feeds update -a && \
|
||||
./scripts/feeds install -a
|
||||
./scripts/feeds update -a && \
|
||||
./scripts/feeds install -a
|
||||
|
||||
RUN chown -R builder:builder /home/builder/openwrt
|
||||
|
||||
|
||||
Reference in New Issue
Block a user