Skip to content

Commit 31b1c7f

Browse files
committed
adding URL to output
Signed-off-by: salaboy <Salaboy@gmail.com>
1 parent 7075d38 commit 31b1c7f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

testcontainers-dapr/src/main/java/io/dapr/testcontainers/WorkflowDashboardContainer.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
import io.dapr.testcontainers.converter.ComponentYamlConverter;
1717
import io.dapr.testcontainers.converter.YamlConverter;
1818
import io.dapr.testcontainers.converter.YamlMapperFactory;
19+
import org.slf4j.Logger;
20+
import org.slf4j.LoggerFactory;
1921
import org.testcontainers.containers.GenericContainer;
2022
import org.testcontainers.images.builder.Transferable;
2123
import org.testcontainers.utility.DockerImageName;
@@ -25,7 +27,7 @@
2527
* Test container for Dapr Workflow Dashboard.
2628
*/
2729
public class WorkflowDashboardContainer extends GenericContainer<WorkflowDashboardContainer> {
28-
30+
private static final Logger LOGGER = LoggerFactory.getLogger(WorkflowDashboardContainer.class);
2931
private static final Yaml YAML_MAPPER = YamlMapperFactory.create();
3032
private static final YamlConverter<Component> COMPONENT_CONVERTER = new ComponentYamlConverter(YAML_MAPPER);
3133
public static final DockerImageName DEFAULT_IMAGE_NAME = DockerImageName
@@ -77,6 +79,14 @@ public WorkflowDashboardContainer withPort(Integer port) {
7779
return this;
7880
}
7981

82+
@Override
83+
public void start() {
84+
super.start();
85+
86+
LOGGER.info("Dapr Workflow Dashboard container started.");
87+
LOGGER.info("Access the Dashboard at: http://localhost:{}", this.getMappedPort(dashboardPort));
88+
}
89+
8090
public int getPort() {
8191
return dashboardPort;
8292
}

0 commit comments

Comments
 (0)