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
( | |
set -euxopipefail | |
ARTIFACTORY_REPO='zitipax-(openziti-(rpm|deb)-test|fork-(rpm|deb)-stable)' | |
: DELETE="--quiet" | |
DELETE="--dry-run" | |
RETENTION_DAYS=30 | |
declare -a ARTIFACTS=(ziti-edge-tunnel openziti{,-controller,-router} zrok{,-share}) |
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
import os | |
import sys | |
from os import chdir, walk | |
from os.path import dirname, getsize, join | |
from pathlib import Path | |
from shutil import move | |
import ffmpeg | |
import filetype |
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
import datetime | |
import logging | |
import os | |
import re | |
import time | |
import docker | |
import requests | |
from packaging import version |
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
#!/usr/bin/env bash | |
set -o errexit | |
set -o nounset | |
set -o pipefail | |
if systemctl is-enabled --quiet ziti-edge-tunnel.service && ykman piv info &>/dev/null | |
then | |
RESPONSE=$(ykman oath accounts code "$ZITI_IDENTITY" \ | |
| awk '{print $2;}' \ |
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
#!/usr/bin/env python | |
# Obtain the Ziti Edge JWT signing pubkey for enrollment tokens by parsing the client API's server certificate. | |
# | |
# openssl s_client -connect ziti-edge-controller:443 <>/dev/null \ | |
# |& openssl x509 -noout -pubkey \ | |
# | tee /tmp/client-pubkey.pem | |
import sys | |
import jwt |
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
for OS in \ | |
oraclelinux:{7..9} \ | |
debian:{buster,bullseye,bookworm} \ | |
registry.access.redhat.com/ubi{8,9}/ubi \ | |
ubuntu:{bionic,focal,jammy} \ | |
quay.io/centos/centos:7 \ | |
fedora:{34,35,36} \ | |
rockylinux/rockylinux:{8,9}; | |
do | |
( |
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 was the main Dockerfile before we adopted the RH UBI source image. This may still be useful for building arm 32bit images. | |
FROM debian:buster-slim as fetch-ziti-artifacts | |
# This build stage grabs artifacts that are copied into the final image. | |
# It uses the same base as the final image to maximize docker cache hits. | |
ARG ZITI_VERSION | |
ARG GITHUB_BASE_URL | |
ARG GITHUB_REPO |
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
# krun busybox whoami | |
krun(){ | |
local NAMESPACE=default | |
local PRIVILEGED=false | |
while getopts 'n:pu:' OPT; do | |
case $OPT in | |
n) NAMESPACE=$OPTARG | |
;; | |
p) PRIVILEGED=true |
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
LATEST_GOLANG=$(wget -qO- "https://go.dev/VERSION?m=text" | /bin/grep -Po '^go(\s+)?\K\d+\.\d+\.\d+$'); | |
LATEST_GOLANG_ARCH=go${LATEST_GOLANG}.linux-$(dpkg --print-architecture).tar.gz; | |
wget -qO /tmp/${LATEST_GOLANG_ARCH} https://go.dev/dl/${LATEST_GOLANG_ARCH} | |
sudo tar -xf /tmp/${LATEST_GOLANG_ARCH} -C /usr/local/ | |
echo "~/go/bin:/usr/local/go/bin:$PATH" >> ~/.bashrc |
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
# ${HOME}/.config/systemd/user/x11vnc.service | |
[Unit] | |
Description=Attach Running x11 Server as SPICE Server | |
[Install] | |
WantedBy=default.target | |
[Service] | |
ExecStart=/usr/local/bin/x11spice | |
Restart=always |
NewerOlder