Browse Source

Update Dockerfile with environment variables and add Docker CI

Added Docker CI, updated README.md with more information on how to run
the Docker container, and added CI (just testing it out)
pull/1/head
Abheek Dhawan 4 years ago
parent
commit
940f208056
  1. 18
      .github/workflows/docker-image.yml
  2. 2
      Dockerfile
  3. 10
      README.md

18
.github/workflows/docker-image.yml

@ -0,0 +1,18 @@
name: Docker Image CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build the Docker image
run: docker build -t awscibo . --file Dockerfile --tag awscibo:$(date +%s)

2
Dockerfile

@ -1,3 +1,3 @@
FROM node:latest FROM node:latest
RUN npm i -g awscibo RUN npm i -g awscibo
CMD ["awscibo", "yourbottokenhere"] CMD awscibo $BOT_TOKEN

10
README.md

@ -54,15 +54,11 @@ node awesomescibo.mjs
``` ```
git clone https://github.com/ADawesomeguy/AwesomeSciBo.git git clone https://github.com/ADawesomeguy/AwesomeSciBo.git
``` ```
2) Enter repo and edit bot token in Dockerfile 2) Enter repo, build, and run Docker image
```
cd AwesomeSciBo.
vim Dockerfile
```
3) Build and run Docker image
``` ```
cd AwesomeSciBo
docker build -t awscibo . docker build -t awscibo .
docker run --name awscibo -d awscibo docker run -e BOT_TOKEN=[your bot token here] --name awscibo -d awscibo
``` ```
## Usage ## Usage
To get started, run the command `do be helping` to get a list of commands. The more helpful commands will be the ones that generate packets, which are `do be roundgen pdf/html` and `do be roundgen pdf/html dm`. To get started, run the command `do be helping` to get a list of commands. The more helpful commands will be the ones that generate packets, which are `do be roundgen pdf/html` and `do be roundgen pdf/html dm`.

Loading…
Cancel
Save