Unverified Commit f1594c56 authored by BoHong Li's avatar BoHong Li
Browse files

feat: upgrade base image to resolve pcheck issues



1. upgrade node.js version from 8.16.0 to 8.16.2
2. upgrade pcheck to support connection string from environment
3. upgrade pcheck to fix connection string contains underscore might not resolve correctly
Signed-off-by: default avatarBoHong Li <raccoon@hackmd.io>
parent 5002ec4b
...@@ -15,7 +15,7 @@ RUN set -xe && \ ...@@ -15,7 +15,7 @@ RUN set -xe && \
yarn.lock webpack.prod.js webpack.htmlexport.js webpack.dev.js webpack.common.js \ yarn.lock webpack.prod.js webpack.htmlexport.js webpack.dev.js webpack.common.js \
config.json.example README.md CONTRIBUTING.md AUTHORS config.json.example README.md CONTRIBUTING.md AUTHORS
FROM hackmdio/runtime:1.0.4 FROM hackmdio/runtime:1.0.6
USER hackmd USER hackmd
WORKDIR /home/hackmd/app WORKDIR /home/hackmd/app
COPY --chown=1500:1500 --from=BUILD /home/hackmd/app . COPY --chown=1500:1500 --from=BUILD /home/hackmd/app .
......
...@@ -10,6 +10,8 @@ services: ...@@ -10,6 +10,8 @@ services:
- "database-data:/var/lib/postgresql/data" - "database-data:/var/lib/postgresql/data"
restart: always restart: always
codimd: codimd:
# you can use image or custom build below
# image: nabo.codimd.dev/hackmdio/hackmd:1.4.0
build: build:
context: .. context: ..
dockerfile: ./deployments/Dockerfile dockerfile: ./deployments/Dockerfile
......
...@@ -8,7 +8,7 @@ if [[ "$#" -gt 0 ]]; then ...@@ -8,7 +8,7 @@ if [[ "$#" -gt 0 ]]; then
fi fi
# check database and redis is ready # check database and redis is ready
pcheck -constr "$CMD_DB_URL" pcheck -env CMD_DB_URL
# run DB migrate # run DB migrate
NEED_MIGRATE=${CMD_AUTO_MIGRATE:=true} NEED_MIGRATE=${CMD_AUTO_MIGRATE:=true}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment