Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx pretty-quick --staged
9 changes: 8 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
# Change Log

#### next release (0.4.7)
#### next release

#### 0.4.8

- Upgrade terriajs-server to 5.0.0
- Upgrade terriajs to 8.13.0

#### 0.4.7

- Upgrade terriajs-server to version 5 alpha
- Requires node version 22 or above
Expand Down
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ RUN yarn gulp release
# deploy container
FROM node:24-slim AS deploy

# terriajs-server registers no SIGTERM/SIGINT handlers, and node:24-slim has no init
# system, so without tini as PID 1, `docker stop` (and Kubernetes' pod termination,
# which works the same way) has nothing to catch the signal - the container just sits
# until the grace period expires and it gets SIGKILLed. tini forwards the signal to
# node and reaps zombies, so shutdown is immediate. Installed as root, before USER
# node, since apt-get needs root.
RUN apt-get update && apt-get install -y --no-install-recommends tini \
&& rm -rf /var/lib/apt/lists/*

USER node

WORKDIR /app
Expand All @@ -32,4 +41,5 @@ COPY --from=build /app/version.js version.js

EXPOSE 3001
ENV NODE_ENV=production
ENTRYPOINT [ "/usr/bin/tini", "--" ]
CMD [ "node", "./node_modules/terriajs-server/lib/app.js", "--config-file", "serverconfig.json" ]
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "terriajs-map",
"version": "0.4.7",
"version": "0.4.8",
"description": "Geospatial catalog explorer based on TerriaJS.",
"license": "Apache-2.0",
"engines": {
Expand All @@ -12,7 +12,7 @@
"url": "http://github.com/TerriaJS/TerriaMap"
},
"dependencies": {
"terriajs-server": "5.0.0-alpha.3"
"terriajs-server": "5.0.0"
},
"config": {
"docker": {
Expand All @@ -33,6 +33,7 @@
"@typescript-eslint/eslint-plugin": "^8.58.1",
"@typescript-eslint/parser": "^8.58.1",
"babel-loader": "^10.1.1",
"babel-plugin-styled-components": "^2.1.4",
"css-loader": "^7.1.4",
"eslint": "^10.2.0",
"eslint-config-prettier": "^10.1.8",
Expand Down Expand Up @@ -63,7 +64,7 @@
"sass-loader": "^16.0.7",
"style-loader": "^4.0.0",
"svg-sprite": "^2.0.4",
"terriajs": "8.12.5",
"terriajs": "8.13.0",
"terriajs-cesium": "26.0.0",
"terriajs-plugin-api": "0.0.1-alpha.17",
"terriajs-plugin-sample": "0.0.1-alpha.7",
Expand Down
Loading