update: the history of the package is CHANGELOG.md, from which the build writes debian/changelog, the build, publish and development scripts are in Python, and the development tools keep their settings and credentials in .lm-dev-config.
Release / release (push) Failing after 14m43s
Release / release (push) Failing after 14m43s
This commit is contained in:
1 parent
a7bfabcb89
commit
6911d16fa3
26 files changed
+1966
-2105
No files matched your search
@@ -2543,9 +2543,9 @@ PostgreSQL is not running yet.
|
||||
| `router_url` | The server's status web service | On the server, `http://127.0.0.1:7091`, the web service behind Caddy |
|
||||
| `database` | A PostgreSQL connection string for the sessions | The `linux-manager-ui` database on the server |
|
||||
| `listen` | On the server, the interfaces the firewall opens `port` on: `internal`, `external` or `both` | `both` |
|
||||
| `bind` | The one address to listen on, with `port`, off the server, as `dev.sh` sets it | none; on the server `127.0.0.1:7090` |
|
||||
| `bind` | The one address to listen on, with `port`, off the server, as `dev.py` sets it | none; on the server `127.0.0.1:7090` |
|
||||
| `port` | The port of `bind`; on the server, Caddy's plain HTTP port of the manager, which redirects to the HTTPS address while HTTPS is on unless `https.disable_auto_redirect` is `true` | `7080` |
|
||||
| `terraform_dir` | A Terraform root directory whose outputs give `router_url` when it is not set; `dev.sh` sets it | none |
|
||||
| `terraform_dir` | A Terraform root directory whose outputs give `router_url` when it is not set; `dev.py` sets it | none |
|
||||
| `iac_tool` | The tool that reads the outputs of `terraform_dir`: `terraform` or `tofu` | `terraform` |
|
||||
|
||||
From the outputs of `<iac_tool> -chdir=<terraform_dir> output -json`, read every 30 seconds at
|
||||
@@ -2577,20 +2577,20 @@ echo 'linux-manager linux-manager/admin_password password s3cr3t-pass' | debconf
|
||||
|
||||
### Running the application on a workstation
|
||||
|
||||
`dev.sh` runs the manager and the Vite development server, which reloads on changes, on the
|
||||
`dev.py` runs the manager and the Vite development server, which reloads on changes, on the
|
||||
workstation; the application is at http://localhost:5180. Its first argument is the
|
||||
`config.json` of the platform that deployed the server. Its `module_root`, relative to the
|
||||
directory of that file, is the Terraform root module whose outputs give the server's address.
|
||||
The second argument, optional, is the connection string of a PostgreSQL database for the
|
||||
sessions; without it the sessions are kept in the database `PGDATABASE` names, or the one named
|
||||
after the login, and libpq takes the server, port, user, password and SSL mode from the `PG*`
|
||||
variables of the environment, such as those of the platform's `pg.env.sh`. `dev.sh` writes them
|
||||
variables of the environment, such as those of the platform's `pg.env.sh`. `dev.py` writes them
|
||||
as `terraform_dir` and `database`, with the platform's `iac_tool` and `bind` `127.0.0.1`, to `dev.json` in the repository root, which is not in Git, and
|
||||
the manager reads that and listens on `127.0.0.1:7080`:
|
||||
|
||||
```sh
|
||||
./dev.sh /path/to/azure-platform/config.json
|
||||
./dev.sh /path/to/azure-platform/config.json 'host=localhost dbname=manager user=manager password=secret'
|
||||
./dev.py /path/to/azure-platform/config.json
|
||||
./dev.py /path/to/azure-platform/config.json 'host=localhost dbname=manager user=manager password=secret'
|
||||
```
|
||||
|
||||
It creates `.venv` with `psycopg[binary]` and `requests` when they are missing, and installs the npm dependencies
|
||||
@@ -2635,7 +2635,7 @@ key pair, everything under `/etc/swanctl`, the folders of the web sites in `/var
|
||||
## Building
|
||||
|
||||
```sh
|
||||
./build.sh
|
||||
./build.py
|
||||
```
|
||||
|
||||
The build runs in a container from the repository root: a Node.js stage builds the
|
||||
@@ -2645,9 +2645,34 @@ container runtime is Apple's `container` on macOS and Docker on Linux, or `CONTA
|
||||
when set, for example Docker on a remote engine:
|
||||
|
||||
```sh
|
||||
CONTAINER_RUNTIME=docker DOCKER_CONTEXT=build-host ./build.sh
|
||||
CONTAINER_RUNTIME=docker DOCKER_CONTEXT=build-host ./build.py
|
||||
```
|
||||
|
||||
`./publish.sh` uploads the package to the component `main` of the distribution `resolute`
|
||||
(Ubuntu 26.04, the only supported release) of the configured repository, skipping a
|
||||
distribution that has the version already; `DISTRIBUTIONS` names others.
|
||||
The build writes `debian/changelog` from `CHANGELOG.md` with `bin/changelog.py`; the file is
|
||||
not kept in the repository.
|
||||
|
||||
`./publish.py` uploads the package of the newest `CHANGELOG.md` entry from `out/` to the
|
||||
component `main` of the distribution `resolute` (Ubuntu 26.04, the only supported release) of the
|
||||
Gitea Debian repository of `OWNER` at `SERVER_URL`, with the token `PACKAGES_TOKEN` or else the
|
||||
content of `~/.gitea-packages-token`, skipping a distribution that has the version already;
|
||||
`DISTRIBUTIONS` names others.
|
||||
|
||||
## Releasing
|
||||
|
||||
`CHANGELOG.md` is the package's history. Its newest entry, a `## x.y.z` heading, a summary
|
||||
paragraph and `-` items, is the next release; `x.y.z` is the Debian version `x.y.z-1`, and
|
||||
`x.y.z-n` is a later release of the same code.
|
||||
|
||||
```sh
|
||||
./release.py
|
||||
./release.py --push
|
||||
./release.py --no-tag --push
|
||||
./release.py -n --push
|
||||
```
|
||||
|
||||
`./release.py` writes the current time into the newest entry's heading, `## x.y.z - YYYY-MM-DD
|
||||
HH:MM:SS +ZZZZ`, and commits everything with the entry's summary as the message; the release stays
|
||||
on the machine, and the next change needs a new entry. `--push` also tags the version, `x.y.z` or
|
||||
`x.y.z-n`, and pushes `main` and the tag, which starts the release workflow; a committed entry is
|
||||
pushed this way later too. `--no-tag` makes an internal release: `--push` then pushes `main` alone.
|
||||
`-n` prints the heading and the git commands instead of making them.
|
||||
Reference in new issue
Block a user