Skip to content

Commit 693ffd6

Browse files
committed
!!! TODO basic_120 Hello Publishing Web App!
1 parent 4c31354 commit 693ffd6

2 files changed

Lines changed: 3 additions & 10 deletions

File tree

.circleci/config.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ jobs:
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:

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)