[Rt-commit] rtir branch 5.0/docker-testing-buster created. 5.0.3-5-g0d323197
BPS Git Server
git at git.bestpractical.com
Mon Aug 1 19:07:23 UTC 2022
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rtir".
The branch, 5.0/docker-testing-buster has been created
at 0d3231979fab43b7902f64b6334b10cf041118f0 (commit)
- Log -----------------------------------------------------------------
commit 0d3231979fab43b7902f64b6334b10cf041118f0
Author: Brian Conry <bconry at bestpractical.com>
Date: Mon Aug 1 14:04:17 2022 -0500
Test against a supported Postgresql version
diff --git a/.github/workflows/github-action.yml b/.github/workflows/github-action.yml
index e648b668..d4e9fa84 100644
--- a/.github/workflows/github-action.yml
+++ b/.github/workflows/github-action.yml
@@ -115,7 +115,7 @@ jobs:
uses: actions/checkout at v2
- name: Build test environment
run: |
- docker run --detach --name rtdb --network rt --mount type=tmpfs,destination=/var/lib/postgresql/data --env POSTGRES_PASSWORD=password postgres:9.6
+ docker run --detach --name rtdb --network rt --mount type=tmpfs,destination=/var/lib/postgresql/data --env POSTGRES_PASSWORD=password postgres:12.8
docker build --build-arg RT_DB_TYPE=Pg --build-arg RT_DBA_USER=postgres --build-arg RT_TEST_DB_HOST=rtdb --network rt --tag rtir .
docker run --network rt --volume "$GITHUB_WORKSPACE:/rtir" rtir bash -c 'cd /rtir && perl Makefile.PL && make'
- name: Run RTIR tests
@@ -144,5 +144,5 @@ jobs:
failure_text: '${env.RT_BRANCH_NAME} (${env.GITHUB_RUN_NUMBER}) tests failed in ${env.RT_GA_TEST_TIME}'
cancelled_text: '${env.RT_BRANCH_NAME} (${env.GITHUB_RUN_NUMBER}) tests cancelled in ${env.RT_GA_TEST_TIME}'
fields: |
- [{ "title": "Configuration", "value": "RTIR, PostgreSQL", "short": true },
+ [{ "title": "Configuration", "value": "RTIR, PostgreSQL 12.8", "short": true },
{ "title": "URL", "value": "${env.GITHUB_SERVER_URL}/${env.GITHUB_REPOSITORY}/actions/runs/${env.GITHUB_RUN_ID}?check_suite_focus=true", "short": true }]
commit dee9bd6af9d77f8962ef739da20da441357dbed1
Author: Brian Conry <bconry at bestpractical.com>
Date: Mon Aug 1 14:03:41 2022 -0500
Test MariaDB current long term support version
diff --git a/.github/workflows/github-action.yml b/.github/workflows/github-action.yml
index d42d0a25..e648b668 100644
--- a/.github/workflows/github-action.yml
+++ b/.github/workflows/github-action.yml
@@ -72,7 +72,7 @@ jobs:
uses: actions/checkout at v2
- name: Build test environment
run: |
- docker run --detach --name rtdb --network rt --env MYSQL_ROOT_PASSWORD=password mariadb:10.3
+ docker run --detach --name rtdb --network rt --env MYSQL_ROOT_PASSWORD=password mariadb:10.6
docker build --build-arg RT_DB_TYPE=mysql --build-arg RT_TEST_DB_HOST=rtdb --network rt --tag rtir .
docker run --network rt --volume "$GITHUB_WORKSPACE:/rtir" rtir bash -c 'cd /rtir && perl Makefile.PL && make'
- name: Run RTIR tests
@@ -101,7 +101,7 @@ jobs:
failure_text: '${env.RT_BRANCH_NAME} (${env.GITHUB_RUN_NUMBER}) tests failed in ${env.RT_GA_TEST_TIME}'
cancelled_text: '${env.RT_BRANCH_NAME} (${env.GITHUB_RUN_NUMBER}) tests cancelled in ${env.RT_GA_TEST_TIME}'
fields: |
- [{ "title": "Configuration", "value": "RTIR, MariaDB", "short": true },
+ [{ "title": "Configuration", "value": "RTIR, MariaDB 10.6", "short": true },
{ "title": "URL", "value": "${env.GITHUB_SERVER_URL}/${env.GITHUB_REPOSITORY}/actions/runs/${env.GITHUB_RUN_ID}?check_suite_focus=true", "short": true }]
rtir_test_postgresql:
runs-on: ubuntu-latest
commit ecc0c226ad830713929613323f1680cc7c99b7c7
Author: Brian Conry <bconry at bestpractical.com>
Date: Mon Aug 1 14:01:42 2022 -0500
Split build and test in github actions
diff --git a/.github/workflows/github-action.yml b/.github/workflows/github-action.yml
index 293ab8ac..d42d0a25 100644
--- a/.github/workflows/github-action.yml
+++ b/.github/workflows/github-action.yml
@@ -31,9 +31,10 @@ jobs:
- name: Build test environment
run: |
docker build --build-arg RT_DB_TYPE=SQLite --tag rtir .
+ docker run --network rt --volume "$GITHUB_WORKSPACE:/rtir" rtir bash -c 'cd /rtir && perl Makefile.PL && make'
- name: Run RTIR tests
run: |
- docker run --network rt --volume "$GITHUB_WORKSPACE:/rtir" rtir bash -c 'cd /rtir && perl Makefile.PL && make test-parallel'
+ docker run --network rt --volume "$GITHUB_WORKSPACE:/rtir" rtir bash -c 'cd /rtir && make test-parallel'
- name: Get run time
if: always()
run: |
@@ -73,9 +74,10 @@ jobs:
run: |
docker run --detach --name rtdb --network rt --env MYSQL_ROOT_PASSWORD=password mariadb:10.3
docker build --build-arg RT_DB_TYPE=mysql --build-arg RT_TEST_DB_HOST=rtdb --network rt --tag rtir .
+ docker run --network rt --volume "$GITHUB_WORKSPACE:/rtir" rtir bash -c 'cd /rtir && perl Makefile.PL && make'
- name: Run RTIR tests
run: |
- docker run --network rt --volume "$GITHUB_WORKSPACE:/rtir" rtir bash -c 'cd /rtir && perl Makefile.PL && make test-parallel'
+ docker run --network rt --volume "$GITHUB_WORKSPACE:/rtir" rtir bash -c 'cd /rtir && make test-parallel'
- name: Get run time
if: always()
run: |
@@ -115,9 +117,10 @@ jobs:
run: |
docker run --detach --name rtdb --network rt --mount type=tmpfs,destination=/var/lib/postgresql/data --env POSTGRES_PASSWORD=password postgres:9.6
docker build --build-arg RT_DB_TYPE=Pg --build-arg RT_DBA_USER=postgres --build-arg RT_TEST_DB_HOST=rtdb --network rt --tag rtir .
+ docker run --network rt --volume "$GITHUB_WORKSPACE:/rtir" rtir bash -c 'cd /rtir && perl Makefile.PL && make'
- name: Run RTIR tests
run: |
- docker run --network rt --volume "$GITHUB_WORKSPACE:/rtir" rtir bash -c 'cd /rtir && perl Makefile.PL && make test-parallel'
+ docker run --network rt --volume "$GITHUB_WORKSPACE:/rtir" rtir bash -c 'cd /rtir && make test-parallel'
- name: Get run time
if: always()
run: |
commit b412ac3ce26e861f9a5b8097662d5d55da229b19
Author: Brian Conry <bconry at bestpractical.com>
Date: Mon Aug 1 13:14:29 2022 -0500
Use new Docker base image
diff --git a/Dockerfile b/Dockerfile
index 2c7b5130..4de3c471 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,4 +1,4 @@
-FROM bpssysadmin/rt-base-debian-stretch
+FROM bpssysadmin/rt-base-debian:RT-5.0.3-buster-20220721
LABEL maintainer="Best Practical Solutions <contact at bestpractical.com>"
@@ -11,6 +11,8 @@ ARG RT_DBA_PASSWORD=password
ARG RT_TEST_DB_HOST=172.17.0.2
ARG RT_TEST_RT_HOST
+ENV PATH="/opt/perl/bin:$PATH"
+
RUN cd /usr/local/src \
&& git clone https://github.com/bestpractical/rt.git \
&& cd rt \
@@ -24,10 +26,10 @@ RUN cd /usr/local/src \
--with-db-host="$RT_TEST_DB_HOST" \
--with-db-rt-host="${RT_TEST_RT_HOST:-$(ip --oneline address show to 172.16/12 | gawk '{split($4, a, "/"); print a[1] "/255.255.255.0"; exit 0;}')}" \
&& make install \
- && /usr/bin/perl -I/opt/rt5/local/lib -I/opt/rt5/lib sbin/rt-setup-database --action init --dba="$RT_DBA_USER" --dba-password="$RT_DBA_PASSWORD" \
+ && perl -I/opt/rt5/local/lib -I/opt/rt5/lib sbin/rt-setup-database --action init --dba="$RT_DBA_USER" --dba-password="$RT_DBA_PASSWORD" \
&& rm -rf /usr/local/src/*
-RUN cpanm Net::Domain::TLD Net::Whois::RIPE Parse::BooleanLogic
+RUN cpm install --global --no-prebuilt --no-test --with-all --show-build-log-on-failure Net::Domain::TLD Net::Whois::RIPE Parse::BooleanLogic
ENV RT_DBA_USER="$RT_DBA_USER"
ENV RT_DBA_PASSWORD="$RT_DBA_PASSWORD"
-----------------------------------------------------------------------
hooks/post-receive
--
rtir
More information about the rt-commit
mailing list