Runway 1.0.0
This commit is contained in:
commit
dcf819146b
1372 files changed
+188168
No files matched your search
@@ -0,0 +1,171 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>mx.quest</groupId>
|
||||
<artifactId>runway</artifactId>
|
||||
<version>1.0.0</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>runway-dist</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<name>Runway Distribution</name>
|
||||
<description>
|
||||
Assembles the deployment bundle: the runway-<version>-dist.zip and the single-file
|
||||
self-extracting runway-<version>.bin installer. It is the LAST reactor module (it depends on
|
||||
runway-app and the bundled plugins), so at its package phase every sibling jar already exists — which
|
||||
is why the dist lives here and not in runway-app: runway-plugin-protection depends on runway-app, so it
|
||||
builds AFTER it, and the bundle must include the plugin. Build with `mvn -P dist install`.
|
||||
</description>
|
||||
|
||||
<dependencies>
|
||||
<!-- Order-only: force this module to build after the app and the bundled plugin, so the assembly can
|
||||
read their target/ jars. Nothing here is compiled or shipped as a Maven artifact. -->
|
||||
<dependency>
|
||||
<groupId>mx.quest</groupId>
|
||||
<artifactId>runway-app</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<classifier>exec</classifier>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>mx.quest</groupId>
|
||||
<artifactId>runway-plugin-protection</artifactId>
|
||||
<version>${project.version}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<!-- The installer's bundled-plugin refresh (scripts/plugin-seed.sh), its refusal to replace an existing
|
||||
external/application.yml (scripts/install.sh) and the release-notes gate of publish-release.sh
|
||||
(scripts/release-notes.sh) are shell, so their tests are too: scripts/test-plugin-seed.sh,
|
||||
scripts/test-install-config.sh and scripts/test-release-notes.sh run without root or network in this
|
||||
module's target/, and so does scripts/test-release-assets.sh (the release file set: SPI jars and
|
||||
consumer poms, SHA256SUMS, publish-release.sh's refusals and its dry run). Bound to `test`, so a plain `mvn test`/`install` runs them and -DskipTests skips
|
||||
them like any other test. -->
|
||||
<plugin>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>test-installer-scripts</id>
|
||||
<phase>test</phase>
|
||||
<goals>
|
||||
<goal>run</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<skip>${skipTests}</skip>
|
||||
<target>
|
||||
<mkdir dir="${project.build.directory}/installer-tests"/>
|
||||
<exec executable="bash" failonerror="true">
|
||||
<arg value="${project.basedir}/../scripts/test-plugin-seed.sh"/>
|
||||
<arg value="${project.build.directory}/installer-tests"/>
|
||||
</exec>
|
||||
<exec executable="bash" failonerror="true">
|
||||
<arg value="${project.basedir}/../scripts/test-install-config.sh"/>
|
||||
<arg value="${project.build.directory}/installer-tests"/>
|
||||
</exec>
|
||||
<exec executable="bash" failonerror="true">
|
||||
<arg value="${project.basedir}/../scripts/test-release-notes.sh"/>
|
||||
<arg value="${project.build.directory}/installer-tests"/>
|
||||
</exec>
|
||||
<exec executable="bash" failonerror="true">
|
||||
<arg value="${project.basedir}/../scripts/test-release-assets.sh"/>
|
||||
<arg value="${project.build.directory}/installer-tests"/>
|
||||
</exec>
|
||||
</target>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
<profiles>
|
||||
<!--
|
||||
`mvn -P dist package` (or install) builds the deployment artifacts: a distribution zip
|
||||
(runway-<version>-dist.zip) and the single-file self-extracting installer (runway-<version>.bin),
|
||||
the plugin author's runway-spi / runway-spi-testkit jars, sources jars and consumer poms
|
||||
(../scripts/make-spi-assets.sh), then stable-named "latest" aliases (runway-latest.bin /
|
||||
runway-latest-dist.zip) and a SHA256SUMS manifest over all of them (via ../scripts/make-release-aliases.sh)
|
||||
so a release exposes a permanent, always-newest download link. All land in this module's target/ — the
|
||||
set scripts/publish-release.sh uploads.
|
||||
-->
|
||||
<profile>
|
||||
<id>dist</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<configuration>
|
||||
<finalName>runway-${project.version}</finalName>
|
||||
<appendAssemblyId>true</appendAssemblyId>
|
||||
<descriptors>
|
||||
<descriptor>src/assembly/dist.xml</descriptor>
|
||||
</descriptors>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>make-dist-zip</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-antrun-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>make-selfextract-bin</id>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>run</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<target>
|
||||
<!-- The .bin's tar entries take the cut instant from the SAME property
|
||||
as the jars (project.build.outputTimestamp, set once in the reactor
|
||||
pom), so the two can never disagree and a cut edits one value. -->
|
||||
<exec executable="bash" failonerror="true">
|
||||
<env key="BUILD_TIMESTAMP" value="${project.build.outputTimestamp}"/>
|
||||
<arg value="${project.basedir}/../scripts/make-selfextract.sh"/>
|
||||
<arg value="--zip"/>
|
||||
<arg value="${project.build.directory}/runway-${project.version}-dist.zip"/>
|
||||
<arg value="--stub"/>
|
||||
<arg value="${project.basedir}/../scripts/selfextract-stub.sh"/>
|
||||
<arg value="--out"/>
|
||||
<arg value="${project.build.directory}/runway-${project.version}.bin"/>
|
||||
</exec>
|
||||
<!-- The plugin author's artifacts (runway-spi + runway-spi-testkit jars,
|
||||
sources jars and consumer poms) as release assets: no Maven
|
||||
repository serves them (docs/PLUGIN-DEVELOPMENT.md §3). -->
|
||||
<exec executable="bash" failonerror="true">
|
||||
<arg value="${project.basedir}/../scripts/make-spi-assets.sh"/>
|
||||
<arg value="${project.basedir}/.."/>
|
||||
<arg value="${project.build.directory}"/>
|
||||
<arg value="${project.version}"/>
|
||||
</exec>
|
||||
<!-- Stable-named "latest" aliases (permanent Gitea download link) + SHA256SUMS
|
||||
over every shippable artifact, the SPI files included. Runs after the .bin
|
||||
exists. -->
|
||||
<exec executable="bash" failonerror="true">
|
||||
<arg value="${project.basedir}/../scripts/make-release-aliases.sh"/>
|
||||
<arg value="${project.build.directory}"/>
|
||||
<arg value="${project.version}"/>
|
||||
</exec>
|
||||
</target>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
||||
@@ -0,0 +1,102 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
The Runway distribution bundle: a runway-<version>/ tree the installer lays on a host.
|
||||
`mvn -P dist package` (in runway-dist, the last reactor module) zips this
|
||||
(runway-<version>-dist.zip) and then wraps it in the single-file self-extracting
|
||||
runway-<version>.bin (via make-selfextract). Sources are read from the sibling modules'
|
||||
target/ dirs — safe because runway-dist builds after them.
|
||||
-->
|
||||
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.1.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.1.0 http://maven.apache.org/xsd/assembly-2.1.0.xsd">
|
||||
<id>dist</id>
|
||||
<formats>
|
||||
<format>zip</format>
|
||||
</formats>
|
||||
<baseDirectory>runway-${project.version}</baseDirectory>
|
||||
|
||||
<files>
|
||||
<!-- The repackaged executable jar (spring-boot:repackage ran in runway-app). It carries the
|
||||
`exec` classifier so runway-app's MAIN artifact stays the thin jar for reactor siblings that
|
||||
compile `provided` against it. The launcher globs `runway-app-*-exec.jar`. -->
|
||||
<file>
|
||||
<source>${project.basedir}/../runway-app/target/runway-app-${project.version}-exec.jar</source>
|
||||
<outputDirectory>bin</outputDirectory>
|
||||
</file>
|
||||
<!-- The license and the additional permission for plugins, at the release root. -->
|
||||
<file>
|
||||
<source>${project.basedir}/../LICENSE</source>
|
||||
<outputDirectory>.</outputDirectory>
|
||||
</file>
|
||||
<file>
|
||||
<source>${project.basedir}/../LICENSE-EXCEPTION</source>
|
||||
<outputDirectory>.</outputDirectory>
|
||||
</file>
|
||||
<!-- The bundled third-party components (the exec jar's libraries and the console's front-end assets),
|
||||
their licenses and their NOTICE texts. -->
|
||||
<file>
|
||||
<source>${project.basedir}/../THIRD-PARTY-NOTICES</source>
|
||||
<outputDirectory>.</outputDirectory>
|
||||
</file>
|
||||
<!-- The launcher lives beside the jar so its APP_DIR resolves to the release root. -->
|
||||
<file>
|
||||
<source>${project.basedir}/../scripts/runway.sh</source>
|
||||
<outputDirectory>bin</outputDirectory>
|
||||
<fileMode>0755</fileMode>
|
||||
</file>
|
||||
|
||||
<!-- The essential protection plugin, staged under seed/ so install.sh copies it into
|
||||
external/plugins/protection on a fresh install and refreshes it on every upgrade (it moves in
|
||||
lockstep with the kernel; scripts/plugin-seed.sh keeps the previous jar + descriptor as *.bak and
|
||||
backs up edited templates/i18n). A thin jar + its descriptor — the loader picks up any *.jar in the
|
||||
plugin folder. -->
|
||||
<file>
|
||||
<source>${project.basedir}/../runway-plugin-protection/plugin.yml</source>
|
||||
<outputDirectory>seed/plugins/protection</outputDirectory>
|
||||
</file>
|
||||
<file>
|
||||
<source>${project.basedir}/../runway-plugin-protection/target/runway-plugin-protection.jar</source>
|
||||
<outputDirectory>seed/plugins/protection</outputDirectory>
|
||||
</file>
|
||||
</files>
|
||||
|
||||
<fileSets>
|
||||
<!-- The protection plugin's operator-editable resources — the Protection (app + per-site) and DoS
|
||||
screens' templates + i18n bundles. They live at the module root (NOT in the jar, so an operator can
|
||||
edit them), and the plugin loader resolves plugin templates/i18n from the plugin FOLDER — so a fresh
|
||||
install needs the whole bundle staged, not just the jar + descriptor. -->
|
||||
<fileSet>
|
||||
<directory>${project.basedir}/../runway-plugin-protection/templates</directory>
|
||||
<outputDirectory>seed/plugins/protection/templates</outputDirectory>
|
||||
</fileSet>
|
||||
<fileSet>
|
||||
<directory>${project.basedir}/../runway-plugin-protection/i18n</directory>
|
||||
<outputDirectory>seed/plugins/protection/i18n</outputDirectory>
|
||||
</fileSet>
|
||||
|
||||
<fileSet>
|
||||
<directory>${project.basedir}/../scripts</directory>
|
||||
<outputDirectory>scripts</outputDirectory>
|
||||
<includes>
|
||||
<include>install.sh</include>
|
||||
<include>plugin-seed.sh</include>
|
||||
<include>runway.service</include>
|
||||
<include>selfextract-stub.sh</include>
|
||||
<include>make-selfextract.sh</include>
|
||||
</includes>
|
||||
<fileMode>0755</fileMode>
|
||||
</fileSet>
|
||||
|
||||
<!-- Prometheus alert rules + Grafana dashboard (+ their README with the scrape-token config). Shipped
|
||||
as reference assets an operator wires into their own monitoring stack — not read by Runway. -->
|
||||
<fileSet>
|
||||
<directory>${project.basedir}/../monitoring</directory>
|
||||
<outputDirectory>monitoring</outputDirectory>
|
||||
<includes>
|
||||
<include>runway-prometheus-alerts.yml</include>
|
||||
<include>runway-grafana-dashboard.json</include>
|
||||
<include>README.md</include>
|
||||
</includes>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
</assembly>
|
||||
Reference in new issue
Block a user