1.50.0 • Published 5 years ago

cg-deploy v1.50.0

Weekly downloads
-
License
-
Repository
-
Last release
5 years ago

cg-deploy

Installation

In production, this is run on bigbrother.cargurus.com, by doing a git pull in /a/directory and restarting service. If package.json or yarn.lock has changed, you should also run yarn install again.

Development

You can develop with the provided docker container or on your own. To build:

docker build -t cgdeploy_dev .

To run

docker run --rm -it -p 9000:9000 -v ${PWD}:/app cgdeploy_dev

The docker build installs all the npm libraries in the docker image.

Running in docker

To run in docker in a production environment, you can issue

docker run -d -p 9000:9000 docker-local.cargurus.com/cg-deploy:1.35.0

Deployment

To deploy the npm version, npm publish

To deploy the docker version,

docker build -t docker-local.cargurus.com/cg-deploy:<version>
docker push docker-local.cargurus.com/cg-deploy:<version>

Commands

List current CI projects that are archived in artifactory.

cg-deploy build

List jobs/builds for a particular CI project (e.g.: cg-deploy build cg-main-appassembler)

cg-deploy build <project>

Deleta all jobs/builds except the x most recent (e.g.: cg-deploy build cg-main --keep 10)

cg-deploy build <project> --keep <x>


To curl docker images currently in the artifactory repository, you can user /dockerbuilds/:repo/:image. For example,

curl http://cg-deploy.service.ct_ma_us.cg.net:9000/dockerbuilds/docker-local/sem_autoscale_test

(This curl relies on cg-deploy running on nomad )

To curl only the latest dockermage, you can use dockerlatest/:repo/:image. For example,

curl http://cg-deploy.service.ct_ma_us.cg.net:9000/dockerbuilds/docker-local/sem_autoscale_test

(This curl relies on cg-deploy running on nomad )