Add Dockerfile with hamnet70 build dependencies

This commit is contained in:
Thomas Kolb 2024-08-27 21:43:50 +02:00
parent c342cf656e
commit 1bcc8c2fea
5 changed files with 38 additions and 1 deletions

View file

@ -1,7 +1,7 @@
FROM debian:stable FROM debian:stable
# for basic Forgejo + AsciiDoctor support # for basic Forgejo + AsciiDoctor support
RUN apt update && apt install -y --no-install-recommends nodejs git ruby-rubygems make && apt clean RUN apt update && apt install -y --no-install-recommends nodejs git ruby-rubygems make ca-certificates && apt clean
RUN gem install asciidoctor asciidoctor-diagram RUN gem install asciidoctor asciidoctor-diagram

11
ci/docker/impl/Dockerfile Normal file
View file

@ -0,0 +1,11 @@
FROM debian:stable
# for Forgejo Actions
RUN apt update && apt install -y --no-install-recommends nodejs git ca-certificates && apt clean
# Hamnet70 build dependencies
RUN apt install -y --no-install-recommends cmake make gcc libc-dev libliquid-dev libhackrf-dev libfec-dev libfftw3-dev && apt clean
# run as unprivileged user in the container
RUN useradd -m ciuser
USER ciuser

8
ci/docker/impl/build.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/sh
if [ -z "$1" ]; then
echo "usage: $0 <tag-version>"
exit 1
fi
docker build -t git.tkolb.de/amateurfunk/hamnet70/impl_buildenv:$1 .

8
ci/docker/impl/test.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/sh
if [ -z "$1" ]; then
echo "usage: $0 <tag-version>"
exit 1
fi
docker run -v $(realpath ../../../impl):/impl -it git.tkolb.de/amateurfunk/hamnet70/impl_buildenv:$1

10
ci/docker/impl/upload.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/sh
if [ -z "$1" ]; then
echo "usage: $0 <tag-version>"
exit 1
fi
docker login
docker push git.tkolb.de/amateurfunk/hamnet70/impl_buildenv:$1
docker logout