{"id":23066824,"url":"https://github.com/dvsa/dvsa-docker-images","last_synced_at":"2025-04-03T09:13:34.495Z","repository":{"id":248014002,"uuid":"688666164","full_name":"dvsa/dvsa-docker-images","owner":"dvsa","description":"Docker Images for use in DVSA projects ","archived":false,"fork":false,"pushed_at":"2025-03-24T00:16:51.000Z","size":138,"stargazers_count":2,"open_issues_count":1,"forks_count":3,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-24T01:25:08.607Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dvsa.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2023-09-07T20:53:04.000Z","updated_at":"2025-03-03T10:19:44.000Z","dependencies_parsed_at":"2024-07-11T22:48:13.872Z","dependency_job_id":"b00e5df4-d3b0-4ba7-ab8b-95cd57e4ee04","html_url":"https://github.com/dvsa/dvsa-docker-images","commit_stats":null,"previous_names":["dvsa/dvsa-docker-images"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvsa%2Fdvsa-docker-images","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvsa%2Fdvsa-docker-images/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvsa%2Fdvsa-docker-images/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dvsa%2Fdvsa-docker-images/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dvsa","download_url":"https://codeload.github.com/dvsa/dvsa-docker-images/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246970323,"owners_count":20862509,"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":[],"created_at":"2024-12-16T05:15:04.843Z","updated_at":"2025-04-03T09:13:34.471Z","avatar_url":"https://github.com/dvsa.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DVSA Images\nDocker Images for use in DVSA projects. The images are re-built weekly to pull in the latest patches and updates.\n\n## How to use\n\n\u003c!-- `x-release-please-start-version` --\u003e\n```dockerfile\nFROM ghcr.io/dvsa/dvsa-docker-images/php/8.3/fpm-nginx:0.7.0\n```\n\u003c!-- `x-release-please-end` --\u003e\n\n\u003e [!TIP]  \n\u003e Different specifity levels can be used to pin the image version. The most specific is the `git-sha` which is the most immutable. The least specific is `latest` which is the most mutable. See the [tagging strategy](#tagging-strategy) for more information.\n\n## Reccommended image hierarchy\n\n```mermaid\nblock-beta\n    block:image\n        columns 1\n        label[\"Application\"]\n        linux[\"Linux image (Alpine, Ubuntu, etc)\"]\n        language[\"Language image (Node, PHP, etc)\"]\n        base[\"DVSA image (php/8.3/fpm-nginx, php/8.3/cli, etc)\"]\n        project[\"Project-specific Image\"]\n        style label fill:transparent,stroke:0,stroke-width:0\n    end\n```\n\n## Tagging strategy\n\nThe Docker images are tagged during the CD pipeline (running on `push` to `main` and on a `schedule`) with the following tags:\n\n```mermaid\ngitGraph\n    commit id: \"[git-sha1]\"\n    commit tag: \"v1.0.0\" id: \"1.0.0, 1.0, 1, [git-sha2]\"\n    commit id: \"[git-sha3]\"\n    commit id: \"[git-sha4]\"\n    commit tag: \"v1.1.0\" id: \"1.1.0, 1.1, 1, [git-sha5]\"\n    commit tag: \"v1.1.1\" id: \"1.1.1, 1.1, 1, [git-sha6]\"\n    commit id: \"[git-sha7]\"\n    commit id: \"[git-sha8]\"\n    commit tag: \"v1.2.0\" id: \"1.2.0, 1.2, 1, [git-sha9]\"\n    commit id: \"[git-sha10], latest\"\n```\n\n\u003e [!WARNING]\n\u003e **Mutable tags**: `latest`, `[major].[minor]`, \u0026 `[major]`.  \n\u003e **Immutable tags**: `[major].[minor].[patch]`, \u0026 `[git-sha]`.\n\u003e\n\u003e Mutable tags are updated on `push` and `schedule`. `[git-sha]` are updated on every commit. `[major].[minor].[patch]` are updated on every release.\n\n## Adding a new base image\n\n\u003e [!NOTE]  \n\u003e This repository is for _generic_ base images. Do not add project-specific images here. Project-specific images should be added to the project repository.\n\n1. Create a new directory in the root of this repository with the name of the image you want to create. The convention is usually [language]/[version]/[flavour] e.g. `node/12/alpine`, `php/8.3/fpm-nginx` etc.\n\n2. Create a `Dockerfile` in the directory you just created. This file should contain the instructions for building the image.\n\n3. Update the `docker` job in `ci.yaml` and `cd.yaml` and update the matrix to add your new image. This ensures the image is build \u0026 pushed if it has changed (or during a new release).\n    ```yaml\n    strategy:\n      fail-fast: false\n      matrix:\n        base:\n          # ...\n          - node/20/alpine\n        exclude:\n          # ...\n          - base: ${{ github.event_name == 'schedule' || needs.release-please.outputs.release_created || contains(needs.orchestrator.outputs.changed-directories, 'node/20/alpine') \u0026\u0026 'ignored' || 'node/20/alpine' }}\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvsa%2Fdvsa-docker-images","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdvsa%2Fdvsa-docker-images","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdvsa%2Fdvsa-docker-images/lists"}