Skip to content

Commit

Permalink
Add image for PyBOMBS development
Browse files Browse the repository at this point in the history
  • Loading branch information
igorauad committed Mar 8, 2023
1 parent 2bd7853 commit aa15474
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/pybombs-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: PyBOMBS Dev Image - Manual Docker Hub Push
on:
workflow_dispatch:
inputs:
ubuntu_version:
description: 'Ubuntu Version'
required: true
default: 'jammy'
gr_version:
description: 'GR Version'
required: true
default: gnuradio310

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
env:
IMG: ${{ secrets.DOCKERHUB_USERNAME }}/pybombs-dev
TAG: ${{ github.event.inputs.gr_version }}-ubuntu-${{ github.event.inputs.ubuntu_version }}
with:
file: docker/pybombs-dev.dockerfile
push: true
platforms: linux/amd64
build-args: |
dist=ubuntu:${{ github.event.inputs.ubuntu_version }}
gr_version=${{ github.event.inputs.gr_version }}
tags: ${{ env.IMG }}:${{ env.TAG }}
cache-from: type=registry,ref=${{ env.IMG }}:${{ env.TAG }}
cache-to: type=inline
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ This repository contains a range of GNU Radio-related Docker images.
- [OOT Development Inside Container](#oot-development-inside-container)
- [Github Workflows](#github-workflows)
- [VSCode Devcontainer](#vscode-devcontainer)
- [PyBOMBS Development](#pybombs-development)


## CI Builders
Expand Down Expand Up @@ -175,3 +176,6 @@ OSX
}
```

## PyBOMBS Development

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.
8 changes: 8 additions & 0 deletions docker/pybombs-dev.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ARG dist=ubuntu:jammy
FROM $dist
ARG gr_version=gnuradio310
RUN apt update && apt install -y python3-pip
RUN pip3 install pybombs
RUN pybombs auto-config
RUN pybombs recipes add-defaults
RUN DEBIAN_FRONTEND="noninteractive" pybombs --quiet --yes prefix init ~/prefix-3.10 -R $gr_version

0 comments on commit aa15474

Please sign in to comment.