Code Monkey home page Code Monkey logo

gradle-sample-cmd's Introduction

gradle sample command line project Build Status

A demo for spring boot based command line application based on mrduguo/gradle-buildscript project.

Requirements

  • JAVA 7 or newer
  • Docker (optional, to use -x docker to skip if you don't have docker installed)

Sample local build command

./gradlew

Run with java

After build or download a released jar file, you may run it with:

java -jar gradle-sample-cmd-*.jar

Run with docker

run the local built docker image

docker run -it --rm gradle-sample-cmd

Run the published docker image

The image also pushed as mrduguo/gradle-sample-cmd in docker hub. You may run in any docker environment:

docker run -it --rm mrduguo/gradle-sample-cmd

Which is same as you run with additional parameters:

docker run -it --rm mrduguo/gradle-sample-cmd --output.number.of.urls=5 --input.log.url=https://raw.githubusercontent.com/mrduguo/gradle-sample-cmd/master/src/test/resources/urls-log.txt

Sample output

$ docker run -it --rm mrduguo/gradle-sample-cmd
TOP 5 HIT URLS
http://www.example.com=1170
http://www.example.com/world=482
http://www.example.com/us=375
http://www.example.com/trends=286
http://www.example.com/travel=269

gradle-sample-cmd's People

Contributors

mrduguo avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.