File tree Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -32,12 +32,13 @@ stages:
32
32
33
33
env :
34
34
global :
35
- - LATEST_RELEASE=11 -alpine
35
+ - LATEST_RELEASE=12 -alpine
36
36
- DOCKER_REPO=tecnativa/postgres-autoconf
37
37
jobs :
38
38
- DOCKER_TAG=9.6-alpine
39
39
- DOCKER_TAG=10-alpine
40
40
- DOCKER_TAG=11-alpine
41
+ - DOCKER_TAG=12-alpine
41
42
42
43
jobs :
43
44
include :
Original file line number Diff line number Diff line change 1
1
ARG BASE_TAG
2
2
FROM docker.io/postgres:${BASE_TAG}
3
- ENTRYPOINT [ "/autoconf-entrypoint" ]
3
+ ENTRYPOINT ["/autoconf-entrypoint" , "/usr/local/bin/docker-entrypoint.sh" ]
4
4
ENV CERTS="{}" \
5
5
CONF_EXTRA="" \
6
6
LAN_AUTH_METHOD=md5 \
Original file line number Diff line number Diff line change @@ -128,7 +128,4 @@ permissions_fix(HBA_FILE)
128
128
129
129
# Continue normal execution
130
130
args = sys .argv [1 :]
131
- if not args or args [0 ] == "postgres" or args [0 ].startswith ("-" ):
132
- # Need to go through parent image entrypoint, and hardcode conf file
133
- args = ["/docker-entrypoint.sh" , * args , "-cconfig_file={}" .format (CONF_FILE )]
134
131
os .execvp (args [0 ], args )
Original file line number Diff line number Diff line change 16
16
class PostgresAutoconfCase (unittest .TestCase ):
17
17
"""Test behavior for this docker image"""
18
18
19
- def setUp (self ):
19
+ @classmethod
20
+ def setUpClass (cls ):
20
21
with local .cwd (local .cwd / ".." ):
21
22
print ("Building image" )
22
23
local ["./hooks/build" ] & FG
24
+ cls .image = "tecnativa/postgres-autoconf:{}" .format (local .env ["DOCKER_TAG" ])
25
+ cls .cert_files = {"client.ca.cert.pem" , "server.cert.pem" , "server.key.pem" }
26
+ return super ().setUpClass ()
27
+
28
+ def setUp (self ):
23
29
docker ("network" , "create" , "lan" )
24
30
docker ("network" , "create" , "wan" )
25
- self .version = os .environ ["DOCKER_TAG" ]
26
- self .image = ("tecnativa/postgres-autoconf:{}" .format (self .version ),)
27
- self .cert_files = {"client.ca.cert.pem" , "server.cert.pem" , "server.key.pem" }
28
31
return super ().setUp ()
29
32
30
33
def tearDown (self ):
You can’t perform that action at this time.
0 commit comments