Reusable github workflows for AI projects
This contains a collection of reusable workflows crafted for AI projects.
See where it is used at about localAGI
Reliably builds and publishes your AI-project wrapped in docker containers on various registries.
uses: localagi/ai-pipeline/.github/workflows/operation-docker-build-publish.yml@v2
In order of precedence
inputs.context
- will be directly mapped to context ofdocker/build-push-action
, could be a plain git repo alsoinputs.context-repository
- git repository of complex remotes. Full support of submodules etcinputs.context-cache
- a cache key to restore files from (untested)
inputs.context
- in form ofhttps://github.com/my_user/my_repo.git#ref
inputs.context-repository-ref
- use withinputs.context-repository
in form ofref
Defaults to Dockerfile
inputs.dockerfile
- can be any relative, absolute orhttps://
path
local source inputs.context |
remote source inputs.context |
complex remote source inputs.context-repository |
|
---|---|---|---|
local Dockerfile inputs.dockerfile |
☑️ | ☑️ | ☑️ |
remote Dockerfile inputs.dockerfile |
☑️ | ☑️ | ☑️ |
Defaults to gha
cache for docker builds
inputs.cache-from
inputs.cache-to
Set to ${{ null }}
to disable
Clean up the disk beforehand for large builds
inputs.pre-free-disk-space
Set to true
to enable
All enabled by default
inputs.registry-dockerhub-enable
inputs.registry-github-enable
Defaults to README.md
inputs.registry-readme
Supports getting a remote readme fromhttps://
Easily test the resulting containers against your test-notebook
uses: localagi/ai-dedicated-workflows/.github/workflows/operation-test-with-jupyter.yml@v2
-
TBD
For a service using the test pipeline, see here: localAGI/AGiXT-docker
Sophisticated docker builds for parent project This-project.
Easy setup. Compatible. Tweakable. Scaleable.
amd64
, arm64
Containers follow the version scheme of the parent project
main
(default), 0.2.9
, 0.2.5
, etc.
See Releases
e.g. -cuda-{cuda_version}
docker
anddocker compose
are available on your system
These containers require nvidia-container-toolkit
installed and reboot
Short description what it does The following wil get all This-project images and do something
- get
docker-compose.yml
(clone repo, copy or else) - Run
docker compose up
- wait for model download (~7GB)
- open/refresh
http://localhost:3000
Environment variables to set for the specific service
Prepend, e.g. PROJECT_VERSION=1.2.3
foo bar baz
docker compose pull
docker compose rm
Use docker-compose.dev.yaml
as an additon to
- directly mount source code into the container (run your modifications)
- automatically restart the container on error
Run docker compose -f docker-compose.yaml -f docker-compose.dev.yaml up
When there is a new version and there is need of builds or you require the latest main build, feel free to open an issue
Open an issue on the Issue Tracker
We cannot support issues regarding the base software. Please refer to the main project page mentioned in the second line of this card.