Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5d34026

Browse files
committed
Add first version of script that creates docker containers and uploads them to docker hub
1 parent44e180d commit5d34026

File tree

2 files changed

+7
-15
lines changed

2 files changed

+7
-15
lines changed

‎.travis.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,11 @@ services:
1010
-docker
1111

1212
install:
13-
-sed -e 's/${CHECK_CODE}/'${CHECK_CODE}/g -e 's/${PG_VERSION}/'${PG_VERSION}/g Dockerfile.tmpl > Dockerfile
13+
-echo "FROM ${DOCKER_IMAGE}" > Dockerfile
1414
-docker-compose build
1515

1616
script:
1717
-docker-compose run $(bash <(curl -s https://codecov.io/env)) tests
1818

1919
env:
20-
-PG_VERSION=10 CHECK_CODE=clang
21-
-PG_VERSION=9.6 CHECK_CODE=clang
22-
-PG_VERSION=9.5 CHECK_CODE=clang
23-
-PG_VERSION=10 CHECK_CODE=cppcheck
24-
-PG_VERSION=9.6 CHECK_CODE=cppcheck
25-
-PG_VERSION=9.5 CHECK_CODE=cppcheck
26-
-PG_VERSION=10 CHECK_CODE=false
27-
-PG_VERSION=9.6 CHECK_CODE=false
28-
-PG_VERSION=9.5 CHECK_CODE=false
20+
-DOCKER_IMAGE=pg95_clang_check_code

‎Dockerfile.tmpl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ RUN mkdir -p /pg/data && \
2323
chmod a+rwx /usr/local/lib/postgresql && \
2424
chmod a+rwx /usr/local/share/postgresql/extension
2525

26-
ADD . /pg/pg_pathman
27-
WORKDIR /pg/pg_pathman
28-
RUN chmod -R go+rwX /pg/pg_pathman
29-
USER postgres
30-
ENTRYPOINT PGDATA=${PGDATA} CHECK_CODE=${CHECK_CODE} bash run_tests.sh
26+
ONBUILDADD . /pg/pg_pathman
27+
ONBUILDWORKDIR /pg/pg_pathman
28+
ONBUILDRUN chmod -R go+rwX /pg/pg_pathman
29+
ONBUILDUSER postgres
30+
ONBUILDENTRYPOINT PGDATA=${PGDATA} CHECK_CODE=${CHECK_CODE} bash run_tests.sh

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp