File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4141 apt update -y
4242 apt install screen netcat -y
4343 screen –version
44- nc -v
4544
4645 # /var/lib/jetty/repo
4746 - run : pwd
@@ -100,14 +99,6 @@ jobs:
10099 command : |
101100 screen -d -m -s "webapp_on_local" ./build/output/_gradle_java/start.sh
102101
103- - run :
104- name : " browse the website"
105- command : |
106- sleep 5 && nc -vz localhost 8080
107- curl http://127.0.0.1:8080/
108- curl http://127.0.0.1:8080/hello
109- ./build/output/_gradle_java/stop.sh
110-
111102 - run :
112103 name : " start webapp on docker"
113104 command : |
@@ -165,6 +156,7 @@ jobs:
165156 name : " start webserver with web app"
166157 command : |
167158 docker build --tag=120_gradle_java_image .
159+ docker container rm 120_gradle_java_container
168160 docker run -d --name=120_gradle_java_container -p 80:8080 120_gradle_java_image
169161
170162 - run :
Original file line number Diff line number Diff line change @@ -410,4 +410,5 @@ APP_ID=120 && git clone -b basic_${APP_ID} \
410410## References
411411- https://github.com/bintray/bintray-examples/blob/master/gradle-example/build.gradle
412412- https://circleci.com/docs/2.0/building-docker-images/
413- - https://docs.gradle.org/current/userguide/war_plugin.html
413+ - https://docs.gradle.org/current/userguide/war_plugin.html
414+ - https://github.community/t/github-action-connection-failure-between-multiple-docker-containers/16094
You can’t perform that action at this time.
0 commit comments