Skip to content
Snippets Groups Projects
Select Git revision
  • 01f9174614921f8e6358d41981061b2acfaa0696
  • experimental default protected
  • v2023.2.5-ffs
  • nrb/ex400-remove-wps
  • nrb/airmax-test
  • v2023.2.4-ffs
  • nrb/ar9344-reset-sequence
  • autinerd/experimental-openwrt-24.10
  • v2023.2.3-ffs
  • v2023.2.2-ffs
  • v2023.2-ffs
  • v2023.1-ffs
  • v2022.1.4-ffs
  • feature/addMikrotikwAP
  • v2022.1.3-ffs
  • v2021.1.2-ffs
  • v2022.1.1-ffs
  • master protected
  • v2021.1.1-ffs
  • nrb/gluon-master-cpe510
  • v2021.1-ffs
  • experimental-2025-07-31
  • experimental-2025-07-31-base
  • experimental-2025-07-29
  • experimental-2025-07-29-base
  • experimental-2025-07-28
  • experimental-2025-07-28-base
  • experimental-2025-07-26
  • experimental-2025-07-26-base
  • experimental-2025-07-24
  • experimental-2025-07-24-base
  • experimental-2025-07-22
  • experimental-2025-07-22-base
  • experimental-2025-07-21
  • experimental-2025-07-21-base
  • experimental-2025-07-20
  • experimental-2025-07-20-base
  • experimental-2025-07-19
  • experimental-2025-07-19-base
  • experimental-2025-07-17
  • experimental-2025-07-17-base
41 results

controller.rst

Blame
  • container.sh 776 B
    #!/usr/bin/env bash
    # shellcheck enable=check-unassigned-uppercase
    
    set -euo pipefail
    
    # move into base directory, in case this script is not executed via `make container`
    cd "$(dirname "$0")/.."
    
    # normalize branch name to reflect a valid image name
    BRANCH=$(git branch --show-current 2>/dev/null | sed 's/[^a-z0-9-]/_/ig')
    TAG="gluon:${BRANCH:-latest}"
    
    if [ "$(command -v podman)" ]
    then
    	podman build -t "${TAG}" contrib/docker
    	podman run -it --rm -u "$(id -u):$(id -g)" --userns=keep-id --volume="$(pwd):/gluon:z" "${TAG}"
    elif [ "$(command -v docker)" ]
    then
    	docker build -t "${TAG}" contrib/docker
    	docker run -it --rm -u "$(id -u):$(id -g)" --volume="$(pwd):/gluon" -e HOME=/gluon "${TAG}"
    else
    	echo "Please install either podman or docker. Exiting" >&2
    	exit 1
    fi