@celilo/e2e 0.20.4 → 0.20.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docker/Dockerfile.greenwave-sim +1 -1
- package/docker/Dockerfile.ip-echo +1 -1
- package/docker/Dockerfile.isitup +1 -1
- package/docker/Dockerfile.management +1 -1
- package/docker/Dockerfile.npm-registry-sim +1 -1
- package/docker/Dockerfile.proxmox-sim +1 -1
- package/docker/Dockerfile.registry +1 -1
- package/docker/Dockerfile.signal-sim +1 -1
- package/package.json +3 -3
- package/scripts/dockerhub-login.sh +26 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
FROM oven/bun:
|
|
1
|
+
FROM oven/bun:1.4.2@sha256:9114c058aeae42162ee16dd5084b95fe9473970bb6bcb5b232ab1630f0546895
|
|
2
2
|
|
|
3
3
|
# iproute2 so the entrypoint can see its own addressing when debugging; the
|
|
4
4
|
# service itself needs no routing changes (it sits on internet-external with
|
package/docker/Dockerfile.isitup
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
FROM oven/bun:
|
|
1
|
+
FROM oven/bun:1.4.2@sha256:9114c058aeae42162ee16dd5084b95fe9473970bb6bcb5b232ab1630f0546895
|
|
2
2
|
|
|
3
3
|
# Caddy (for ACME/TLS termination) + tools needed by entrypoint.sh.
|
|
4
4
|
# iproute2 provides `ip` so the entrypoint can rewrite the default route
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
FROM oven/bun:
|
|
1
|
+
FROM oven/bun:1.4.2@sha256:9114c058aeae42162ee16dd5084b95fe9473970bb6bcb5b232ab1630f0546895
|
|
2
2
|
|
|
3
3
|
# This Dockerfile produces a *vanilla* management image — bun + unzip +
|
|
4
4
|
# bunfig, no celilo. `cele2e build-infra` runs install.sh inside a
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
# arrives: it can queue an inbound reply, fail a recipient inside a success,
|
|
7
7
|
# and revoke the device link on demand — none of which the real unlinked
|
|
8
8
|
# daemon can be made to do.
|
|
9
|
-
FROM oven/bun:1@sha256:9114c058aeae42162ee16dd5084b95fe9473970bb6bcb5b232ab1630f0546895
|
|
9
|
+
FROM oven/bun:1.4.2@sha256:9114c058aeae42162ee16dd5084b95fe9473970bb6bcb5b232ab1630f0546895
|
|
10
10
|
|
|
11
11
|
WORKDIR /app
|
|
12
12
|
COPY simulators/signal-cli/server.ts ./server.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celilo/e2e",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.5",
|
|
4
4
|
"description": "E2E test infrastructure for Celilo-deployed applications. Provides a simulated internet with DNS hierarchy, ACME server, firewalls, and target machines in Docker.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"README.md"
|
|
39
39
|
],
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@celilo/capabilities": "^5.1.
|
|
41
|
+
"@celilo/capabilities": "^5.1.1",
|
|
42
42
|
"@celilo/cli-display": "^0.2.0",
|
|
43
|
-
"@celilo/event-bus": "^0.
|
|
43
|
+
"@celilo/event-bus": "^0.7.0",
|
|
44
44
|
"@celilo/terraform-fake": "^0.3.1",
|
|
45
45
|
"yaml": "^2.8.0",
|
|
46
46
|
"zod": "^3.24.1"
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# Authenticate the builder to Docker Hub before any e2e image build.
|
|
3
|
+
#
|
|
4
|
+
# celilo#1376: the e2e base images are digest-pinned, which makes a pull
|
|
5
|
+
# REPRODUCIBLE — it does not make it ALLOWED. Docker Hub meters anonymous pulls
|
|
6
|
+
# per source IP, and once the builder's share is spent every pull fails at
|
|
7
|
+
# `load metadata` with:
|
|
8
|
+
#
|
|
9
|
+
# ERROR: pull access denied ... insufficient_scope: authorization failed
|
|
10
|
+
#
|
|
11
|
+
# which reads like a missing image rather than a spent quota. An authenticated
|
|
12
|
+
# pull draws on the account's much larger allowance instead.
|
|
13
|
+
#
|
|
14
|
+
# No credentials configured (a fork, a local run) => stay anonymous and say so,
|
|
15
|
+
# rather than failing the build for a quota that may well not be spent.
|
|
16
|
+
set -eu
|
|
17
|
+
|
|
18
|
+
if [ -z "${DOCKERHUB_USERNAME:-}" ] || [ -z "${DOCKERHUB_TOKEN:-}" ]; then
|
|
19
|
+
echo "DOCKERHUB_USERNAME/DOCKERHUB_TOKEN unset — pulling Docker Hub anonymously."
|
|
20
|
+
echo "Anonymous pulls share this host's IP quota; a spent quota fails as"
|
|
21
|
+
echo "'insufficient_scope: authorization failed' at 'load metadata' (celilo#1376)."
|
|
22
|
+
exit 0
|
|
23
|
+
fi
|
|
24
|
+
|
|
25
|
+
printf '%s' "${DOCKERHUB_TOKEN}" |
|
|
26
|
+
docker login --username "${DOCKERHUB_USERNAME}" --password-stdin
|