Skip to content

Commit 55bff7e

Browse files
committed
Add image for PyBOMBS development
1 parent 8fbbe7e commit 55bff7e

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed

.github/workflows/pybombs-dev.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: PyBOMBS Dev Image - Manual Docker Hub Push
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
ubuntu_version:
6+
description: 'Ubuntu Version'
7+
required: true
8+
default: 'jammy'
9+
gr_version:
10+
description: 'GR Version'
11+
required: true
12+
default: gnuradio310
13+
14+
jobs:
15+
docker:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Set up QEMU
19+
uses: docker/setup-qemu-action@v1
20+
- name: Set up Docker Buildx
21+
uses: docker/setup-buildx-action@v1
22+
- name: Login to DockerHub
23+
uses: docker/login-action@v2
24+
with:
25+
username: ${{ secrets.DOCKERHUB_USERNAME }}
26+
password: ${{ secrets.DOCKERHUB_TOKEN }}
27+
- name: Build and push
28+
id: docker_build
29+
uses: docker/build-push-action@v2
30+
env:
31+
IMG: ${{ secrets.DOCKERHUB_USERNAME }}/pybombs-dev
32+
TAG: ${{ github.event.inputs.gr_version }}-ubuntu-${{ github.event.inputs.ubuntu_version }}
33+
with:
34+
file: docker/pybombs-dev.dockerfile
35+
push: true
36+
platforms: linux/amd64
37+
build-args: |
38+
dist=ubuntu:${{ github.event.inputs.ubuntu_version }}
39+
gr_version=${{ github.event.inputs.gr_version }}
40+
tags: ${{ env.IMG }}:${{ env.TAG }}
41+
cache-from: type=registry,ref=${{ env.IMG }}:${{ env.TAG }}
42+
cache-to: type=inline

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ This repository contains a range of GNU Radio-related Docker images.
1010
- [OOT Development Inside Container](#oot-development-inside-container)
1111
- [Github Workflows](#github-workflows)
1212
- [VSCode Devcontainer](#vscode-devcontainer)
13+
- [PyBOMBS Development](#pybombs-development)
1314

1415

1516
## CI Builders
@@ -175,3 +176,6 @@ OSX
175176
}
176177
```
177178

179+
## PyBOMBS Development
180+
181+
The `pybombs-dev` image allows for testing PyBOMBS installation on CI. See, for example, its usage on the [gr-etcetera](https://github.com/gnuradio/gr-etcetera) project.

docker/pybombs-dev.dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
ARG dist=ubuntu:jammy
2+
FROM $dist
3+
ARG gr_version=gnuradio310
4+
RUN apt update && apt install -y python3-pip
5+
RUN pip3 install pybombs
6+
RUN pybombs auto-config
7+
RUN pybombs recipes add-defaults
8+
RUN DEBIAN_FRONTEND="noninteractive" pybombs --quiet --yes prefix init ~/prefix-3.10 -R $gr_version

0 commit comments

Comments
 (0)