Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .config/dotnet-tools.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"version": 1,
"isRoot": true,
"tools": {
"docfx": {
"version": "2.81.0",
"commands": [
"docfx"
],
"rollForward": false
}
}
}
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Bug report
about: The panel, the launcher or an image does not work as described
labels: bug
---

**Revit Server Stack version** (the zip name, or the commit):

**Revit Server version(s) concerned** (2020 to 2027):

**Docker Desktop version and engine mode** (Windows containers or remote context):

**What you did**:

**What you expected**:

**What happened** (error text, the startup log from the tray icon menu, the job log of the panel):

Please remove tokens, licence keys and customer paths from logs before attaching them.
11 changes: 11 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
name: Feature request
about: Suggest an improvement
labels: enhancement
---

**What do you want to do?**

**What happens today?**

**Which Revit Server versions or parts (panel, launcher, proxy, Dockerfiles) does it concern?**
9 changes: 9 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
## What changes and why

## How it was checked

- [ ] `powershell -NoProfile -ExecutionPolicy Bypass -File panel\tests\Invoke-Tests.ps1` passes
- [ ] A check is added or updated when the behaviour of the panel changes
- [ ] `CHANGELOG.md` has a line about the change under "Unreleased"
- [ ] Dockerfile changes: the versions that were built and started are listed above
- [ ] No installers, Revit models or customer data are added
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CI

on:
push:
branches: [master]
pull_request:

permissions:
contents: read

jobs:
test:
runs-on: windows-latest
steps:
- uses: actions/checkout@v7
- name: Tool versions
shell: pwsh
run: |
# The self-checks skip what needs the docker CLI; this shows which ones did.
git --version
if (Get-Command docker -ErrorAction SilentlyContinue) { docker --version; docker compose version } else { 'no docker CLI' }
node --version
exit 0
- name: Self-checks
shell: pwsh
run: |
powershell -NoProfile -ExecutionPolicy Bypass -File panel/tests/Invoke-Tests.ps1
if ($LASTEXITCODE -ne 0) { throw "Invoke-Tests.ps1 failed with exit code $LASTEXITCODE" }
- name: Build the launcher
shell: pwsh
run: |
powershell -NoProfile -ExecutionPolicy Bypass -File launcher/Build.ps1 -OutDir "$env:RUNNER_TEMP/launcher"
if ($LASTEXITCODE -ne 0) { throw "Build.ps1 failed with exit code $LASTEXITCODE" }
- name: Syntax of the panel script
run: node --check panel/www/app.js
56 changes: 56 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Docs

on:
push:
branches: [master]
paths:
- 'docs/**'
- 'docfx.json'
- '.config/dotnet-tools.json'
- '*.md'
- '.github/workflows/docs.yml'
pull_request:
paths:
- 'docs/**'
- 'docfx.json'
- '.config/dotnet-tools.json'
- '*.md'
- '.github/workflows/docs.yml'
workflow_dispatch:

permissions:
contents: read

concurrency:
group: pages-${{ github.ref }}
cancel-in-progress: false

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-dotnet@v6
with:
dotnet-version: 8.0.x
- run: dotnet tool restore
- run: dotnet docfx docfx.json --warningsAsErrors
# manifest.json records the build machine paths and is not part of the site.
- run: rm _site/manifest.json
- uses: actions/upload-pages-artifact@v5
with:
path: _site

deploy:
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request'
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v5
49 changes: 49 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Release

on:
push:
tags: ['v*']

permissions:
contents: write

