first commit
This commit is contained in:
commit
3d6c49df65
16 files changed
+1137
No files matched your search
Executable
+21
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
set -Eeuo pipefail
|
||||
SRC=${1:?usage: check-rustproxy-source.sh /path/to/RustProxy}
|
||||
|
||||
for f in \
|
||||
Cargo.toml \
|
||||
debian/rustproxy.service \
|
||||
debian/rustproxy.environment \
|
||||
debian/rustproxy.logrotate \
|
||||
debian/rustproxy.tmpfiles \
|
||||
debian/rustproxy.postinst \
|
||||
grafana/rustproxy-overview.json; do
|
||||
[[ -f "$SRC/$f" ]] || { echo "missing: $f" >&2; exit 1; }
|
||||
done
|
||||
|
||||
grep -q '^name = "rust-proxy"' "$SRC/Cargo.toml"
|
||||
grep -q '^version = "0.26.6"' "$SRC/Cargo.toml"
|
||||
grep -q '^ExecStart=/usr/bin/rust-proxy serve' "$SRC/debian/rustproxy.service"
|
||||
grep -q '^RUST_PROXY_DATA_DIR=/var/lib/rustproxy' "$SRC/debian/rustproxy.environment"
|
||||
|
||||
echo 'RustProxy 0.26.6 packaging layout: OK'
|
||||
Executable
+27
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env bash
|
||||
set -Eeuo pipefail
|
||||
ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
||||
|
||||
for f in "$ROOT"/start.sh "$ROOT"/scripts/*.sh "$ROOT"/tests/*.sh; do
|
||||
bash -n "$f"
|
||||
done
|
||||
|
||||
grep -q 'FROM rockylinux:9' "$ROOT/Dockerfile"
|
||||
grep -q 'python3.11' "$ROOT/Dockerfile"
|
||||
grep -q 'RUST_PROXY_PYTHON=/usr/bin/python3.11' "$ROOT/Dockerfile"
|
||||
grep -q 'nfpm package' "$ROOT/scripts/build-release.sh"
|
||||
grep -q 'aptly .*publish' "$ROOT/scripts/build-release.sh"
|
||||
grep -q 'createrepo_c' "$ROOT/scripts/build-release.sh"
|
||||
grep -q 'current.new' "$ROOT/scripts/build-release.sh"
|
||||
grep -q 'last_package_release' "$ROOT/scripts/build-release.sh"
|
||||
grep -q 'repo add -force-replace' "$ROOT/scripts/build-release.sh"
|
||||
grep -q '/run/package-builder/gnupg' "$ROOT/scripts/entrypoint.sh"
|
||||
grep -q 'rustproxy-overview.json' "$ROOT/scripts/prepare-package.sh"
|
||||
grep -q 'debian/${PACKAGE_NAME}.service' "$ROOT/scripts/prepare-package.sh"
|
||||
grep -q 'gpg/private-key.asc' "$ROOT/start.sh"
|
||||
grep -q 'docker compose' "$ROOT/start.sh"
|
||||
grep -q 'Key-Type: RSA' "$ROOT/start.sh"
|
||||
grep -Fq '${SOURCE_REPO:?SOURCE_REPO is required}' "$ROOT/docker-compose.yml"
|
||||
grep -Fq '${REPOSITORY_URL:?REPOSITORY_URL is required}' "$ROOT/docker-compose.yml"
|
||||
|
||||
echo 'static checks: OK'
|
||||
Reference in new issue
Block a user