问题描述
尝试在github操作中运行TimescaleDB:
jobs:
migrations:
timeout-minutes: 4
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: xyzxyzxyz
POSTGRES_DB: analytics-tests
name: Integration tests
runs-on: ubuntu-latest
services:
postgres:
image: timescale/timescaledb:latest-pg12
env:
POSTGRES_USER: ${{ env.POSTGRES_USER }}
POSTGRES_PASSWORD: ${{ env.POSTGRES_PASSWORD }}
POSTGRES_DB: ${{ env.POSTGRES_DB }}
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- name: "Checkout"
uses: actions/checkout@master
- name: Dump Docker logs before migrating
uses: jwalton/gh-docker-logs@v1
并得到
[100] FATAL: role "root" does not exist
performing post-bootstrap initialization ... ok
[109] FATAL: role "root" does not exist
... snip
2020-11-05 17:47:42.755 UTC [53] CONTEXT: PL/pgsql function inline_code_block line 23 at RAISE
2020-11-05 17:47:42.758 UTC [55] ERROR: TimescaleDB background worker connected to template database,exiting
CREATE EXTENSION
2020-11-05 17:47:42.759 UTC [34] LOG: background worker "TimescaleDB Background Worker Scheduler" (PID 55) exited with exit code 1
什么是模板数据库?
我尝试做一个--volume
,映射了工作空间目录,但是失败了,因为无法在操作运行结束时将其删除。
如何在Github上编写TimescaleDB的迁移?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)