jobs:
release:
runs-on: windows-latest
steps:
- uses: actions/checkout@v7
# The tag must name the newest CHANGELOG entry, and that entry must be a version, not "Unreleased".
- name: Check the tag against CHANGELOG.md
shell: pwsh
run: |
$heading = Get-Content -LiteralPath CHANGELOG.md -Encoding utf8 | Where-Object { $_.StartsWith('## [') } | Select-Object -First 1
if (-not $heading) { throw 'CHANGELOG.md has no "## [" entry.' }
$version = [regex]::Match($heading, '^## \[([^\]]+)\]').Groups[1].Value
if ($version -eq 'Unreleased') { throw 'The newest CHANGELOG.md entry is "Unreleased": give it a version and a date before tagging.' }
if ($version -notmatch '^\d+\.\d+\.\d+(-[0-9A-Za-z.-]+)?$') { throw "The newest CHANGELOG.md entry [$version] is not a version." }
if ($env:GITHUB_REF_NAME -cne "v$version") { throw "The tag $env:GITHUB_REF_NAME does not match the newest CHANGELOG.md version v$version." }
"VERSION=$version" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
- name: Self-checks
shell: pwsh
run: |
powershell -NoProfile -ExecutionPolicy Bypass -File panel/tests/Invoke-Tests.ps1
if ($LASTEXITCODE -ne 0) { throw "Invoke-Tests.ps1 failed with exit code $LASTEXITCODE" }
- name: Build the release archive
shell: pwsh
run: |
powershell -NoProfile -ExecutionPolicy Bypass -File launcher/Build.ps1 -Release
if ($LASTEXITCODE -ne 0) { throw "Build.ps1 failed with exit code $LASTEXITCODE" }
- name: Create the GitHub release
shell: pwsh
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
$zip = "dist/RevitServerStack-$env:VERSION.zip"
foreach ($file in $zip, "$zip.sha256", 'dist/RELEASE_NOTES.md') {
if (-not (Test-Path -LiteralPath $file)) { throw "$file was not built." }
}
# A version with a hyphen is a prerelease.
$flags = @()
if ($env:VERSION.Contains('-')) { $flags += '--prerelease' }
gh release create $env:GITHUB_REF_NAME --title "Revit Server Stack $env:VERSION" --notes-file dist/RELEASE_NOTES.md @flags $zip "$zip.sha256"
if ($LASTEXITCODE -ne 0) { throw "gh release create failed with exit code $LASTEXITCODE" }
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
# samples. Anchored, so src/rs<year>/Dockerfile stays tracked.
/samples/rs20*/

# Docs site build (docfx)
/_site/

# Release build: RevitServerStack.exe, the archive and its checksum (launcher/Build.ps1)
/dist/

Expand Down
22 changes: 21 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,39 @@

