From efc3cd5753511f5846f8c959cbc6203e17977f46 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sun, 24 Mar 2024 11:13:31 -0700 Subject: [PATCH] Add build docker image. --- .github/workflows/maven.yml | 4 ++-- README.md | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 8b6beca7..0676d57e 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -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 diff --git a/README.md b/README.md index 0795cdad..a051c0f4 100644 --- a/README.md +++ b/README.md @@ -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 : @@ -29,7 +28,7 @@ Once this command is executed, the file /wise-webapp/target/wisemap ### Local Development The previously generated war can be deployed locally executing within the directory /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.