diff options
-rw-r--r-- | src/main/java/net/libertacasa/pubsh/web/Docker.java | 3 | ||||
-rw-r--r-- | src/main/resources/templates/portal.html | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/main/java/net/libertacasa/pubsh/web/Docker.java b/src/main/java/net/libertacasa/pubsh/web/Docker.java index ff81be3..b150fdc 100644 --- a/src/main/java/net/libertacasa/pubsh/web/Docker.java +++ b/src/main/java/net/libertacasa/pubsh/web/Docker.java @@ -24,7 +24,8 @@ import com.github.dockerjava.transport.DockerHttpClient; public class Docker { static DockerClientConfig DockerConfig = DefaultDockerClientConfig.createDefaultConfigBuilder() - .withDockerHost("tcp://sweetsuse:2375") + //.withDockerHost("tcp://sweetsuse:2375") + .withDockerHost("tcp://sweetsuse:8085") .withDockerTlsVerify(false) .build(); diff --git a/src/main/resources/templates/portal.html b/src/main/resources/templates/portal.html index f228ec8..f5e9342 100644 --- a/src/main/resources/templates/portal.html +++ b/src/main/resources/templates/portal.html @@ -10,7 +10,7 @@ </h2> <h3>Generate new throw-away shell:</h3> <form th:object="${osChoice}" th:id="request_pseudoform" action="#" th:action="@{'/frontend/shell/add'}" th:method="post" th:os="${osChoice}" th:onsubmit="return confirm('You are about to generate a shell with the OS ' + this.getAttribute('osoption') + ' - please be patient after you confirm, as the generation may take a short while.');"> - <select class="form-control" th:object="${osChoice}" name="osChoice"> + <select class="form-control" th:object="${osChoice}" name="osChoice" required> <option value="">Select operating system ...</option> <option th:each="osoption : ${availableOs}" @@ -18,7 +18,7 @@ th:attr="value=${osoption}" th:text="${osoption}"></option> </select> - <select class="form-control" th:object="${expiry}" name="expiry"> + <select class="form-control" th:object="${expiry}" name="expiry" required> <option value="">Select duration ...</option> <option th:value="5" th:attr="value=5" th:text="5"></option> <option th:value="10" th:attr="value=10" th:text="10"></option> |