alchucam / eve-wallboard-test

testing out Jenkins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Project EVE

Known Vulnerabilities

The new wallboard project

Build

yarn build
yarn start

Setting up Slack

Using Slack on the wallboard relies on setting the SLACK_TOKEN and SLACK_CHANNEL environment variables. Assign SLACK_TOKEN to the token for the workspace. Assign SLACK_CHANNEL to the channel ID of the channel you want to connect to.

Set both of these variables before running yarn start.

Windows: You can set env variables by using the command setx -m <Var_Name> <Var_Value
Note that the -m flag makes it a system property so the command line shell must be run in administrator mode.
Example: setx -m SLACK_TOKEN 12345

UNIX: You can set env variables by using the command export <Var_Name>=<Var_Value>
Example: export SLACK_TOKEN=12345

Format Code

Use prettier for code formatting through yarn:

yarn prettier --write <file>

Prettier can also be used through extensions in your IDE.
More information can be found here.

Docker

On linux run make image to generate the image.
NOTE: You must set your environment variables before building the image for the app to work. See the Setting up Slack section for more details

To push, run make push

To start the container, run docker run --rm -p 3000:3000 --name wallboard -d <image-id>

Once the image is running, you can connect to the wallboard app by going to 0.0.0.0:3000 in your web browser.

You can kill the container through the command docker kill wallboard

Jenkins

Required setup:

  • Github Webhook setup : An admin needs to add a webhook to the Jenkins service in the Github repository settings.
  • Jenkins setup: In the Jenkins service website, create multibranch pipeline project to detect github SCM repo.

About

testing out Jenkins


Languages

Language:JavaScript 90.3%Language:Makefile 4.1%Language:Dockerfile 3.6%Language:Shell 1.1%Language:HTML 0.9%