GitHunt
FO

fowles/infra

Infrastructure to set up the public Compiler Explorer instances and compilers

Compiler Explorer Infrastructure

A whole bag of scripts and AWS config to run Compiler Explorer.

Of most use to the casual observer is probably the code in bin/ce_install - a tool to install the
Compiler Explorer compilers to /opt/compiler-explorer. In particular, the open source compilers can be
installed by anyone by running:

$ make ce  # this installs python modules etc
$ ./bin/ce_install install compilers

This will grab all the open source compilers and put them in /opt/compiler-explorer (which must be writable by
the current user). To get the beta and nightly-built latest compilers, add the parameter --enable nightly to the
command.

To list installation candidates, use ./bin/ce_install list. A single installation can be installed by name.

More info can be found here

Built compilers

Status page to our daily built compilers https://compiler-explorer.github.io/compiler-workflows/build-status

Cleaning up old AMIs

Something like:

$ npx aws-amicleaner --region 'us-east-1' \
    --exclude-in-use --verbose \
    --exclude-newest=2 --exclude-days 7 \
    --include-name 'compiler-explorer*'

Deploying the admin site and associated lambda

  • If you had to change the Python lambda code:
  • make terraform-apply - will build and update the python bundle and updates the endpoints/balancer config to point at
    the new lambda zip
  • make update-admin - deploys the admin site HTML and CSS etc

Note that the events lambda is npm-based and doesn't work in quite the same way, see make upload-events-lambda then
manually make terraform-apply after.

Languages

Python70.9%HCL10.9%PowerShell7.9%Shell3.8%JavaScript2.0%HTML1.4%C1.3%C++1.2%Makefile0.4%CSS0.1%BitBake0.1%Ruby0.0%Rust0.0%D0.0%Go0.0%
BSD 2-Clause "Simplified" License
Created March 12, 2026
Updated March 12, 2026