Add Dockerfile with hamnet70 build dependencies
This commit is contained in:
parent
c342cf656e
commit
1bcc8c2fea
|
@ -1,7 +1,7 @@
|
|||
FROM debian:stable
|
||||
|
||||
# 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
|
||||
|
||||
|
|
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 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
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