Skip to content

Commit

Permalink
fixup! fixup! fixup! fix: update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
olexii4 committed May 13, 2024
1 parent fc5376f commit e3b148d
Showing 1 changed file with 0 additions and 30 deletions.
30 changes: 0 additions & 30 deletions .devfile.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,33 +12,3 @@ RUN dnf -y update && dnf -y install \
RUN npm install -g http-server
# Switch back to default user
USER 10001

# Install OpenWRT build dependencies
ARG OPENWRT_BASE_URL='https://github.com/openwrt/openwrt'
ARG OPENWRT_VERSION='21.02.3'

RUN mkdir -p /tmp/pre-install /tmp/pre-install/openwrt /tmp/pre-install/openwrt/package

COPY ${PWD}/package/helloworld /tmp/pre-install/openwrt/package/helloworld
COPY ${PWD}/configs/.x86-generic.config /tmp/pre-install/openwrt/.config

RUN cd /tmp/pre-install \
&& curl "${OPENWRT_BASE_URL}/archive/refs/tags/v${OPENWRT_VERSION}.zip" -L -o "/tmp/pre-install/openwrt-${OPENWRT_VERSION}.zip" \
&& unzip "/tmp/pre-install/openwrt-${OPENWRT_VERSION}.zip" -d /tmp/pre-install \
&& rm -rf /tmp/pre-install/openwrt-${OPENWRT_VERSION}.zip \
&& cd /tmp/pre-install/openwrt-${OPENWRT_VERSION} \
&& cp -r /tmp/pre-install/openwrt/package /tmp/pre-install/openwrt-${OPENWRT_VERSION}/package \
&& cd /tmp/pre-install/openwrt-${OPENWRT_VERSION} \
&& scripts/feeds update -a -f \
&& scripts/feeds install -a -f \
&& cp /tmp/pre-install/openwrt/.config /tmp/pre-install/openwrt-${OPENWRT_VERSION}/.config \
&& make defconfig \
&& make -j$(nproc) \
&& zip -r bin.zip bin/* \
&& rm -r bin \
&& mv bin.zip ../openwrt \
&& zip -r feeds.zip feeds/* \
&& rm -r feeds \
&& mv feeds.zip ../openwrt \
&& cd /tmp/pre-install \
&& rm -rf /tmp/pre-install/openwrt-${OPENWRT_VERSION}

0 comments on commit e3b148d

Please sign in to comment.