tailscale installation
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Necesita aclaración
- Estado de actividad
- Estancado
- Stack tecnológico
- docker, postgres
- Área
- databases, infrastructure, networking
Línea de trabajo
Comienza con la configuración de Tailscale y el punto de entrada CMD del Dockerfile; después, inspecciona el script referenciado tailscale/wrapper.sh. Reproduce el comportamiento de inicio y apagado y verifica que la máquina permanezca conectada en el panel de Tailscale; el issue estará completado cuando la instancia siga disponible a través de la red de Tailscale.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Hey,
I'm trying to achieve that this instance be available only from tailscale network, but I'm receiving "tailscaled got signal terminated; shutting down" after it started, a machine on a few seconds appears on my tailscale dashboard as connected and then gone after a few seconds.
the last docker file:
ARG PG_VERSION=15.3
ARG PG_MAJOR_VERSION=15
ARG VERSION=custom
# Stage 1: Building Go binaries
FROM golang:1.20 AS builder
WORKDIR /go/src/github.com/fly-apps/fly-postgres
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -v -o /fly/bin/event_handler ./cmd/event_handler
RUN CGO_ENABLED=0 GOOS=linux go build -v -o /fly/bin/failover_validation ./cmd/failover_validation
RUN CGO_ENABLED=0 GOOS=linux go build -v -o /fly/bin/pg_unregister ./cmd/pg_unregister
RUN CGO_ENABLED=0 GOOS=linux go build -v -o /fly/bin/start_monitor ./cmd/monitor
RUN CGO_ENABLED=0 GOOS=linux go build -v -o /fly/bin/start_admin_server ./cmd/admin_server
RUN CGO_ENABLED=0 GOOS=linux go build -v -o /fly/bin/start ./cmd/start
COPY ./bin/* /fly/bin/
# Stage 2: Tailscale
FROM alpine:latest as tailscale
RUN apk update && apk add ca-certificates iptables ip6tables bash bind-tools jq && rm -rf /var/cache/apk/*
WORKDIR /app
ARG TAILSCALE_VERSION=1.54.1
ENV TSFILE=tailscale_${TAILSCALE_VERSION}_amd64.tgz
RUN wget https://pkgs.tailscale.com/stable/${TSFILE} && tar xzf ${TSFILE} --strip-components=1
COPY tailscale/wrapper.sh ./wrapper.sh
# Stage 3: Postgres Exporter
FROM wrouesnel/postgres_exporter:latest AS postgres_exporter
# Final Stage
FROM postgres:${PG_VERSION}
ENV PGDATA=/data/postgresql
ARG VERSION
ARG PG_MAJOR_VERSION
ARG POSTGIS_MAJOR=3
ARG HAPROXY_VERSION=2.8
LABEL fly.app_role=postgres_cluster
LABEL fly.version=${VERSION}
LABEL fly.pg-version=${PG_VERSION}
LABEL fly.pg-manager=repmgr
# Install dependencies
RUN apt-get update && apt-get install --no-install-recommends -y \
ca-certificates iproute2 iptables postgresql-$PG_MAJOR_VERSION-repmgr curl bash dnsutils vim socat procps ssh gnupg rsync barman-cli barman barman-cli-cloud cron \
&& apt autoremove -y
# PostGIS
RUN apt-get update && apt-get install --no-install-recommends -y \
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR \
postgresql-$PG_MAJOR-postgis-$POSTGIS_MAJOR-scripts
# Haproxy
RUN curl https://haproxy.debian.net/bernat.debian.org.gpg \
| gpg --dearmor > /usr/share/keyrings/haproxy.debian.net.gpg
RUN echo deb "[signed-by=/usr/share/keyrings/haproxy.debian.net.gpg]" \
http://haproxy.debian.net bookworm-backports-${HAPROXY_VERSION} main \
> /etc/apt/sources.list.d/haproxy.list
RUN apt-get update && apt-get install --no-install-recommends -y \
haproxy=$HAPROXY_VERSION.\* \
&& apt autoremove -y
# Copy binaries and scripts
COPY --from=builder /fly/bin/* /usr/local/bin
COPY --from=postgres_exporter /postgres_exporter /usr/local/bin/
ADD /config/* /fly/
RUN mkdir -p /run/haproxy/
RUN usermod -d /data postgres
# Tailscale setup
COPY --from=tailscale /app/wrapper.sh /tailscale/wrapper.sh
COPY --from=tailscale /app/tailscaled /tailscale/tailscaled
COPY --from=tailscale /app/tailscale /tailscale/tailscale
RUN mkdir -p /var/run/tailscale /var/cache/tailscale /var/lib/tailscale \
&& chmod +x /tailscale/* \
&& update-alternatives --set iptables /usr/sbin/iptables-legacy
RUN echo "listen_addresses = '*'" >> /var/lib/postgresql/data/postgresql.conf
EXPOSE 5432
CMD [ "/tailscale/wrapper.sh", "start"]
- Lenguaje dominante
- Go
- Estrellas
- 171
- Forks
- 76
- Merge medio
- 1 h 19 min
- PR fusionados (30 d)
- 1
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de fly-apps/postgres-flex
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
fly-apps/postgres-flex#306 · 1 reacción ·
-
postgres 18Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
fly-apps/postgres-flex#305 · 4 comentarios · 5 reacciones ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 40/100
fly-apps/postgres-flex#287 · 1 comentario ·
-
compress data.tar?Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
fly-apps/postgres-flex#285 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 45/100
fly-apps/postgres-flex#280 · 1 comentario ·
Todos los issues de fly-apps/postgres-flex
Issues similares
-
area: global bug dx priority: low
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
grafana/mcp-grafana#1267 ·
Los mantenedores suelen responder en 1 día
-
automation models
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
coverage-gap good-first-pattern help wanted
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
GoogleCloudPlatform/k8s-aibom#114 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
txn2/mcp-data-platform#1984 ·
Los mantenedores suelen responder en 1 día