Skip to content

Commit

Permalink
Add build docker image.
Browse files Browse the repository at this point in the history
  • Loading branch information
veigap committed Mar 24, 2024
1 parent 8ca83bf commit efc3cd5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ on:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 21
Expand All @@ -29,6 +27,8 @@ jobs:
cache: maven
- name: Build with Maven
run: mvn -B clean package --file wise-api/pom.xml -DskipTests
- name: Build the Docker image
run: docker build wise-api/ --file Dockerfile -t wisemapping/wisemapping-api:latest

# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
#- name: Update dependency graph
Expand Down
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,15 @@ WiseMapping is based on the same code product supporting [http://www.wisemapping

The following products must be installed:

* OpenJDK 21 or higher
* JDK 21 or higher
* Maven 3.x or higher ([http://maven.apache.org/])
* npm 6 or higher ([https://www.npmjs.com/package/npm?activeTab=versions])

### Compiling

WiseMapping uses Maven as packaging and project management. It's composed of 5 maven sub-modules:

* wise-ui: React font-end fetcher
* wise-webapp: J2EE web application
* wise-api: Springboot Backend API

The full compilation of the project can be performed executing within <project-dir>:

Expand All @@ -29,7 +28,7 @@ Once this command is executed, the file <project-dir>/wise-webapp/target/wisemap
### Local Development
The previously generated war can be deployed locally executing within the directory <project-dir>/wise-webapp the following command:

`cd wise-webapp;mvn jetty:run-war`
`cd wise-api;spring-boot:run`

This will start the application on the URL: [http://localhost:8080/] using file based database.

Expand Down

0 comments on commit efc3cd5

Please sign in to comment.