Initial commit
This commit is contained in:
commit
6a2e43545d
|
@ -0,0 +1,4 @@
|
|||
.dockerignore
|
||||
.drone.yml
|
||||
.git
|
||||
Dockerfile
|
|
@ -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
|
|
@ -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\""]
|
Loading…
Reference in New Issue