{"id":15674495,"url":"https://github.com/mjambon/ocaml-layer","last_synced_at":"2025-05-05T20:54:11.921Z","repository":{"id":39544750,"uuid":"280723824","full_name":"mjambon/ocaml-layer","owner":"mjambon","description":"Make your own OCaml base image for fast CI jobs","archived":false,"fork":false,"pushed_at":"2025-01-07T04:30:37.000Z","size":50,"stargazers_count":14,"open_issues_count":3,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T23:31:39.802Z","etag":null,"topics":["docker","ocaml","opam"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mjambon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-07-18T19:22:12.000Z","updated_at":"2025-01-07T04:30:40.000Z","dependencies_parsed_at":"2024-04-27T00:25:19.995Z","dependency_job_id":"0e95ebef-835c-4654-a6cd-2bd541d5a2c1","html_url":"https://github.com/mjambon/ocaml-layer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjambon%2Focaml-layer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjambon%2Focaml-layer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjambon%2Focaml-layer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mjambon%2Focaml-layer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mjambon","download_url":"https://codeload.github.com/mjambon/ocaml-layer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252576835,"owners_count":21770720,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","ocaml","opam"],"created_at":"2024-10-03T15:45:40.028Z","updated_at":"2025-05-05T20:54:11.903Z","avatar_url":"https://github.com/mjambon.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"ocaml-layer\n==\n[![CircleCI badge](https://circleci.com/gh/mjambon/ocaml-layer.svg?style=svg)](https://app.circleci.com/pipelines/github/mjambon/ocaml-layer)\n\nBring your team's OCaml CI jobs down to 1 min.\n\nMotivation\n--\n\nThe goal is to set up a cached build environment on which your team can\ncompile and test their own OCaml software, quickly every time.\n\n* Pre-install all the external dependencies - opam packages and more.\n* Start from the base Docker image of your choice.\n* It's admin-friendly. Maintenance requires no OCaml knowledge.\n* Customize by forking and editing this git repo.\n* It's Docker. Reproducible locally and not tied to a CI vendor's caching.\n\nUsage\n--\n\nFor evaluation purposes, you can simply run `make` and watch\nan image being built with some default settings.\n\nFor actual use, follow these steps:\n\n1. Create your own Docker repository on\n   [Docker Hub](https://hub.docker.com/) or some other registry.\n2. Fork this git repository.\n3. Add packages to the lists in `common-config.sh`.\n4. Create or edit one configuration file per container, in `configs/`.\n5. Adjust the `SELECTED_CONFIGS` variable in the `Makefile`.\n6. Run `make` to build the Docker images.\n7. Run `make push` to upload the images.\n8. Use these images as base images in your CI jobs.\n\nYou can reuse and adapt the [CircleCI config](.circleci/config.yml) of\nthis repo to rebuild your images on a weekly basis or so.\n\nExample\n--\n\nThe config I use for my own needs is\n[common-config.sh](https://github.com/mjambon/ocaml-layer/blob/mjambon/common-config.sh)\nand [configs](https://github.com/mjambon/ocaml-layer/tree/mjambon/configs).\nThe Docker images end up on Docker Hub:\n[minimum OCaml version](https://hub.docker.com/r/mjambon/mj-ocaml-4.02/tags)\nand [latest OCaml](https://hub.docker.com/r/mjambon/mj-ocaml/tags).\nThey are updated weekly using CircleCI\n([config](https://github.com/mjambon/ocaml-layer/blob/mjambon/.circleci/config.yml)).\n\nSuggestions\n--\n\n* If you're an individual open-source developer, you may want to\n  target two versions of OCaml: the minimum version that you're\n  willing to support and the latest version.\n* The [ocaml/opam2 images](https://hub.docker.com/r/ocaml/opam2/)\n  already support many flavors of operating systems and are\n  graciously maintained for you. You probably should use those if the\n  speed of routine CI builds isn't a priority for you.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjambon%2Focaml-layer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmjambon%2Focaml-layer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmjambon%2Focaml-layer/lists"}