https://github.com/cotyhamilton/buildy
A container to build container images from git repos.
https://github.com/cotyhamilton/buildy
containers docker docker-image kubernetes
Last synced: 3 months ago
JSON representation
A container to build container images from git repos.
- Host: GitHub
- URL: https://github.com/cotyhamilton/buildy
- Owner: cotyhamilton
- License: mit
- Created: 2021-06-19T15:06:55.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-19T16:26:13.000Z (about 5 years ago)
- Last Synced: 2025-01-23T09:41:54.206Z (over 1 year ago)
- Topics: containers, docker, docker-image, kubernetes
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# buildy
A container to build container images from git repos.
It uses https://github.com/genuinetools/img as the base image for working with images inside a container.
This project is similar to kaniko, but buildy works with Azure Repos while kaniko does not.
## How to use
### Docker
```
docker run -it --rm \
--security-opt seccomp=unconfined \
--security-opt apparmor=unconfined \
cotyhamilton/buildy \
--git-url= \
--git-source-branch= \
--registry= \ # do not use arg if pushing to dockerhub
--namespace= \
--image-name= \
--tags= \
--registry-user= \
--registry-password= \
```
Instead of passing credentials as args, you may mount a docker config to `/home/user/.docker/config.json`
### Kubernetes
Example pod
```
apiVersion: v1
kind: Pod
metadata:
name: buildy
namespace: ci
spec:
containers:
- name: buildy
image: cotyhamilton/buildy
args:
- "--git-url=https://github.com/cotyhamilton/buildy.git"
- "--git-source-branch=main"
- "--namespace=cotyhamilton"
- "--image-name=buildy"
- "--tags=latest"
volumeMounts:
- name: regcred
mountPath: /home/user/.docker
resources:
limits:
cpu: "1"
memory: 512M
restartPolicy: Never
volumes:
- name: regcred
secret:
secretName: dockerconfig
items:
- key: .dockerconfigjson
path: config.json
```
Refer to [img docs](https://github.com/genuinetools/img#running-with-kubernetes) for security
### Options
Run the container to see all options
```
docker run -it --rm cotyhamilton/buildy
```