Bring the application, own tests, Dockerfile, toolchain, compose stack,
HAProxy, k6 and RustFS configuration, migrations, hooks, evidence and
scenario scripts and the CI job from the lab 4 solution commit d2744bc,
merge the lab 4 Makefile targets into the lab 5 skeleton Makefile
without touching its targets, and append the lab 4 solution variables
to the skeleton .env.example. The package and the application follow
the contract version 1.5.0, and the image and the throwaway test
containers are tagged lab5 so they do not collide with a lab 4 stand on
the same host.
This is the starting point of the lab 5 cycle: lint, own tests and the
offline skeleton check pass before any lab 5 change.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
13 lines
464 B
Bash
Executable File
13 lines
464 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
secret() { tr -d '\r\n' < "/run/secrets/$1"; }
|
|
endpoint="${S3_ENDPOINT:-http://s3:9000}"
|
|
RC_HOST_root="${endpoint%%://*}://$(secret s3_root_user):$(secret s3_root_password)@${endpoint#*://}"
|
|
RC_HOST_api="${endpoint%%://*}://$(secret s3_access_key_id):$(secret s3_secret_access_key)@${endpoint#*://}"
|
|
export RC_HOST_root RC_HOST_api
|
|
rc alias set anon "$endpoint" --anonymous >/dev/null
|
|
case "${1:-}" in
|
|
sh|wget) exec "$@" ;;
|
|
esac
|
|
exec rc "$@"
|