summaryrefslogtreecommitdiffstats
path: root/acid (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-08-19acid: Touch up some documentationMalfurious2-4/+4
Signed-off-by: Malfurious <m@lfurio.us>
2023-08-18acid: Add sleep between executing jobsMalfurious2-0/+4
The loop in the main update function will sleep for a configurable amount of time between each job / service entry. This added time will make the output log easier to read on-the-fly, but this change also makes the process of rapidly rebuilding services that are dependent on each other more reliable. Signed-off-by: Malfurious <m@lfurio.us>
2023-08-18acid: source: Display git submodule entries in the logMalfurious1-1/+1
It can be useful to confirm which submodules (and versions) are present for a build, and the output isn't all that noisy either. Just 1 or 2 lines should be printed for each submodule. Signed-off-by: Malfurious <m@lfurio.us>
2023-08-18acid: source: Summarize commit we are building fromMalfurious1-0/+3
For the sake of the logs, print out the oneline summary of the commit we deemed to be the latest available for deployment. The `git checkout "$next"` command that is run just a couple lines up would also display this information if we didn't redirect it to /dev/null. However, it also produces other noisy output such as the "You are in detached HEAD state" message or "Leaving X commits behind" warning. Therefore, just summarize the commit ourselves. Signed-off-by: Malfurious <m@lfurio.us>
2023-08-18acid: Improve git error handlingMalfurious2-11/+16
Exit early from the cyche-source script on key git errors, where previously we would mindlessly continue on to execute a bunch of broken commands. Errors at this stage should be caught to prevent an attempt to build and deploy the code (even --force 'd builds). Signed-off-by: Malfurious <m@lfurio.us>
2023-08-18acid: Make docker compose YML file configurableMalfurious3-15/+16
Facilitate deployments using alternate docker-compose.yml files, or projects which simply use a different filename for the configuration. This setting populates the `docker compose -f` option. Signed-off-by: Malfurious <m@lfurio.us>
2023-08-12acid: build: Bring cychedelic down under its default name as wellMalfurious1-0/+1
If cychedelic is ever started manually, using a pre-existing data volume, the system will believe the previous instance is using a specific random project name and may not properly shutdown the user-initiated instance on a rebuild. Simply attempting to stop the service using its default name will catch this, and not cause any problems in the general case. Signed-off-by: Malfurious <m@lfurio.us>
2023-08-12acid: build: Fix bug in cychedelic project-name generationMalfurious1-2/+4
The nested single quotes in these variables were not being interpreted correctly at their usage locations (the quoted project name was being sent to the docker cli). The quotes were initially wanted for the case where there is not yet any previous_slug, as the command "docker compose --project-name down" is ill-formed. Since we know the actual slug values will not contain spaces, we can do away with the quotes. Instead, prevent $prev from containing any content in the special case described above. This is accomplished by the conditional check [ -n "$prev" ]. Signed-off-by: Malfurious <m@lfurio.us>
2023-08-10acid: Add DockerfileMalfurious1-0/+13
Signed-off-by: Malfurious <m@lfurio.us>
2023-08-09acid: Add configuration templateMalfurious1-0/+31
Signed-off-by: Malfurious <m@lfurio.us>
2023-08-09acid: Add entrypoint scriptMalfurious1-0/+52
Signed-off-by: Malfurious <m@lfurio.us>
2023-08-09acid: Add service build helper scriptMalfurious1-0/+48
This is a merged version of a normal service builder and a cychedelic self-builder. Signed-off-by: Malfurious <m@lfurio.us>
2023-08-08acid: Update check_sourceMalfurious1-8/+21
Script is renamed to 'cyche-source' and updated to account for a couple of potential edge-cases during a git update. Signed-off-by: Malfurious <m@lfurio.us>
2023-08-08acid: Add helper script for monitoring source git repositoriesMalfurious1-0/+47
Signed-off-by: Malfurious <m@lfurio.us>