* 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.
37 lines
1.4 KiB
Docker
Executable file
37 lines
1.4 KiB
Docker
Executable file
FROM marshall:version AS mysql-proxy
|
|
|
|
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"
|
|
|
|
ENV MYSQL_PROXY_VERSION 0.8.5
|
|
ENV MYSQL_PROXY_TAR_NAME mysql-proxy-$MYSQL_PROXY_VERSION-linux-debian6.0-x86-64bit
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN adduser mysql && \
|
|
apt-get update && \
|
|
apt-get upgrade -y ca-certificates tzdata && \
|
|
apt-get -y install --no-install-recommends \
|
|
wget \
|
|
mysql-client \
|
|
&& \
|
|
wget -q https://downloads.mysql.com/archives/get/p/21/file/$MYSQL_PROXY_TAR_NAME.tar.gz && \
|
|
tar -xzvf $MYSQL_PROXY_TAR_NAME.tar.gz && \
|
|
mv $MYSQL_PROXY_TAR_NAME /opt/mysql-proxy && \
|
|
rm $MYSQL_PROXY_TAR_NAME.tar.gz && \
|
|
DEBIAN_FRONTEND=noninteractive apt-get -y remove wget && \
|
|
apt-get autoremove -yqq && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/ && \
|
|
chown -R mysql:mysql /opt/mysql-proxy
|
|
|
|
COPY main.lua /opt/mysql-proxy/conf/main.lua
|
|
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
|
|
COPY healthcheck.sh /usr/local/bin/healthcheck.sh
|
|
RUN chmod +x /usr/local/bin/entrypoint.sh /usr/local/bin/healthcheck.sh
|
|
CMD [ "/usr/local/bin/entrypoint.sh" ]
|
|
|
|
HEALTHCHECK --interval=5s --timeout=3s --start-period=5s --retries=3 \
|
|
CMD /usr/local/bin/healthcheck.sh || exit 1
|
|
|
|
USER mysql
|