joyent / conch-ui

Web UI for Conch (https://github.com/joyent/conch-api)
2 stars 5 forks source link

Make deployment easier #55

Open perigrin opened 5 years ago

perigrin commented 5 years ago

Currently we require installing node + yarn on a target environment in order to drop a copy of the UI (see this). In reality we should only need the build directory from the tests uploaded as a release.

This is related to #49 which might make this go away as well.

sungo commented 5 years ago

The docker based buildbot already has a utility available to create GH releases and upload files. I think right now the build/test process is being run in total isolation in a container but we could pretty easily mount an output directory, zip it up, and ship it in the GH release.

Deployments would then grab the latest release (pre or prod based on the role), extract the webpack zip file URL, and unpack it locally. This is pretty similar to what the shell does in its self update process.

perigrin commented 5 years ago

That’s basically what I would like to do yeah, if we do make #49 work then we can replace the deployment files with a template in ansible or whatever that just drops the HTML file.

perigrin commented 5 years ago

@sungo suggested out of band here that we can just deploy a static HTML file into manta to release ...

mput /conch/stor/staging/index.html < index.html mput /conch/stor/production/index.html < index.html