Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frezbo/dockerfiles
Leaner and more secure container images for personal use
https://github.com/frezbo/dockerfiles
Last synced: 3 months ago
JSON representation
Leaner and more secure container images for personal use
- Host: GitHub
- URL: https://github.com/frezbo/dockerfiles
- Owner: frezbo
- License: mit
- Created: 2021-01-09T19:58:34.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-08-15T10:57:40.000Z (5 months ago)
- Last Synced: 2024-10-14T06:13:08.046Z (3 months ago)
- Language: Shell
- Homepage:
- Size: 91.8 KB
- Stars: 11
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# dockerfiles
[![Build and Publish Docker image](https://github.com/frezbo/dockerfiles/actions/workflows/ci.yml/badge.svg)](https://github.com/frezbo/dockerfiles/actions/workflows/ci.yml)
Repo for various linux container images.
- [dockerfiles](#dockerfiles)
- [Inspiration](#inspiration)
- [Project Structure](#project-structure)# Inspiration
* Mostly inspired from [Jess Frazelle's](https://github.com/jessfraz/) [dockerfiles](https://github.com/jessfraz/dockerfiles) repo
* Rebuild public images to remove shell and make it leaner and secure
* Build images for repos that doesn't have a dockerfile
* Automatic dependency updates using [Dependabot](https://docs.github.com/en/github/administering-a-repository/keeping-your-dependencies-updated-automatically)# Project Structure
* Sample project structure
```tree
.
├── docker-bake.hcl
├── generate_matrix.sh
├── hydroxide
│ ├── Dockerfile
│ ├── go.mod
│ ├── go.sum
│ └── README.md
├── LICENSE
├── README.md
└── vaultwarden
├── Dockerfile
├── README.md
└── test.sh```
Each folder contains a `Dockerfile`, a `README.md`, and an optional `test.sh`
The `go.mod` is used to declare a weak dependency on upstream projects so that [Dependabot](https://docs.github.com/en/github/administering-a-repository/keeping-your-dependencies-updated-automatically) can manage updates.
[`generate_matrix.sh`](../generate_matrix.sh) is used to dynamically generate a [GitHub actions matrix](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstrategy). The matrix is generated only on either `Dockerfile` or `go.mod` file changes.
The container image tags follow the upstream releases. The version is extracted from either `Dockerfile` or `go.mod` by [`generate_matrix.sh`](../generate_matrix.sh) and passed on to *buildx* as `VERSION` *build-arg*. [Ref](../.github/workflows/ci.yml)