This commit is contained in:
parent
e58f9866e7
commit
47ab750bdc
|
@ -13,6 +13,7 @@ jobs:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
- run: npm install -g yarn
|
- run: npm install -g yarn
|
||||||
- run: yarn
|
- run: yarn
|
||||||
|
- run: yarn build
|
||||||
- run: sudo apt install redis-tools
|
- run: sudo apt install redis-tools
|
||||||
- run: chmod +x spawn_redis_server.sh test_local.sh
|
- run: chmod +x spawn_redis_server.sh test_local.sh
|
||||||
- run: ./spawn_redis_server.sh &
|
- run: ./spawn_redis_server.sh &
|
||||||
|
|
|
@ -3,11 +3,11 @@ FROM node:alpine
|
||||||
WORKDIR /usr/app
|
WORKDIR /usr/app
|
||||||
|
|
||||||
COPY package.json .
|
COPY package.json .
|
||||||
|
COPY . .
|
||||||
|
|
||||||
RUN yarn
|
RUN yarn
|
||||||
|
RUN yarn build
|
||||||
COPY . .
|
|
||||||
|
|
||||||
EXPOSE 6379
|
EXPOSE 6379
|
||||||
|
|
||||||
ENTRYPOINT ["node"]
|
ENTRYPOINT ["yarn app"]
|
|
@ -7,4 +7,4 @@
|
||||||
# DON'T EDIT THIS!
|
# DON'T EDIT THIS!
|
||||||
currentLoc=$(pwd)
|
currentLoc=$(pwd)
|
||||||
yarn app init --name "stockpile-db" --port 6379 --configpath $currentLoc/stockpile.json --dumppath $currentLoc/db/stockpile.db
|
yarn app init --name "stockpile-db" --port 6379 --configpath $currentLoc/stockpile.json --dumppath $currentLoc/db/stockpile.db
|
||||||
exec yarn app start --configpath $currentLoc/stockpile.json
|
yarn app start --configpath $currentLoc/stockpile.json
|
||||||
|
|
Loading…
Reference in New Issue