github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/demo/countdash/README.md (about)

     1  # countdash
     2  
     3  Nomad makes use of the [demo-consul-101](https://github.com/hashicorp/demo-consul-101)
     4  education material throughout our examples for using Consul Connect. There are many
     5  example jobs that launch tasks with [counting-service](https://github.com/hashicorp/demo-consul-101/tree/master/services/counting-service)
     6  and [dashboard-service](https://github.com/hashicorp/demo-consul-101/tree/master/services/dashboard-service)
     7  configured to communicate under various conditions.
     8  
     9  ## Publishing
    10  
    11  When making changes to the `countdash` demo, open a PR against the [demo-consul-101](https://github.com/hashicorp/demo-consul-101)
    12  project. Be sure to preserve backwards compatibility, as these demo files are used
    13  extensively, including with other Consul integrations.
    14  
    15  The docker images specific to Nomad can be rebuilt using [counter-dashboard](counter-dashboard/Dockerfile)
    16  and [counter-api](counter-api/Dockerfile).
    17  
    18  #### Testing locally
    19  ```bash
    20  $ docker build -t hashicorpnomad/counter-api:test .
    21  $ docker build -t hashicorpnomad/counter-dashboard:test .
    22  
    23  $ docker run --rm --net=host hashicorpnomad/counter-api:test
    24  $ docker run --rm --net=host --env COUNTING_SERVICE_URL="http://localhost:9001" hashicorpnomad/counter-dashboard:test
    25  ```
    26  
    27  #### Upload to Docker Hub
    28  ```bash
    29  # replace <version> with the next version number
    30  docker login
    31  docker build -t hashicorpnomad/counter-dashboard:<version> .
    32  docker push hashicorpnomad/counter-dashboard:<version>
    33  ```