* linting is fun * mis-detection of missing healthcheck staements. * typo * disable tagging vanity tags on non-main branch * Unbugger node build? * Add gitleaks detector, remove an expired secret. * More linting-derived cleanup * Fiddle with trivy * Fiddle with trivy * add a readme * Fix build bug with php flavours * Marshall should build other flavours of ubuntu. * Fiddle with act cache location. * Add concurrency checks * Composer version gubbins for 7.0/7.1 * ubuntu is just a label, and injected over the top of. * Composer version gubbins for 7.0/7.1 * Run when workflow is altered too please. * Hopefully fix composer stage. * setup tooling meta-tooling. * Add trunk * Disable mirror mode, its being problematic, and increase retries to 5. * Revisit how ghcr login works. * Add trunk checks. * All hail the linter * Heavilly revise workflow * Fettling * Fettling * Fettling * Fettling * Fettling * Cleanup * Cleanup * Fettling.. Why does mitm build but not redis? * Fettling.. Why does mitm build but not redis? * Debuggin * Fettling. * Fix build? * Permissions are a pain * Switch around some should_push logic because envs aren't available that early. * Permissionssssss * Trivy, bane of my life * Fix merge? * Fix labels * Help node along, among other things * Redis 6.1 & 7.1 aren't a thing any more. * Ffff USER nonsense * latest-openssl doesn't exist. * fixup mysqlproxy. * Fix labels * uurrgh * uurrgh * Didn't need to add the mitmproxy user, it exists * Missing ghcr login * Missing backtick * Fix build? * Add validate build step to bouncer. * Fix bouncer build * Disable laravel build * Missing env * Fix swarm mon build * Scout just doesn't seem to work.
38 lines
1.3 KiB
Docker
38 lines
1.3 KiB
Docker
FROM php:cli as swarm-agent
|
|
LABEL maintainer="Matthew Baggett <matthew@baggett.me>" \
|
|
org.label-schema.vcs-url="https://github.com/benzine-framework/docker" \
|
|
org.opencontainers.image.source="https://github.com/benzine-framework/docker"
|
|
|
|
COPY agent.runit /etc/service/agent/run
|
|
RUN chmod +x /etc/service/*/run
|
|
COPY agent /app
|
|
COPY composer.* /app/
|
|
RUN composer install && \
|
|
chmod +x /app/agent && \
|
|
mkdir -p /var/log/agent \
|
|
CMD ["/app/agent"]
|
|
|
|
# Healthcheck to detect if process /app/agent is alive
|
|
HEALTHCHECK --start-period=30s \
|
|
CMD ps aux | grep -v grep | grep "/app/agent" || exit 1
|
|
|
|
# Down-privelege to swarm-monitor
|
|
# Not sure if this is working but I don't care right now.
|
|
USER swarm-monitor
|
|
|
|
FROM ghcr.io/benzine-framework/php:nginx-8.2 as swarm-stats
|
|
LABEL maintainer="Matthew Baggett <matthew@baggett.me>" \
|
|
org.label-schema.vcs-url="https://github.com/benzine-framework/docker" \
|
|
org.opencontainers.image.source="https://github.com/benzine-framework/docker"
|
|
|
|
COPY public /app/public
|
|
COPY composer.* /app/
|
|
RUN composer install
|
|
|
|
# Healthcheck looking for something alive on port 80
|
|
HEALTHCHECK --start-period=30s \
|
|
CMD curl -s -o /dev/null -w "200" http://localhost:80/ || exit 1
|
|
|
|
# Down-privelege to swarm-monitor
|
|
# Not sure if this is working but I don't care right now.
|
|
USER swarm-monitor
|