File tree 2 files changed +26
-1
lines changed
2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 1
1
FROM alpine
2
2
3
+ ARG pg_version
4
+
3
5
# postgresql for pg_dump
4
- RUN apk --no-cache add postgresql
6
+ RUN echo 'http://dl-cdn.alpinelinux.org/alpine/v3.4/main' >> /etc/apk/repositories
7
+
8
+ RUN echo ${pg_version}; apk --no-cache add postgresql-client=${pg_version}
5
9
6
10
# python for aws-cli, for s3 uploading
7
11
RUN apk --no-cache add python py-pip && \
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ builds=$( echo '
4
+ 9.6.3 9.6.3-r0
5
+ 9.6 9.6.3-r0
6
+ 9 9.6.3-r0
7
+ latest 9.6.3-r0
8
+ 9.5.7 9.5.7-r0
9
+ 9.5 9.5.7-r0
10
+ ' | tr -s ' ' )
11
+
12
+ IFS=$' \n '
13
+ for build in $builds ; do
14
+ tag=$( echo $build | cut -d ' ' -f 1 )
15
+ pgVersion=$( echo $build | cut -d ' ' -f 2)
16
+
17
+ echo docker build --tag bluedrop360/postgres-dump-to-s3:$tag --build-arg pg_version=" $pgVersion " .
18
+ eval docker build --tag bluedrop360/postgres-dump-to-s3:$tag --build-arg pg_version=" $pgVersion " .
19
+ echo docker push bluedrop360/postgres-dump-to-s3:$tag
20
+ eval docker push bluedrop360/postgres-dump-to-s3:$tag
21
+ done
You can’t perform that action at this time.
0 commit comments