https://github.com/zouloux/docker-debian-ci
Debian 12 docker image for CI tools, with PHP, Composer, Node, Bun, Docker, Git, and other tools.
https://github.com/zouloux/docker-debian-ci
ci docker
Last synced: over 1 year ago
JSON representation
Debian 12 docker image for CI tools, with PHP, Composer, Node, Bun, Docker, Git, and other tools.
- Host: GitHub
- URL: https://github.com/zouloux/docker-debian-ci
- Owner: zouloux
- License: mit
- Created: 2024-05-18T15:12:54.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-19T11:45:41.000Z (about 2 years ago)
- Last Synced: 2025-01-05T16:45:45.250Z (over 1 year ago)
- Topics: ci, docker
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/zouloux/docker-debian-ci
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker Debian CI
Docker CI is an image made for CI runners or build tasks ( tested on Gitlab and Gitea Act Runner ).
It's based on **Debian 12**, with :
- Some tools `curl` / `zip` / `git`
- **PHP** with extensions ( `curl` / `gd` / `xml` / `mysql` / `pgsql` / `sqlite3` / `mbstring` )
- **Node** and associated NPM
- **Docker**
- **Composer**
- **Bun**
> Available on Docker Hub at [zouloux/docker-debian-ci](https://hub.docker.com/r/zouloux/docker-debian-ci)
## Versions
When built, this image creates `/root/versions.txt`.
Here are the current versions available, with their docker image label.
#### With PHP 8.3
Docker image : `zouloux/docker-debian-ci:php8.3-composer2.7-node22.2-npm10.7-docker26.1-bun1.1`
```text
PHP: 8.3.7
Composer: 2.7.6
Node: 22.2.0
NPM: 10.7.0
Docker: 26.1.3
Bun: 1.1.8
```
> Feel free to create an issue to update versions or add dependencies.
The image is published with updates version on `:latest`, and a unique tag is created.
You should definitely target a specific tag in your build, if you do not want your build to crash when a new build will be pushed.
## With Gitlab CI
In your `.gitlab-ci.yml` file :
```yaml
image:
name: zouloux/docker-debian-ci
```
## With Gitea Actions or Act Runner
```yaml
jobs:
my-job:
runs-on: ubuntu-latest # no worries, it will use the debian image
container:
image: zouloux/docker-debian-ci
```
## With Docker
```bash
docker run -it zouloux/docker-debian-ci bash
```
## With Docker Compose
```yaml
services :
debian-ci:
image: zouloux/docker-debian-ci
volumes:
# If docker is used, link to host docker sock
- /var/run/docker.sock:/var/run/docker.sock
command: |
bash -c "
echo '--- ROOT DIRECTORY ---'
pwd
ls -la
echo '--- VERSIONS ---'
cat versions.txt
"
```