Browse Source

Adding initial Docker setup files

pull/8/head
Drew Short 5 years ago
parent
commit
e69ef6df88
  1. 1
      .dockerignore
  2. 6
      Dockerfile
  3. 2
      README.md
  4. 10
      entrypoint.sh
  5. 5
      pipeline.yml

1
.dockerignore

@ -0,0 +1 @@
data/config.json

6
Dockerfile

@ -0,0 +1,6 @@
FROM node:12-14-stretch
COPY . /opt/baphomet
RUN npm install
WORKDIR /opt/baphomet
ENTRYPOINT entrypoint.sh
CMD run

2
README.md

@ -10,7 +10,7 @@ Copy data/config.json.example to data/config.json and replace the relevent confi
```bash
npm install
node run index.js
node index.js
```
## Development

10
entrypoint.sh

@ -0,0 +1,10 @@
#! /usr/bin/env sh
case $1 in
run)
node index.js
;;
*)
echo "\"$1\" is an unrecognized command"
;;
esac

5
pipeline.yml

@ -7,6 +7,9 @@ resources:
uri: ssh://git@git.nulloctet.com:8437/warricksothr/baphomet-js.git
private_key: |
((pull_key))
branch:
- master
- develop
jobs:
- name: test
@ -19,7 +22,7 @@ jobs:
platform: linux
image_resource:
type: registry-image
source: { repository: node, tag: "13" }
source: { repository: node, tag: "12-14-stretch" }
inputs:
- name: baphomet-js-git
run:

Loading…
Cancel
Save