Add build docker image.
parent
8ca83bfdad
commit
efc3cd5753
|
@ -16,9 +16,7 @@ on:
|
|||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up JDK 21
|
||||
|
@ -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
|
||||
|
|
|
@ -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>:
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue