Skip to content

Commit

Permalink
Merge branch 'master' of github.com:aleon1220/multi-cloud-WebApp-Atte…
Browse files Browse the repository at this point in the history
…ndance
  • Loading branch information
aleon1220 committed Jun 9, 2023
2 parents 511cdf3 + 34f451c commit 110d4dd
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ since this is a 2018 project a lot of things need to change
4. API references. API docs

# Build and Test
``` bash

```bash
git clone repo
# import in IDE Eclipse suggested or use online IDE
# execute some of the unit tests
Expand All @@ -57,7 +58,9 @@ mvn package
# Deploy WebArchive file in tomcat. Docker apps info below
deploy .WAR in tomcat
```

## Maven

### Run the maven build Locally

- build the project locally with a locally installed maven client
Expand All @@ -69,6 +72,7 @@ mvn verify
```

- Use a docker tag to select a target JDK

> 8-jdk8-corretto
```bash
Expand All @@ -78,13 +82,13 @@ TOMCAT_DOCKER_TAG="8-jdk8-corretto"
- build the container to the latest version tag

```bash
docker build --tag aleon1220/soa:latest
docker build --tag aleon1220/soa:latest .
```

- Run the tomcat server with the pre-built WAR web Archive file
Use the tag latest or a particular version e.g. aleon1220/soa:v2 or aleon1220/soa:latest

```
```bash
docker run -itd --publish 8888:8080 --name attendance_webapp_container aleon1220/soa:latest
```

Expand All @@ -96,8 +100,7 @@ refer to https://hub.docker.com/_/tomcat
docker container exec -it aleon1220/soa /bin/bash
```

- The URl is localhost:8888/AttendanceWebApp
[AttendanceWebApp](localhost:8888/AttendanceWebApp)
- The URl is localhost:8888/AttendanceWebApp | [AttendanceWebApp](http://localhost:8888/AttendanceWebApp)

---

Expand Down Expand Up @@ -132,4 +135,4 @@ docker run -it --name my-maven-project -v "$(pwd)":/usr/src/mymaven -w /usr/src/

## GitHub Vulnerability report

https://github.com/aleon1220/multi-cloud-WebApp-Attendance/security/dependabot
https://github.com/aleon1220/multi-cloud-WebApp-Attendance/security/dependabot

0 comments on commit 110d4dd

Please sign in to comment.