#!/bin/bash

cd /root/wdd/cmii-watchdog

pwd

current_date=$(date +"%Y-%m-%d-%H-%M-%S")


docker build -t cmii-watchdog-java:${current_date} .


docker run -d -p 9000:8080 --name=cmii-watchdog-java-${current_date} cmii-watchdog-java:${current_date}


#docker run -d -p 9000:8080  cmii-watchdog-java:2025-02-25