Initial update for the bitmessage-js package #1
13
.buildbot/node/Dockerfile
Normal file
13
.buildbot/node/Dockerfile
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
FROM node:18-bullseye
|
||||||
|
|
||||||
|
RUN apt-get update
|
||||||
|
RUN apt-get install -yq --no-install-suggests --no-install-recommends xauth xvfb
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
ADD src ./src
|
||||||
|
COPY package*.json binding.gyp ./
|
||||||
|
|
||||||
|
RUN npm install
|
||||||
|
# RUN npm audit fix
|
||||||
|
|
||||||
|
COPY . .
|
6
.buildbot/node/build.sh
Normal file
6
.buildbot/node/build.sh
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
mkdir -p ../out
|
||||||
|
cp package*.json ../out
|
||||||
|
npm pack
|
||||||
|
mv *.tgz ../out/
|
3
.buildbot/node/test.sh
Executable file
3
.buildbot/node/test.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
npm test
|
3
docker-test.sh
Executable file
3
docker-test.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/sh
|
||||||
|
docker build --tag bitmessage-js -f .buildbot/node/Dockerfile .
|
||||||
|
docker run -it --rm bitmessage-js:latest .buildbot/node/test.sh
|
Loading…
Reference in New Issue
Block a user