Extremely fast online playground for every programming language.
Go to file
Radon Rosborough 65c5403b6f Use http for now for Red
There seems to be a problem specific to my laptop's kernel or network
stack that causes an SSL error.
2021-01-13 17:00:57 -08:00
.circleci It's deprecated, but apparently still required 2020-12-26 20:03:07 -08:00
backend Work on a number of additional languages 2021-01-11 19:34:44 -08:00
bin Fix $PATH explicitly in Docker shims 2020-12-30 15:05:56 -08:00
docker Almost all languages working in new system 2021-01-11 22:17:09 -08:00
frontend All tests are passing for Python 2020-12-27 13:12:29 -08:00
langs Use http for now for Red 2021-01-13 17:00:57 -08:00
packer Use hostnamectl 2021-01-01 12:19:11 -08:00
shared Everything through MongoDB 2021-01-10 15:52:23 -08:00
system Successfully run webserver from Docker image 2020-12-25 19:34:15 -08:00
tf Set up initial CI configuration 2020-12-26 19:49:01 -08:00
tools Almost all languages working in new system 2021-01-11 22:17:09 -08:00
.dockerignore Fixups for Packer AMI build 2020-12-25 21:28:08 -08:00
.gitignore Fixups for Packer AMI build 2020-12-25 21:28:08 -08:00
Makefile Get a bunch of new languages working 2021-01-09 14:07:10 -08:00
README.md Create some AWS resources 2020-12-22 15:56:21 -08:00
package.json First attempt at Dockerfile hashing 2020-12-31 07:15:29 -08:00
webpack.config.cjs I hate writing Webpack configs. I hate it so much. 2020-12-27 12:42:06 -08:00
yarn.lock First attempt at Dockerfile hashing 2020-12-31 07:15:29 -08:00

README.md

Riju

For now, this README just has some miscellaneous notes about the build architecture that I'm planning to set up. Later, it will be converted back into a proper README.

Steps to build Riju from scratch locally:

  • Build the packaging Docker image.
  • Generate a Debian package for each language.
  • Build the runtime Docker image.
  • For each language, install its Debian package into a fresh copy of the runtime Docker image and run its tests.
  • Install every language's Debian package into a single copy of the runtime Docker image and run all the tests.

Build artifacts:

  • Packaging image
  • Runtime image
  • Debian packages
  • Application image

Steps to build Riju from cache locally:

  • To run: Pull application image.
  • To build application image: Pull runtime image and all Debian packages.
  • To build Debian packages: Pull packaging image.
  • To build runtime image: Build from scratch.
  • To build packaging image: Build from scratch.

To manipulate published artifacts we basically want to do atomic updates which keep the integration tests passing. Possible operations:

  • Rebuild packaging image: This can be done at any time.
  • Rebuild runtime image: Rebuild application image and verify integration tests are still passing. Do not rebuild any Debian packages.
  • Rebuild Debian package: Verify unit tests are passing. Rebuild application image and verify integration tests are still passing. If rebuilding multiple Debian packages, then we can run the integration tests only once. If rebuilding enough Debian packages, the probability that at least one will fail is very high. We can then trigger a more targeted update. This process could be automated.
  • CI: Rebuild packaging and runtime images if needed. Rebuild Debian packages for any changed languages. Fetch everything unchanged from registry. Rebuild application image and verify integration tests are still passing. If yes and operating on main branch, publish all artifacts and deploy.