Skip to content

Commit

Permalink
docker text
Browse files Browse the repository at this point in the history
  • Loading branch information
qarlosalberto committed Sep 5, 2024
1 parent 10081bf commit 870ce9b
Show file tree
Hide file tree
Showing 2 changed files with 94 additions and 90 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/ccpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@
# the distribution.
#

name: C/C++ CI
on: push
jobs:
x86_ubuntu_build:
name: Build on x86
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04, ubuntu-20.04]
compiler: [gcc, clang]
steps:
- uses: actions/checkout@v3
- name: Build srsRAN Project on x86 ${{ matrix.os }}
run: |
sudo apt update
sudo apt install -y cmake make gcc g++ pkg-config libfftw3-dev libmbedtls-dev libsctp-dev libyaml-cpp-dev libgtest-dev ninja-build
mkdir build && cd build && cmake -DENABLE_UHD=False -GNinja .. && ninja && ctest
# name: C/C++ CI
# on: push
# jobs:
# x86_ubuntu_build:
# name: Build on x86
# runs-on: ${{ matrix.os }}
# strategy:
# fail-fast: false
# matrix:
# os: [ubuntu-22.04, ubuntu-20.04]
# compiler: [gcc, clang]
# steps:
# - uses: actions/checkout@v3
# - name: Build srsRAN Project on x86 ${{ matrix.os }}
# run: |
# sudo apt update
# sudo apt install -y cmake make gcc g++ pkg-config libfftw3-dev libmbedtls-dev libsctp-dev libyaml-cpp-dev libgtest-dev ninja-build
# mkdir build && cd build && cmake -DENABLE_UHD=False -GNinja .. && ninja && ctest
148 changes: 76 additions & 72 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Docker Builder
on:
push:
branches:
- main
- test
release:
types: [published]

