Skip to content

Commit

Permalink
got a build working!
Browse files Browse the repository at this point in the history
  • Loading branch information
kneave committed Aug 26, 2023
1 parent f5fa419 commit 7e199d1
Show file tree
Hide file tree
Showing 6 changed files with 7,123 additions and 3 deletions.
25 changes: 25 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/bin
**/charts
**/docker-compose*
**/compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
LICENSE
README.md
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
images/
11 changes: 9 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ RUN apt-get clean && apt-get update && \
apt-get install -y \
build-essential gawk luajit flex git gettext \
python3-distutils rsync unzip wget nano file \
libncurses5-dev libssl-dev zlib1g-dev
libssl-dev zlib1g-dev curl \
gcc-multilib libncurses-dev libncursesw-dev \
xsltproc python3


RUN mkdir -p /root/.ssh
RUN chmod 644 /root/.ssh
Expand All @@ -20,9 +23,13 @@ WORKDIR /build

# Clone OpenWRT.
USER build
RUN git clone https://git.openwrt.org/openwrt/openwrt.git
RUN git clone --branch openwrt-22.03 https://git.openwrt.org/openwrt/openwrt.git
WORKDIR /build/openwrt

# Download and apply the patch for the fan controller
RUN curl -0 /build/openwrt/emc2301-openwrt.patch https://gist.githubusercontent.com/shayne/bc9f3778b53134d3274f9794eba4f874/raw/9b455e2ef262b729800ea8009e8a774966110c6c/emc2301-openwrt.patch
# RUN cd /build/openwrt/ && git apply ./emc2301-openwrt.patch

# Update the feeds.
RUN ./scripts/feeds update -a
RUN ./scripts/feeds install -a
Expand Down

0 comments on commit 7e199d1

Please sign in to comment.