https://github.com/codecrafters-io/builder
Builds images for execution on CodeCrafters.
https://github.com/codecrafters-io/builder
Last synced: 5 months ago
JSON representation
Builds images for execution on CodeCrafters.
- Host: GitHub
- URL: https://github.com/codecrafters-io/builder
- Owner: codecrafters-io
- Created: 2021-11-27T17:48:24.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-11-27T18:17:29.000Z (over 4 years ago)
- Last Synced: 2025-09-29T15:44:44.658Z (9 months ago)
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Builder
This repository contains the [Builder](https://buildpacks.io/docs/concepts/components/builder/)
used for code submissions on [CodeCrafters](https://codecrafters.io/).
### Contract
- Given source code, outputs an OCI image along with logs relevant to builds.
- A tester can be mounted into this OCI image and used to test the code submission.
### Functionality
- Detects the language of the submission.
- Installs programming language, caching as much as possible.
- Installs dependencies, caching as much as possible.
- Outputs friendly logs for any operations that aren't cached.
### Testing Locally
Many of the scripts in this repository aren't customized to work on MacOS, so we use Vagrant to test this locally.
1. Create your Vagrant VM:
```shell
vagrant up
```
2. SSH into the VM and run tests using a sample configuration.