File tree 7 files changed +75
-0
lines changed
7 files changed +75
-0
lines changed Original file line number Diff line number Diff line change
1
+ build
Original file line number Diff line number Diff line change
1
+ version : ' 3.9'
2
+
3
+ services :
4
+ portapack-mayhem-dev :
5
+ build :
6
+ context : .
7
+ dockerfile : dockerfile-nogit-alpine
8
+ volumes :
9
+ - " .:/havoc"
Original file line number Diff line number Diff line change
1
+ version : ' 3.9'
2
+
3
+ services :
4
+ portapack-mayhem-dev :
5
+ build :
6
+ context : .
7
+ dockerfile : dockerfile-alpine
8
+ volumes :
9
+ - " ./bin:/havocbin"
Original file line number Diff line number Diff line change
1
+ # Download base image.
2
+ FROM alpine:edge
3
+
4
+ # Download ARM toolkit.
5
+ RUN apk add --no-cache gcc-arm-none-eabi gcc
6
+
7
+ # Create volume /havocbin for compiled firmware binaries
8
+ VOLUME /havocbin
9
+
10
+ # Copy build context (repository root) to /havocsrc
11
+ COPY ./ /havocsrc
12
+
13
+ # Fetch dependencies from APK
14
+ RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
15
+ RUN apk update -U
16
+ RUN apk add --no-cache git tar wget cmake curl bzip2 make
17
+ RUN apk add --no-cache dfu-util ccache icu-data-full
18
+ RUN apk add --no-cache python3 py3-pip py3-yaml
19
+ RUN apk add --no-cache py3-pyyaml-env-tag
20
+ RUN apk add --no-cache g++ gcc clang clang-static clang-dev llvm-dev llvm-static
21
+
22
+ ENV LANG C.UTF-8
23
+ ENV LC_ALL C.UTF-8
24
+
25
+ CMD cd /havocsrc && \
26
+ mkdir build && cd build && \
27
+ cmake .. && make firmware && \
28
+ cp /portapack-havoc/firmware/portapack-h1-havoc.bin /havocbin
29
+
Original file line number Diff line number Diff line change
1
+ FROM alpine:edge
2
+
3
+ # Download ARM toolkit.
4
+ RUN apk add --no-cache gcc-arm-none-eabi gcc
5
+
6
+ # Create volume /havoc/bin for compiled firmware binaries
7
+ VOLUME /havoc
8
+ WORKDIR /havoc/firmware
9
+
10
+ # Fetch dependencies from APK
11
+ RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
12
+ RUN apk update -U
13
+ RUN apk add --no-cache git tar wget cmake curl bzip2 make
14
+ RUN apk add --no-cache dfu-util ccache icu-data-full
15
+ RUN apk add --no-cache python3 py3-pip py3-yaml
16
+ RUN apk add --no-cache py3-pyyaml-env-tag
17
+ RUN apk add --no-cache g++ gcc clang clang-static clang-dev llvm-dev llvm-static
18
+
19
+ ENV LANG C.UTF-8
20
+ ENV LC_ALL C.UTF-8
21
+
22
+ # Configure CCACHE
23
+ RUN mkdir ~/bin && cd ~/bin && \
24
+ for tool in gcc g++ cpp c++;do ln -s $(which ccache) arm-none-eabi-$tool;done
25
+
26
+ CMD cd .. && cd build && \
27
+ cmake .. && make firmware
You can’t perform that action at this time.
0 commit comments