Expand All @@ -13,82 +10,82 @@ jobs:
strategy:
matrix:
include:
# --> metrics server
- TAGNAME: ""
REPOSITORY: metrics-server
EXTRA_CMAKE_ARGS: ""
MARCH: ""
PLATFORM: amd64
LIB: ""
LIB_VERSION: ""
DOCKERFILE: ./docker/metrics_server/Dockerfile
CONTEXT: ./docker/metrics_server
# --> grafana
- TAGNAME: ""
REPOSITORY: grafana
EXTRA_CMAKE_ARGS: ""
MARCH: ""
PLATFORM: amd64
LIB: ""
LIB_VERSION: ""
DOCKERFILE: ./docker/grafana/Dockerfile
CONTEXT: ./docker/grafana
# --> split72
# AMD AVX2
- TAGNAME: split72_release_avx2
REPOSITORY: srsran-project
MARCH: x86-64-v3
PLATFORM: amd64
LIB: dpdk
LIB_VERSION: "23.11.1"
DOCKERFILE: ./docker/Dockerfile
CONTEXT: ./
- TAGNAME: split72_release_with_debug_avx2
REPOSITORY: srsran-project
EXTRA_CMAKE_ARGS: -DFORCE_DEBUG_INFO=On
MARCH: x86-64-v3
PLATFORM: amd64
LIB: dpdk
LIB_VERSION: "23.11.1"
DOCKERFILE: ./docker/Dockerfile
CONTEXT: ./
# # --> metrics server
# - TAGNAME: ""
# REPOSITORY: metrics-server
# EXTRA_CMAKE_ARGS: ""
# MARCH: ""
# PLATFORM: amd64
# LIB: ""
# LIB_VERSION: ""
# DOCKERFILE: ./docker/metrics_server/Dockerfile
# CONTEXT: ./docker/metrics_server
# # --> grafana
# - TAGNAME: ""
# REPOSITORY: grafana
# EXTRA_CMAKE_ARGS: ""
# MARCH: ""
# PLATFORM: amd64
# LIB: ""
# LIB_VERSION: ""
# DOCKERFILE: ./docker/grafana/Dockerfile
# CONTEXT: ./docker/grafana
# # --> split72
# # AMD AVX2
# - TAGNAME: split72_release_avx2
# REPOSITORY: srsran-project
# MARCH: x86-64-v3
# PLATFORM: amd64
# LIB: dpdk
# LIB_VERSION: "23.11.1"
# DOCKERFILE: ./docker/Dockerfile
# CONTEXT: ./
# - TAGNAME: split72_release_with_debug_avx2
# REPOSITORY: srsran-project
# EXTRA_CMAKE_ARGS: -DFORCE_DEBUG_INFO=On
# MARCH: x86-64-v3
# PLATFORM: amd64
# LIB: dpdk
# LIB_VERSION: "23.11.1"
# DOCKERFILE: ./docker/Dockerfile
# CONTEXT: ./
# AMD AVX512
- TAGNAME: split72_release_avx512
REPOSITORY: srsran-project
MARCH: x86-64-v4
MARCH: skylake-avx512
PLATFORM: amd64
LIB: dpdk
LIB_VERSION: "23.11.1"
DOCKERFILE: ./docker/Dockerfile
CONTEXT: ./
- TAGNAME: split72_release_with_debug_avx512
REPOSITORY: srsran-project
EXTRA_CMAKE_ARGS: -DFORCE_DEBUG_INFO=On
MARCH: x86-64-v4
PLATFORM: amd64
LIB: dpdk
LIB_VERSION: "23.11.1"
DOCKERFILE: ./docker/Dockerfile
CONTEXT: ./
# --> split8
# AMD AVX2
- TAGNAME: split8_release_avx2
REPOSITORY: srsran-project
MARCH: x86-64-v3
PLATFORM: amd64
LIB: uhd
LIB_VERSION: "4.7.0.0"
DOCKERFILE: ./docker/Dockerfile
CONTEXT: ./
- TAGNAME: split8_release_with_debug_avx2
REPOSITORY: srsran-project
EXTRA_CMAKE_ARGS: -DFORCE_DEBUG_INFO=On
MARCH: x86-64-v3
PLATFORM: amd64
LIB: uhd
LIB_VERSION: "4.7.0.0"
DOCKERFILE: ./docker/Dockerfile
CONTEXT: ./
# - TAGNAME: split72_release_with_debug_avx512
# REPOSITORY: srsran-project
# EXTRA_CMAKE_ARGS: -DFORCE_DEBUG_INFO=On
# MARCH: x86-64-v4
# PLATFORM: amd64
# LIB: dpdk
# LIB_VERSION: "23.11.1"
# DOCKERFILE: ./docker/Dockerfile
# CONTEXT: ./
# # --> split8
# # AMD AVX2
# - TAGNAME: split8_release_avx2
# REPOSITORY: srsran-project
# MARCH: x86-64-v3
# PLATFORM: amd64
# LIB: uhd
# LIB_VERSION: "4.7.0.0"
# DOCKERFILE: ./docker/Dockerfile
# CONTEXT: ./
# - TAGNAME: split8_release_with_debug_avx2
# REPOSITORY: srsran-project
# EXTRA_CMAKE_ARGS: -DFORCE_DEBUG_INFO=On
# MARCH: x86-64-v3
# PLATFORM: amd64
# LIB: uhd
# LIB_VERSION: "4.7.0.0"
# DOCKERFILE: ./docker/Dockerfile
# CONTEXT: ./
env:
PREFIX: softwareradiosystems/${{ matrix.REPOSITORY }}:${{ matrix.TAGNAME }}
environment: dockerhub
Expand All @@ -105,6 +102,13 @@ jobs:
- name: Determine tags based on branch
id: tags
run: |
echo "***************************************************************"
lscpu
echo "***************************************************************"
lscpu | grep Flags
echo "***************************************************************"
cat /proc/cpuinfo
echo "***************************************************************"
BRANCH_NAME="${GITHUB_REF#refs/heads/}"
DATE_TAG="${GITHUB_SHA:0:10}__$(date +'%Y-%m-%d')"
RELEASE_NAME="${{ github.event.release.name }}"
Expand Down Expand Up @@ -133,7 +137,7 @@ jobs:
- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
push: false
tags: ${{ steps.tags.outputs.tags }}
file: ${{ matrix.DOCKERFILE }}
platforms: ${{ matrix.PLATFORM }}
Expand Down

0 comments on commit 870ce9b

Please sign in to comment.