diff --git a/Dockerfile b/Dockerfile index 8a48de4ad..8178c2937 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,6 +28,8 @@ WORKDIR /ima COPY proxy proxy COPY agent agent COPY npms npms +COPY postinstall-in-container.sh postinstall.sh +COPY package.json package.json COPY VERSION VERSION RUN mkdir /ima/bls_binaries diff --git a/agent/run.sh b/agent/run.sh index 06805c649..e5d6a2b01 100644 --- a/agent/run.sh +++ b/agent/run.sh @@ -117,5 +117,4 @@ BASE_OPTIONS="--gas-price-multiplier=$GAS_PRICE_MULTIPLIER \ --no-expose-pwa" echo "Running loop cmd..." -echo "Going to run: node $DIR/main.mjs --loop $BASE_OPTIONS" node "$DIR/main.mjs" --loop "$BASE_OPTIONS" diff --git a/npms/skale-log/log.mjs b/npms/skale-log/log.mjs index 08b9b66bd..c7a460c0b 100644 --- a/npms/skale-log/log.mjs +++ b/npms/skale-log/log.mjs @@ -117,7 +117,7 @@ export function createStandardOutputStream() { "write": function( s ) { const x = this.strOwnIndent + - + ( this.haveOwnTimestamps ? generateTimestampPrefix( null, true ) : "" ) + + ( this.haveOwnTimestamps ? generateTimestampPrefix( null, true ) : "" ) + s; try { if( this.objStream ) diff --git a/postinstall-in-container.sh b/postinstall-in-container.sh new file mode 100755 index 000000000..2cc2d7a71 --- /dev/null +++ b/postinstall-in-container.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +echo " " +echo "----- installing in agent ------------------------------------------------------------------" +echo " " +cd ./agent +yarn install +cd .. + +echo " " +echo "----- installing in proxy ------------------------------------------------------------------" +echo " " +cd ./proxy +yarn install +cd .. +