The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), versions follow [Semantic Versioning](https://semver.org/).

## [Unreleased]
## [1.2.0] - 2026-11-14

### Added

- The panel, the messages it sends and its console window are translated into English, Russian, German, French, Spanish, Brazilian Portuguese, Simplified Chinese and Japanese. The panel starts in the language of the browser (English when it is not available), a selector in the header changes it and the choice is remembered. The menu of the tray icon follows the language of Windows. Texts live in `panel/www/i18n/*.json`, used by the page and by PowerShell alike. How to fix or add a language: [CONTRIBUTING.md](CONTRIBUTING.md#translations).
- Self-checks of the translations: every catalog has the keys, placeholders and markup of English, no text is left in code, every key is used, and the tray menu has all languages.
- Documentation site at <https://mahach666.github.io/RevitServerStack/> (built with docfx from the READMEs), a logo, and links to DeepWiki.
- GitHub Actions: CI runs the self-checks and builds the launcher on every push and pull request; a pushed tag `vX.Y.Z` builds the release archive and publishes the GitHub release. How to cut a release: [CONTRIBUTING.md](CONTRIBUTING.md).
- Optional integrity check of the Autodesk installers: when `RS<year>_INSTALLER_SHA256` is set (or `--build-arg INSTALLER_SHA256=...` is given to `docker build`), the Dockerfiles compare the downloaded installer with that SHA-256 and fail the build on a mismatch. No hashes are pinned in the repository, see "Verifying the installers" in the README.
- Self-checks for the panel back end: saving settings, the settings check at start-up, port 808, `$` in paths of the generated compose files, static paths with `:`, job ids, the result of Start all and Stop all, the job runner (exit code, log, `%` in a command line, cancel), the session token.

### Changed

- Upgrade note: the installer step of the Dockerfiles of all eight versions changed (the optional integrity check), so Docker does not reuse the cached installer and later layers of images built before this update. The first build after updating runs the installer again (the images are about 14 GB); later builds use the cache. The check cannot be moved to a separate step to avoid this: any new step in front of the installer changes the cache chain too, and a step after it would run after the installation.
- The console window of the panel is no longer Russian only: it speaks the language of Windows.
- The English README names buttons and settings as the English interface does, instead of the Russian ones.

### Fixed

- Saving settings with a partial body (or a body that is not a JSON object) reset every setting not mentioned to its default. It now changes only what the body names and refuses a body that is not an object.
- A hand-edited `panel.config.json` with an invalid value (a port that is not a number, a bad context or project name) was not checked at start-up and crashed the panel with a raw .NET error. It is now checked like a save; an invalid file is reported, kept as `panel.config.json.invalid.bak` (the next save overwrites the file) and the default settings are used.
- Settings check: host port 808 is refused when a version needs 808 for Revit, and a disabled version no longer counts as an owner of port 808.
- A `$` in the models folder or in the path of the repository was interpolated by docker compose and mounted another folder. It is now escaped in the generated compose files.
- A request for a static path with `:` (`/C:/x`, `/index.html::$DATA`) answered HTTP 500 with the text of the .NET exception; it answers 404 now.
- Cancelling a job accepted any id and always reported success. The id is validated like the one of the log request, and a job whose process could not be stopped is no longer marked cancelled; the page says when a cancel did not happen.
- A malformed JSON body was reported as an empty body or as missing fields; it is now answered with "not valid JSON".
- The session token came from a time-seeded generator; it is now 32 random bytes of the system's cryptographic generator, and it is compared in constant time.
- A `%` in a path (for example a repository in a folder named `x%TEMP%y`) was expanded by cmd.exe in the job wrapper and corrupted the docker command.
- Start all and Stop all answered `ok: true` even when every target failed; they now answer `ok: false` with HTTP 409 when any target failed.
- The documented run without the panel failed on a fresh clone because `samples\rs<year>` did not exist; the README now creates it first.
- The log of a job could repeat or lose lines when two requests overlapped, and a single failed request stopped the live log and hid the Cancel button. Requests are now one at a time, and a failure is retried and reported after several in a row.
- The page stayed blank without a word when the language files could not be loaded; it now says so and still starts.
- Exit in the tray menu froze the icon for 3 seconds and then killed the panel, leaving its address file behind, and a second start could then open a dead address. The panel is stopped at once, and the address file is removed on exit and when the panel fails.
- Settings did not open when docker had exactly one context: the list of contexts was sent as a single string, not as a list.

## [1.1.0] - 2026-10-15
Expand Down Expand Up @@ -82,5 +101,6 @@ First public release.
- The Dockerfiles for 2026 and 2027 were written against the downloaded installers: the MSI properties, file layout and IIS names were read from them, and the unpacking step was run on the host. No image was built for this release.
- The existing names are kept so that images that are already built stay in use: compose project `samples`, containers `rs<year>` and `revit-proxy`, models in `samples/rs<year>`.

[1.2.0]: https://github.com/mahach666/RevitServerStack/compare/v1.1.0...v1.2.0
[1.1.0]: https://github.com/mahach666/RevitServerStack/compare/v1.0.0...v1.1.0
[1.0.0]: https://github.com/mahach666/RevitServerStack/releases/tag/v1.0.0
24 changes: 20 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,28 @@ powershell -NoProfile -ExecutionPolicy Bypass -File launcher\Build.ps1 -Release

The version comes from the newest `## [x.y.z]` entry of `CHANGELOG.md`. `-Release` packs the files git would commit (tracked and new, ignored ones left out) plus the exe into `dist\RevitServerStack-<version>.zip`, and writes `.sha256` and `RELEASE_NOTES.md` next to it.

To publish: update `CHANGELOG.md`, commit, run the self-checks and the release build, then
## Cutting a release

The release workflow (`.github/workflows/release.yml`) builds and publishes everything when a tag `v<version>` is pushed.

1. In `CHANGELOG.md` turn the "Unreleased" heading into `## [x.y.z] - YYYY-MM-DD` (a hyphen in the version, `x.y.z-rc.1`, makes a prerelease) and add the compare link at the bottom. The newest entry is the version of the release, so keep a new empty "Unreleased" out of the file until the next change.
2. Run the self-checks and the release build locally if you like: `Invoke-Tests.ps1` above, and `launcher\Build.ps1 -Release` (writes to `dist\`).
3. Merge to `master`, then tag that commit and push the tag:

```
git tag -a v<version> -m "Revit Server Stack <version>"
git push origin v<version>
```

The workflow fails before building when the tag is not `v` plus the newest `CHANGELOG.md` version or when that entry is "Unreleased". Otherwise it runs the self-checks, builds `RevitServerStack-<version>.zip` with its `.sha256` and `RELEASE_NOTES.md`, and creates the GitHub release "Revit Server Stack <version>" with the notes and both files. The release workflow has no NuGet or other publishing step.

## Documentation site

The site at <https://mahach666.github.io/RevitServerStack/> is built by docfx from `README.md`, `README.ru.md`, `CONTRIBUTING.md`, `CHANGELOG.md`, `CREDITS.md`, `SECURITY.md` and `LICENSE.md` together with `docs/index.md` and `docs/toc.yml`, so there is no second copy of the text. Links in those files must be relative paths between them or absolute URLs (the build runs with warnings as errors). To preview it:

```
git tag -a v<version> -m "Revit Server Stack <version>"
git push origin v<version>
gh release create v<version> dist\RevitServerStack-<version>.zip dist\RevitServerStack-<version>.zip.sha256 --title "Revit Server Stack <version>" --notes-file dist\RELEASE_NOTES.md
dotnet tool restore
dotnet docfx docfx.json --serve
```

## Moving Revit Server 2026 or 2027 to a new update
Expand Down
30 changes: 27 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
<p align="center">
<img src="docs/images/revitserverstack-banner.png" alt="Revit Server Stack" width="640">
</p>

<p align="center">
<a href="https://github.com/mahach666/RevitServerStack/releases/latest"><img src="https://img.shields.io/github/v/release/mahach666/RevitServerStack?label=release" alt="Latest release"></a>
<a href="https://github.com/mahach666/RevitServerStack/actions/workflows/ci.yml"><img src="https://github.com/mahach666/RevitServerStack/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
<a href="https://github.com/mahach666/RevitServerStack/actions/workflows/docs.yml"><img src="https://github.com/mahach666/RevitServerStack/actions/workflows/docs.yml/badge.svg" alt="Docs"></a>
<a href="https://deepwiki.com/mahach666/RevitServerStack"><img src="https://deepwiki.com/badge.svg" alt="Ask DeepWiki"></a>
</p>

# Revit Server Stack

[Русская версия](README.ru.md)
[Русская версия](README.ru.md) | [Documentation site](https://mahach666.github.io/RevitServerStack/)

Run Autodesk Revit Server 2020 to 2027 in Docker on one Windows machine, several versions side by side, and manage them from a small local web panel.

Expand All @@ -26,7 +37,7 @@ The Dockerfiles for Revit Server 2020 to 2025 come from [dosymep/revit-server-do

## Quick start

1. Download `RevitServerStack-<version>.zip` from the [Releases](../../releases) page and unpack it. The folder keeps your settings and, by default, the models (`samples\rs<year>`), so unpack it on a disk with enough free space.
1. Download `RevitServerStack-<version>.zip` from the [Releases](https://github.com/mahach666/RevitServerStack/releases) page and unpack it. The folder keeps your settings and, by default, the models (`samples\rs<year>`), so unpack it on a disk with enough free space.
2. Run `RevitServerStack.exe`. An icon appears in the notification area and the panel opens in the browser at `http://localhost:8787/`. The icon menu has "Open the panel", "Startup log" and "Exit". Exit stops the panel, not the containers.
3. Find the card of the version you need and press "Build and start". The output of the build is shown live.
4. When the card shows that the version is running, open the admin page:
Expand Down Expand Up @@ -76,12 +87,15 @@ Revit Server itself is different. The version ports and the proxy port are publi

## Run without the panel

A Revit Server version, on the Windows engine:
A Revit Server version, on the Windows engine. The models folder has to exist first, because the Windows engine does not create a missing bind source (the panel creates it for you; a fresh clone has no `samples\rs2022`):

```
if not exist samples\rs2022 mkdir samples\rs2022
docker --context desktop-windows compose -f samples\docker-compose.2022.yml up -d --build
```

In PowerShell the first line is `New-Item -ItemType Directory -Force samples\rs2022 | Out-Null`.

The proxy, on the Linux engine (the default context):

```
Expand All @@ -90,6 +104,16 @@ docker compose -f samples\docker-compose.proxy.yml up -d

Replace `up -d --build` with `stop` or `down` to stop or remove. The samples publish only the HTTP port (`2022:80`). To let Revit connect, add `- '808:808'` to the `ports` list of one version. The sample `nginx.conf` routes all eight versions, while the panel generates a config for the enabled ones only.

## Verifying the installers

The Dockerfiles download the Autodesk installers over HTTPS. The repository does not pin their SHA-256: Autodesk may re-publish a file under the same address, and a hash that was not checked against the vendor would be worse than none. If you want the build to fail when the download is not the file you expect, give it the SHA-256 of that file (from Autodesk, or `Get-FileHash <file> -Algorithm SHA256` on a copy you trust):

- with the panel or the tray icon: set the environment variable `RS<year>_INSTALLER_SHA256` (for example `RS2022_INSTALLER_SHA256`) before starting them;
- with the compose samples: set the same variable in the shell before `docker compose ... up -d --build`;
- with `docker build` directly: `docker build --build-arg INSTALLER_SHA256=<hash> src\rs2022`.

An empty value, the default, means no check. For 2026 and 2027 the hash is that of the `.sfx.exe` installer (the 7-Zip helper is pinned already). The check runs when the image is built, so rebuild an existing image after setting the value. Note: after updating to this version the first build of every image runs the installer again (about 14 GB), because the installer step of the Dockerfiles changed; later builds use the cache.

## Docker on another computer

The Revit Server containers can run on a server or on another PC while the panel stays on yours. The panel drives Docker through docker contexts, so any engine docker can reach works.
Expand Down
Loading
Loading