Skip to content

Instantly share code, notes, and snippets.

View antonioabelgc's full-sized avatar

Antonio Abel García antonioabelgc

View GitHub Profile
@antonioabelgc
antonioabelgc / Dockerfile
Created January 8, 2024 10:27
Docker-HAProxy-SpoaMirror
FROM haproxy:2.0
USER root
RUN apt update
RUN apt install -y autoconf automake build-essential git libcurl4-openssl-dev libev-dev libpthread-stubs0-dev pkg-config
RUN git clone https://github.com/haproxytech/spoa-mirror
WORKDIR spoa-mirror
RUN ./scripts/bootstrap
RUN ./configure --enable-debug
RUN make all
RUN cp ./src/spoa-mirror /usr/local/bin/
@antonioabelgc
antonioabelgc / nginx-brotli-alpine-docker
Last active April 15, 2024 11:29
Dockerfile that builds an Alpine-based Nginx image with the Brotli compression module
ARG NGINX_VERSION=1.25.4
FROM alpine:3.18 as builder
ARG NGINX_VERSION
WORKDIR /build
RUN apk update && apk upgrade
RUN apk add pcre pcre-dev zlib zlib-dev openssl libressl-dev wget git gcc brotli-dev g++ make
RUN wget https://nginx.org/download/nginx-$NGINX_VERSION.tar.gz && tar -zxf nginx-$NGINX_VERSION.tar.gz
RUN git clone https://github.com/google/ngx_brotli && cd ngx_brotli && git submodule update --init --recursive
RUN cd nginx-$NGINX_VERSION && ./configure --with-compat --add-dynamic-module=../ngx_brotli && make modules
@antonioabelgc
antonioabelgc / README.md
Last active March 25, 2024 13:24
This Gist provides a Docker Compose file for setting up a Puppet infrastructure with Puppet Server, Puppet DB, PostgreSQL, and Puppetboard services.

README

This gist contains a Docker Compose file that sets up a Puppet infrastructure with Puppet Server, Davidphay/PuppetDB, PostgreSQL, and Voxpupuli/Puppetboard services.

Description

The services are linked together through environment variables, and a health check is implemented to ensure that the infrastructure is running smoothly.

  • The Puppetboard service is available on http://localhost:80, providing a web interface for Puppet management and monitoring.
  • The Puppet Server can be accessed via :8140 port, serving as the central control point for Puppet agents.