/dead-code-detector

A service to detect dead code in Github repositories

Primary LanguageJavaScript

dead-code-detector

A service to detect dead code in Github repositories

How to Deploy

Create Docker image

./gradlew build
docker build -t wpinheiro_dead_code_detection_service .
docker tag  wpinheiro_dead_code_detection_service registry2.swarm.devfactory.com/devfactory/wpinheiro_dead_code_detection_service
docker push registry2.swarm.devfactory.com/devfactory/wpinheiro_dead_code_detection_service
export DOCKER_HOST="tcp://webserver.devfactory.com"
docker service ps wpinheiro_dead_code_detection_service
docker service rm wpinheiro_dead_code_detection_service
docker service create -p 17951:8080 --name wpinheiro_dead_code_detection_service --replicas 1 --limit-memory 1g registry2.swarm.devfactory.com/devfactory/wpinheiro_dead_code_detection_service
docker service ps wpinheiro_dead_code_detection_service

Other

Building SciTools

docker build -t scitools -f ./Dockerfile-scitools .