retold-harness 1.0.8 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ VOLUME /home/coder/.vscode
7
7
 
8
8
  RUN echo "...installing debian dependencies..."
9
9
  RUN sudo apt update
10
- RUN sudo apt install vim curl tmux -y
10
+ RUN sudo apt install vim curl tmux python3 make g++ -y
11
11
 
12
12
  RUN echo "Building development image..."
13
13
 
@@ -14,6 +14,11 @@ export HOME=/home/coder
14
14
  bash -i <(echo "npm install pm2 -g")
15
15
  # Install the dependencies for node
16
16
  bash -i <(echo "npm install")
17
+ # Rebuild native addons for the container platform (the volume mount
18
+ # brings in the host's node_modules which may have Mac/Windows binaries).
19
+ # NOTE: This overwrites the host's better-sqlite3 binary with a Linux build.
20
+ # After stopping Docker, run `npm rebuild better-sqlite3` on the host to restore.
21
+ bash -i <(echo "npm rebuild better-sqlite3")
17
22
  # Now run the harness API within the pm2 process manager
18
23
  bash -i <(echo "pm2 start /home/coder/retold-harness/source/Retold-Harness.js")
19
24
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "retold-harness",
3
- "version": "1.0.8",
3
+ "version": "1.1.0",
4
4
  "description": "Restful API harness. Serves on 8086.",
5
5
  "main": "source/Retold-Harness.js",
6
6
  "bin": {