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 899d059
Showing 1 changed file with 95 additions and 91 deletions.
186 changes: 95 additions & 91 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 All @@ -122,24 +126,24 @@ jobs:
echo "tags=$tags"
echo "tags=$tags" >> $GITHUB_OUTPUT
- name: Login to Docker Hub
uses: docker/login-action@v3.2.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
logout: true
ecr: false
# - name: Login to Docker Hub
# uses: docker/login-action@v3.2.0
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
# logout: true
# ecr: false

- name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: ${{ steps.tags.outputs.tags }}
file: ${{ matrix.DOCKERFILE }}
platforms: ${{ matrix.PLATFORM }}
context: ${{ matrix.CONTEXT }}
build-args: |
NAME="${{ env.NAME }}"
LIB=${{ matrix.LIB }}
LIB_VERSION=${{ matrix.LIB_VERSION }}
MARCH=${{ matrix.MARCH }}
# - name: Build and push
# uses: docker/build-push-action@v6
# with:
# push: false
# tags: ${{ steps.tags.outputs.tags }}
# file: ${{ matrix.DOCKERFILE }}
# platforms: ${{ matrix.PLATFORM }}
# context: ${{ matrix.CONTEXT }}
# build-args: |
# NAME="${{ env.NAME }}"
# LIB=${{ matrix.LIB }}
# LIB_VERSION=${{ matrix.LIB_VERSION }}
# MARCH=${{ matrix.MARCH }}

0 comments on commit 899d059

Please sign in to comment.