You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by da...@apache.org on 2018/12/29 14:50:09 UTC
[isis] 10/19: ISIS-1899: updates docs - connecting to running
docker container
This is an automated email from the ASF dual-hosted git repository.
danhaywood pushed a commit to branch release-1.17.0-RC1
in repository https://gitbox.apache.org/repos/asf/isis.git
commit ff4c402f798182b36506bfc4c6e29ee4dba11627
Author: danhaywood <da...@haywood-associates.co.uk>
AuthorDate: Sat Dec 29 11:44:26 2018 +0000
ISIS-1899: updates docs - connecting to running docker container
---
.../guides/cgcom/_cgcom_cutting-a-release.adoc | 25 ++++++++++++++++++++--
1 file changed, 23 insertions(+), 2 deletions(-)
diff --git a/adocs/documentation/src/main/asciidoc/guides/cgcom/_cgcom_cutting-a-release.adoc b/adocs/documentation/src/main/asciidoc/guides/cgcom/_cgcom_cutting-a-release.adoc
index 70592c4..f106800 100644
--- a/adocs/documentation/src/main/asciidoc/guides/cgcom/_cgcom_cutting-a-release.adoc
+++ b/adocs/documentation/src/main/asciidoc/guides/cgcom/_cgcom_cutting-a-release.adoc
@@ -400,8 +400,6 @@ popd
----
mvn install -Dmavenmixin-docker -D docker-plugin.imageName=test/simpleapp
docker container run -p 8080:8080 --name simpleapp -d test/simpleapp
-
-#winpty docker exec -it simpleapp bash
----
+
[NOTE]
@@ -419,6 +417,29 @@ image::{_imagesdir}docker/026-docker-nat-private.png[width="600px",link="{_image
This can be done using the "Local Security Policy" application.
====
+Optionally, you can connect to the running container:
+
+* on Mac/Linux:
++
+[source,bash]
+----
+docker exec -it simpleapp sh
+----
+
+* on Windows
++
+[source,bash]
+----
+winpty docker exec -it simpleapp sh
+----
+
+You can then tail the log of the Tomcat instance:
+
+[source,bash]
+----
+cd /opt/*tomcat*/logs
+tail -f catalina.*.log
+----
This too should be accessed at link:http://localhost:8080[localhost:8080].