The Drone Wall is a wall display component for Drone CI server v0.4.0.
Drone Wall uses Grunt to construct an entirely client-side web application in the /build
directory. You can pass several optional flags to pre-configure the application like so:
grunt --env=<env> --apiroot=<path> --token=<token> --theme=<theme>
-
env:
[local|dev|staging|prod]
Defaults tolocal
. Selects which group of configuration variables inenv.json
are used for further tasks. Implicitly enables mock data when set tolocal
, and minifies/uglifies all scripts when set tostaging
orprod
. -
apiroot:
[String]
The absolute path of where your Drone API lives. Should be something likehttps://drone.something.com/api/
. -
token:
[String]
A user token generated by Drone, accessible via your user profile when logged into the Drone site. The repos and builds that appear on the Wall will be those that the owner of this token has access to in Drone. -
theme:
[light|dark]
Defaults tolight
. Determines whether the Wall is displayed using the light or dark theme.
Be aware: supplying these values hard-codes them into the deployed JavaScript files, so providing your Drone token here is suitable only when you do not plan to deploy the Drone Wall someplace public. If the apiroot
and token
values aren't supplied via the command line build process, they will be asked for in the Wall interface itself.
The apiroot
, token
, and theme
vars can be changed via the Wall interface at any time. Once set, they'll be stored in localstorage so you don't have to reenter them.
The Drone Wall requires Node.js 4.x
and npm 3.x
.
Begin with npm install
, and then run npm start
to build the application, start a file-watcher, and run a local server accessible at localhost:3000
. You can pass Grunt flags through npm
(as of 2.0.0
) like this:
npm start -- -env=dev -theme=dark
Run npm test
to run Angular E2E tests against mock data.
The Drone Wall uses dominatr-grunt for its build process, and supports automated deployment to CloudFront/S3 on AWS. Set an S3 bucket name and CloudFront distribution ID in your env.json
file, and then run the following task with the appropriate env
value:
grunt deploy --env=prod --aws-access-key-id=<id> --aws-secret-access-key=<key>
The AWS access key ID and secret access key should belong to an AWS user created via Identity and Access Management that has been granted the AmazonS3FullAccess
and CloudFrontFullAccess
policies. You'll be given these values when you first create a user.
Be sure to set apiroot
, token
, or theme
in the deploy command as appropriate. Deployment should only take a few seconds, but building on AWS's end can take upwards of ten minutes.
You can also just run grunt
with the appropriate env
value to export the full site to your /build
directory, and manually deploy its contents to whatever web hosting solution you prefer.
We provide a lightweight (6mb) Docker image for quick setup and installation:
docker run -d -p 80:80 drone/drone-wall