Skip to content

Commit 91074e5

Browse files
committed
Add file
1 parent 5f95cec commit 91074e5

7 files changed

+75
-0
lines changed

.dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
build

docker-compose-nogit.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: '3.9'
2+
3+
services:
4+
portapack-mayhem-dev:
5+
build:
6+
context: .
7+
dockerfile: dockerfile-nogit-alpine
8+
volumes:
9+
- ".:/havoc"

docker-compose.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: '3.9'
2+
3+
services:
4+
portapack-mayhem-dev:
5+
build:
6+
context: .
7+
dockerfile: dockerfile-alpine
8+
volumes:
9+
- "./bin:/havocbin"

dockerfile-alpine

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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+

dockerfile-nogit-alpine

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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

sdcard/WAV/noise.wav

2.52 MB
Binary file not shown.

sdcard/WAV/tone square.wav

2.52 MB
Binary file not shown.

0 commit comments

Comments
 (0)