-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
288 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: OOT 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: 3.10.5.1 | ||
|
||
jobs: | ||
build-and-push-image: | ||
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 }}/oot-dev | ||
TAG: ${{ github.event.inputs.gr_version }}-ubuntu-${{ github.event.inputs.ubuntu_version }} | ||
with: | ||
push: true | ||
file: docker/oot-dev.dockerfile | ||
platforms: linux/amd64,linux/arm64 | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: OOT Dev Image - Auto Docker Hub Push | ||
|
||
on: | ||
push: | ||
tags: | ||
- "v[0-9]+.[0-9]+.[0-9]+" | ||
|
||
jobs: | ||
build-and-push-image: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- ubuntu-version: jammy | ||
gr-version: 3.10.5.1 | ||
- ubuntu-version: focal | ||
gr-version: 3.10.5.1 | ||
- ubuntu-version: bionic | ||
gr-version: 3.8.2 | ||
- ubuntu-version: bionic | ||
gr-version: 3.7.11 | ||
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 }}/oot-dev | ||
TAG: ${{ matrix.gr-version }}-ubuntu-${{ matrix.ubuntu-version }} | ||
with: | ||
push: true | ||
file: docker/oot-dev.dockerfile | ||
platforms: linux/amd64,linux/arm64 | ||
build-args: | | ||
dist=ubuntu:${{ matrix.ubuntu-version }} | ||
gr_version=${{ matrix.gr-version }} | ||
tags: ${{ env.IMG }}:${{ env.TAG }} | ||
cache-from: type=registry,ref=${{ env.IMG }}:${{ env.TAG }} | ||
cache-to: type=inline |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
ARG dist=ubuntu:focal | ||
FROM $dist | ||
ARG gr_version=3.10.1 | ||
RUN apt update && apt install -y software-properties-common | ||
RUN add-apt-repository ppa:gnuradio/gnuradio-releases && \ | ||
apt update && \ | ||
DEBIAN_FRONTEND="noninteractive" apt install -y \ | ||
clang-format \ | ||
cmake \ | ||
doxygen \ | ||
gdb \ | ||
gir1.2-gtk-3.0 \ | ||
git \ | ||
gnuradio=$gr_version* \ | ||
gnuradio-dev=$gr_version* \ | ||
graphviz \ | ||
libspdlog-dev \ | ||
pkg-config \ | ||
python3-pip \ | ||
swig | ||
RUN pip3 install pygccxml | ||
# Configure the paths required to run GR over python2 and python3 | ||
RUN if command -v python2 ; then \ | ||
PYSITEDIR=$(python2 -m site --user-site) && \ | ||
PYLIBDIR=$(python2 -c "from distutils import sysconfig; \ | ||
print(sysconfig.get_python_lib(plat_specific=False, prefix='/usr/local'))") && \ | ||
mkdir -p "$PYSITEDIR" && \ | ||
echo "$PYLIBDIR" > "$PYSITEDIR/gnuradio.pth" ; fi | ||
RUN PYSITEDIR=$(python3 -m site --user-site) && \ | ||
PYLIBDIR=$(python3 -c "from distutils import sysconfig; \ | ||
print(sysconfig.get_python_lib(plat_specific=False, prefix='/usr/local'))") && \ | ||
mkdir -p "$PYSITEDIR" && \ | ||
echo "$PYLIBDIR" > "$PYSITEDIR/gnuradio.pth" |