If one of the other &&s had failed other than the last one, we'd have descended into the OR here.
18 lines
428 B
Docker
18 lines
428 B
Docker
FROM openwrt-builder
|
|
|
|
ARG remote="origin"
|
|
|
|
ARG remoteurl="https://git.laboratoryb.org/hurricos/openwrt-mirror"
|
|
|
|
ARG commit="master"
|
|
|
|
RUN cd ${openwrt_dir} \
|
|
&& ( git remote add ${remote} ${remoteurl} --tags || true )
|
|
|
|
RUN cd ${openwrt_dir} && git fetch --all && { git checkout ${remote}/${commit} || git checkout "${commit}" ; }
|
|
|
|
RUN cd ${openwrt_dir} \
|
|
&& ./scripts/feeds update -a \
|
|
&& ./scripts/feeds install -a
|
|
|