Add Dockerfile with hamnet70 build dependencies
This commit is contained in:
parent
c342cf656e
commit
785e2199e1
11
ci/docker/impl/Dockerfile
Normal file
11
ci/docker/impl/Dockerfile
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
FROM debian:stable
|
||||||
|
|
||||||
|
# for Forgejo Actions
|
||||||
|
RUN apt update && apt install -y --no-install-recommends nodejs git && 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
8
ci/docker/impl/build.sh
Executable 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
8
ci/docker/impl/test.sh
Executable 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
10
ci/docker/impl/upload.sh
Executable 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
|
Loading…
Reference in a new issue