Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
docker
/
postgresql-server
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
f85c3c3e
authored
2017-01-31 13:12:47 -0600
by
Adam Heath
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Importing into a fresh repository.
1 parent
d2f10335
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
0 deletions
Dockerfile
docker-compose.yml
overlay/etc/docker-init/runtime/pre-config/10-postgresql.sh
overlay/etc/postgresql/9.4/main/conf.d/00-docker.conf
Dockerfile
0 → 100644
View file @
f85c3c3
FROM
docker.brainfood.com/dumb-init
ADD
/overlay/ /
RUN
[
"apt-docker"
,
\
"-y"
,
"install"
,
"postgresql-9.4"
,
\
";"
]
RUN
[
"save-data-dir"
,
"/var/lib/postgresql"
,
"postgresql-server"
]
EXPOSE
5432
docker-compose.yml
0 → 100644
View file @
f85c3c3
version
:
'
2'
services
:
build
:
image
:
docker.brainfood.com/postgresql-server
build
:
context
:
.
args
:
-
http_proxy
-
https_proxy
overlay/etc/docker-init/runtime/pre-config/10-postgresql.sh
0 → 100755
View file @
f85c3c3
#!/bin/bash
set
-e
data_dir
=
/var/lib/postgresql
if
[[
-d
$data_dir
]]
;
then
declare
-a
files
=(
$(
find
"
$data_dir
"
-mindepth 1 -maxdepth 1 -not -name lost+found 2>/dev/null
)
)
if
[[
${#
files
[*]
}
-eq 0
]]
;
then
tar -zxf /var/lib/docker-init/data/postgresql-server.data.tar.gz -C
"
$data_dir
"
fi
fi
overlay/etc/postgresql/9.4/main/conf.d/00-docker.conf
0 → 100644
View file @
f85c3c3
listen_addresses
= *
Please
register
or
sign in
to post a comment