The website hosting the OpenTofu Installer script and installation resources
Find a file
Christian Mesh 28c5efdf99
Merge pull request #44 from opentofu/license-change
License change to MPL-2.0
2025-02-12 15:56:16 -05:00
.github/workflows Fixes #34: Bumping upload-artifacts 2024-09-17 11:37:37 +02:00
functions Fixes opentofu/opentofu#1131: Statically generated releases page (#25) 2024-05-17 16:49:29 +02:00
releases-generator add support for pagination in GetReleases 2024-12-30 13:01:12 +02:00
static fix a typo in error message 2024-12-26 17:52:09 +02:00
tests Cleanup 2024-11-05 10:07:26 +01:00
.gitignore Fixes opentofu/opentofu#1131: Statically generated releases page (#25) 2024-05-17 16:49:29 +02:00
build.sh Fixes opentofu/opentofu#1131: Statically generated releases page (#25) 2024-05-17 16:49:29 +02:00
go.mod Fixes opentofu/opentofu#1131: Statically generated releases page (#25) 2024-05-17 16:49:29 +02:00
LICENSE This PR changes the LICENSE file from Apache-2.0 to MPL-2.0 to match up with the package.json and the rest of the repositories. This change requires a GitHub review from @ollevche @cam72cam @jjshanks @Yantrio @pdecat @timofurrer @MatthewJohn @adamconnelly @aksyuma @Evi1Pumpkin @bunniseng 2025-01-15 17:18:52 +01:00
package-lock.json Initial import 2023-12-18 15:01:51 +01:00
package.json Initial import 2023-12-18 15:01:51 +01:00
README.md docs: update README.md 2024-12-09 04:18:54 +01:00

OpenTofu distribution site

This repository contains the source code for the get.opentofu.org distribution site. It is deployed on Cloudflare Pages. The installation scripts are located in static/install-opentofu.sh (POSIX) and static/install-opentofu.ps1 (Powershell). The Cloudflare function managing the MIME type assignment is located in functions/index.ts.

Testing the script

Linux

You can test the installation script manually, or you can use docker compose to run the automated

tests:

cd tests/linux 
./test-all.sh

Windows

cd tests\windows
& '.\test-all.ps1'

Testing the site

You can test the site locally using wrangler if you have NodeJS/NPM installed:

npm i
cd static
npx wrangler pages dev .