mirror of
https://github.com/Crosstalk-Solutions/project-nomad.git
synced 2026-04-02 23:09:26 +02:00
Merge b4086bed27 into 44ecf41ca6
This commit is contained in:
commit
fa7f0de5e8
56
.github/workflows/build-disk-collector.yml
vendored
56
.github/workflows/build-disk-collector.yml
vendored
|
|
@ -13,6 +13,9 @@ on:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
|
||||||
|
env:
|
||||||
|
IMAGE: ghcr.io/crosstalk-solutions/project-nomad-disk-collector
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check_authorization:
|
check_authorization:
|
||||||
name: Check authorization to publish new Docker image
|
name: Check authorization to publish new Docker image
|
||||||
|
|
@ -23,29 +26,70 @@ jobs:
|
||||||
- name: check-auth
|
- name: check-auth
|
||||||
id: check-auth
|
id: check-auth
|
||||||
run: echo "is_authorized=${{ contains(secrets.DEPLOYMENT_AUTHORIZED_USERS, github.triggering_actor) }}" >> $GITHUB_OUTPUT
|
run: echo "is_authorized=${{ contains(secrets.DEPLOYMENT_AUTHORIZED_USERS, github.triggering_actor) }}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: Build disk-collector image
|
name: Build Docker image (${{ matrix.platform }})
|
||||||
needs: check_authorization
|
needs: check_authorization
|
||||||
if: needs.check_authorization.outputs.isAuthorized == 'true'
|
if: needs.check_authorization.outputs.isAuthorized == 'true'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{ matrix.runner }}
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- platform: linux/amd64
|
||||||
|
runner: ubuntu-24.04
|
||||||
|
suffix: amd64
|
||||||
|
- platform: linux/arm64
|
||||||
|
runner: ubuntu-24.04-arm
|
||||||
|
suffix: arm64
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
uses: actions/checkout@v6
|
||||||
- name: Log in to GitHub Container Registry
|
- name: Log in to GitHub Container Registry
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: install/sidecar-disk-collector
|
context: install/sidecar-disk-collector
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
platforms: ${{ matrix.platform }}
|
||||||
ghcr.io/crosstalk-solutions/project-nomad-disk-collector:${{ inputs.version }}
|
tags: ${{ env.IMAGE }}:${{ inputs.version }}-${{ matrix.suffix }}
|
||||||
ghcr.io/crosstalk-solutions/project-nomad-disk-collector:v${{ inputs.version }}
|
|
||||||
${{ inputs.tag_latest && 'ghcr.io/crosstalk-solutions/project-nomad-disk-collector:latest' || '' }}
|
manifest:
|
||||||
|
name: Create multi-arch manifest
|
||||||
|
needs: build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
packages: write
|
||||||
|
steps:
|
||||||
|
- name: Log in to GitHub Container Registry
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Create and push manifest
|
||||||
|
run: |
|
||||||
|
TAGS="${{ env.IMAGE }}:${{ inputs.version }} ${{ env.IMAGE }}:v${{ inputs.version }}"
|
||||||
|
if [ "${{ inputs.tag_latest }}" = "true" ]; then
|
||||||
|
TAGS="$TAGS ${{ env.IMAGE }}:latest"
|
||||||
|
fi
|
||||||
|
for TAG in $TAGS; do
|
||||||
|
docker manifest create "$TAG" \
|
||||||
|
"${{ env.IMAGE }}:${{ inputs.version }}-amd64" \
|
||||||
|
"${{ env.IMAGE }}:${{ inputs.version }}-arm64"
|
||||||
|
docker manifest push "$TAG"
|
||||||
|
done
|
||||||
|
|
|
||||||
56
.github/workflows/build-primary-image.yml
vendored
56
.github/workflows/build-primary-image.yml
vendored
|
|
@ -13,6 +13,9 @@ on:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
|
||||||
|
env:
|
||||||
|
IMAGE: ghcr.io/crosstalk-solutions/project-nomad
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check_authorization:
|
check_authorization:
|
||||||
name: Check authorization to publish new Docker image
|
name: Check authorization to publish new Docker image
|
||||||
|
|
@ -23,32 +26,73 @@ jobs:
|
||||||
- name: check-auth
|
- name: check-auth
|
||||||
id: check-auth
|
id: check-auth
|
||||||
run: echo "is_authorized=${{ contains(secrets.DEPLOYMENT_AUTHORIZED_USERS, github.triggering_actor) }}" >> $GITHUB_OUTPUT
|
run: echo "is_authorized=${{ contains(secrets.DEPLOYMENT_AUTHORIZED_USERS, github.triggering_actor) }}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: Build Docker image
|
name: Build Docker image (${{ matrix.platform }})
|
||||||
needs: check_authorization
|
needs: check_authorization
|
||||||
if: needs.check_authorization.outputs.isAuthorized == 'true'
|
if: needs.check_authorization.outputs.isAuthorized == 'true'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{ matrix.runner }}
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- platform: linux/amd64
|
||||||
|
runner: ubuntu-24.04
|
||||||
|
suffix: amd64
|
||||||
|
- platform: linux/arm64
|
||||||
|
runner: ubuntu-24.04-arm
|
||||||
|
suffix: arm64
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
uses: actions/checkout@v6
|
||||||
- name: Log in to GitHub Container Registry
|
- name: Log in to GitHub Container Registry
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
platforms: ${{ matrix.platform }}
|
||||||
ghcr.io/crosstalk-solutions/project-nomad:${{ inputs.version }}
|
tags: ${{ env.IMAGE }}:${{ inputs.version }}-${{ matrix.suffix }}
|
||||||
ghcr.io/crosstalk-solutions/project-nomad:v${{ inputs.version }}
|
|
||||||
${{ inputs.tag_latest && 'ghcr.io/crosstalk-solutions/project-nomad:latest' || '' }}
|
|
||||||
build-args: |
|
build-args: |
|
||||||
VERSION=${{ inputs.version }}
|
VERSION=${{ inputs.version }}
|
||||||
BUILD_DATE=${{ github.event.workflow_run.created_at }}
|
BUILD_DATE=${{ github.event.workflow_run.created_at }}
|
||||||
VCS_REF=${{ github.sha }}
|
VCS_REF=${{ github.sha }}
|
||||||
|
|
||||||
|
manifest:
|
||||||
|
name: Create multi-arch manifest
|
||||||
|
needs: build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
packages: write
|
||||||
|
steps:
|
||||||
|
- name: Log in to GitHub Container Registry
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Create and push manifest
|
||||||
|
run: |
|
||||||
|
TAGS="${{ env.IMAGE }}:${{ inputs.version }} ${{ env.IMAGE }}:v${{ inputs.version }}"
|
||||||
|
if [ "${{ inputs.tag_latest }}" = "true" ]; then
|
||||||
|
TAGS="$TAGS ${{ env.IMAGE }}:latest"
|
||||||
|
fi
|
||||||
|
for TAG in $TAGS; do
|
||||||
|
docker manifest create "$TAG" \
|
||||||
|
"${{ env.IMAGE }}:${{ inputs.version }}-amd64" \
|
||||||
|
"${{ env.IMAGE }}:${{ inputs.version }}-arm64"
|
||||||
|
docker manifest push "$TAG"
|
||||||
|
done
|
||||||
|
|
|
||||||
56
.github/workflows/build-sidecar-updater.yml
vendored
56
.github/workflows/build-sidecar-updater.yml
vendored
|
|
@ -13,6 +13,9 @@ on:
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
|
||||||
|
env:
|
||||||
|
IMAGE: ghcr.io/crosstalk-solutions/project-nomad-sidecar-updater
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check_authorization:
|
check_authorization:
|
||||||
name: Check authorization to publish new Docker image
|
name: Check authorization to publish new Docker image
|
||||||
|
|
@ -23,29 +26,70 @@ jobs:
|
||||||
- name: check-auth
|
- name: check-auth
|
||||||
id: check-auth
|
id: check-auth
|
||||||
run: echo "is_authorized=${{ contains(secrets.DEPLOYMENT_AUTHORIZED_USERS, github.triggering_actor) }}" >> $GITHUB_OUTPUT
|
run: echo "is_authorized=${{ contains(secrets.DEPLOYMENT_AUTHORIZED_USERS, github.triggering_actor) }}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
build:
|
build:
|
||||||
name: Build sidecar-updater image
|
name: Build Docker image (${{ matrix.platform }})
|
||||||
needs: check_authorization
|
needs: check_authorization
|
||||||
if: needs.check_authorization.outputs.isAuthorized == 'true'
|
if: needs.check_authorization.outputs.isAuthorized == 'true'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{ matrix.runner }}
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
packages: write
|
packages: write
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- platform: linux/amd64
|
||||||
|
runner: ubuntu-24.04
|
||||||
|
suffix: amd64
|
||||||
|
- platform: linux/arm64
|
||||||
|
runner: ubuntu-24.04-arm
|
||||||
|
suffix: arm64
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v6
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
uses: actions/checkout@v6
|
||||||
- name: Log in to GitHub Container Registry
|
- name: Log in to GitHub Container Registry
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: install/sidecar-updater
|
context: install/sidecar-updater
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
platforms: ${{ matrix.platform }}
|
||||||
ghcr.io/crosstalk-solutions/project-nomad-sidecar-updater:${{ inputs.version }}
|
tags: ${{ env.IMAGE }}:${{ inputs.version }}-${{ matrix.suffix }}
|
||||||
ghcr.io/crosstalk-solutions/project-nomad-sidecar-updater:v${{ inputs.version }}
|
|
||||||
${{ inputs.tag_latest && 'ghcr.io/crosstalk-solutions/project-nomad-sidecar-updater:latest' || '' }}
|
manifest:
|
||||||
|
name: Create multi-arch manifest
|
||||||
|
needs: build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
packages: write
|
||||||
|
steps:
|
||||||
|
- name: Log in to GitHub Container Registry
|
||||||
|
uses: docker/login-action@v2
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: Create and push manifest
|
||||||
|
run: |
|
||||||
|
TAGS="${{ env.IMAGE }}:${{ inputs.version }} ${{ env.IMAGE }}:v${{ inputs.version }}"
|
||||||
|
if [ "${{ inputs.tag_latest }}" = "true" ]; then
|
||||||
|
TAGS="$TAGS ${{ env.IMAGE }}:latest"
|
||||||
|
fi
|
||||||
|
for TAG in $TAGS; do
|
||||||
|
docker manifest create "$TAG" \
|
||||||
|
"${{ env.IMAGE }}:${{ inputs.version }}-amd64" \
|
||||||
|
"${{ env.IMAGE }}:${{ inputs.version }}-arm64"
|
||||||
|
docker manifest push "$TAG"
|
||||||
|
done
|
||||||
|
|
|
||||||
|
|
@ -75,6 +75,8 @@ At it's core, however, N.O.M.A.D. is still very lightweight. For a barebones ins
|
||||||
- OS: Debian-based (Ubuntu recommended)
|
- OS: Debian-based (Ubuntu recommended)
|
||||||
- Stable internet connection (required during install only)
|
- Stable internet connection (required during install only)
|
||||||
|
|
||||||
|
*NOTE*: ARM images are community-contributed. Installing on ARM is not officially supported.
|
||||||
|
|
||||||
To run LLM's and other included AI tools:
|
To run LLM's and other included AI tools:
|
||||||
|
|
||||||
#### Optimal Specs
|
#### Optimal Specs
|
||||||
|
|
@ -144,4 +146,4 @@ sudo bash /opt/project-nomad/update_nomad.sh
|
||||||
###### Uninstall Script - Need to start fresh? Use the uninstall script to make your life easy. Note: this cannot be undone!
|
###### Uninstall Script - Need to start fresh? Use the uninstall script to make your life easy. Note: this cannot be undone!
|
||||||
```bash
|
```bash
|
||||||
curl -fsSL https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/main/install/uninstall_nomad.sh -o uninstall_nomad.sh && sudo bash uninstall_nomad.sh
|
curl -fsSL https://raw.githubusercontent.com/Crosstalk-Solutions/project-nomad/refs/heads/main/install/uninstall_nomad.sh -o uninstall_nomad.sh && sudo bash uninstall_nomad.sh
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user