Skip to content
Snippets Groups Projects
Commit e285f43a authored by Mohamed AZIKIOU's avatar Mohamed AZIKIOU
Browse files

refactor: remove recorder residuals

parent 1fb36a05
No related branches found
No related tags found
No related merge requests found
Pipeline #15667 failed
#!/bin/bash
# this command is ran from the root of the deadlock-extension
# given one argument (the path to the mission directory)
# generate the recorder
cd src/recorder/ || (echo "src/recorder/ not found! Are you running from deadlock extension directory?" && return 1)
npm install
cd ../../
npm run build-recorder
# remove container
docker rm -f test-recorder
# if you want to delete the image, uncomment the following line
# docker rmi "$(docker images | grep 'registry.takima.io/deadlock/deadlock-challenges/code_desktop_exemple')"
PP=(docker run --name test-recorder --privileged
-v \""$1"/.config\":\"/home/config/\"
-v \""$1"/mounted\":\"/home/deadlock/mission/\"
-v \""$HOME"/.deadlock/.ssh\":\"/tmp/.ssh\"
-v \""$(pwd)"/out/recorder.js\":\"/deadlock/recorder.js\"
registry.takima.io/deadlock/deadlock-challenges/code_desktop_exemple:0.1)
eval "${PP[*]}"
...@@ -86,7 +86,6 @@ ...@@ -86,7 +86,6 @@
"vscode:prepackage": "npm run build-extension", "vscode:prepackage": "npm run build-extension",
"compile": "webpack", "compile": "webpack",
"esbuild-base": "esbuild --bundle --format=cjs --platform=node", "esbuild-base": "esbuild --bundle --format=cjs --platform=node",
"build-recorder": "npm run esbuild-base -- ./src/recorder/index.ts --outfile=out/recorder.js --minify",
"esbuild": "npm run esbuild-base -- --sourcemap", "esbuild": "npm run esbuild-base -- --sourcemap",
"watch": "webpack --watch", "watch": "webpack --watch",
"build-extension": "webpack --mode production --devtool hidden-source-map", "build-extension": "webpack --mode production --devtool hidden-source-map",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment