Initial commit
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/tag Build is passing Details

This commit is contained in:
Luca 2023-01-23 20:16:10 +01:00
commit 6a2e43545d
3 changed files with 43 additions and 0 deletions

4
.dockerignore Normal file
View File

@ -0,0 +1,4 @@
.dockerignore
.drone.yml
.git
Dockerfile

29
.drone.yml Normal file
View File

@ -0,0 +1,29 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: build only
image: plugins/docker
settings:
dry_run: yes
repo: git.luj0ga.de/luca/postgres-tcpify
when:
event:
exclude:
- tag
- name: build and publish
image: plugins/docker
settings:
auto_tag: yes
password:
from_secret: access_token
registry: git.luj0ga.de
repo: git.luj0ga.de/luca/postgres-tcpify
username: _
when:
event:
- tag

10
Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM alpine:3
ENV LISTEN_PORT=5432
ENV SOCKET_PATH=/var/run/postgresql/.s.PGSQL.5432
RUN apk add --no-cache socat
USER nobody
CMD ["/bin/sh", "-c", "/usr/bin/socat \"tcp-listen:$LISTEN_PORT,reuseaddr,fork\" \"unix-client:$SOCKET_PATH\""]