1 Star 0 Fork 0

hwj/r2dbc-postgresql-official

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
test.bash 898 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/usr/bin/env bash
docker run -it \
-e "POSTGRES_USER=test" \
-e "POSTGRES_PASSWORD=test" \
-e "POSTGRES_DB=test" \
--mount type=bind,source="$(pwd)/src/test/resources/server.crt",target=/var/server.crt \
--mount type=bind,source="$(pwd)/src/test/resources/server.key",target=/var/server.key \
--mount type=bind,source="$(pwd)/src/test/resources/client.crt",target=/var/client.crt \
--mount type=bind,source="$(pwd)/src/test/resources/pg_hba.conf",target=/var/pg_hba.conf \
--mount type=bind,source="$(pwd)/src/test/resources/setup.sh",target=/var/setup.sh \
--mount type=bind,source="$(pwd)/src/test/resources/test-db-init-script.sql",target=/docker-entrypoint-initdb.d/test-db-init-script.sql \
postgres:11.1 \
-c 'ssl=on' \
-c 'ssl_key_file=/var/server.key' \
-c 'ssl_cert_file=/var/server.crt' \
-c 'ssl_ca_file=/var/client.crt' \
-c 'hba_file=/var/pg_hba.conf'
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/smallbug/r2dbc-postgresql-official.git
git@gitee.com:smallbug/r2dbc-postgresql-official.git
smallbug
r2dbc-postgresql-official
r2dbc-postgresql-official
main

搜索帮助