diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ff02be..2604f1c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 1.0.1 + +### Fixed + +- Persistence mapping in Docker (#77) + ## 1.0.0 ### Added diff --git a/Dockerfile b/Dockerfile index dc39d04..ba10e52 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,7 @@ RUN mvn -B package -DskipTests FROM openjdk:17-jdk-slim # Copy the jar file from the build stage -COPY --from=build /app/target/easydrop-1.0.0.jar /easydrop.jar +COPY --from=build /app/target/easydrop-1.0.1.jar /easydrop.jar # Execute the application when the docker container starts. ENTRYPOINT ["java", "-jar", "/easydrop.jar"] diff --git a/README.md b/README.md index 00cf601..9ef03e6 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # EasyDrop -![Version](https://img.shields.io/badge/version-1.0.0-orange) +![Version](https://img.shields.io/badge/version-1.0.1-orange) ![Pipeline](https://gitlab.fbe-adswen.rwu.de/team1/sandbox2/badges/main/pipeline.svg) [![Coverage](https://sonar.fbe-adswen.rwu.de/api/project_badges/measure?project=de.rwu%3Aeasydrop&metric=coverage&token=sqb_2fe80aed361468170aaef32a0ff96d596456cdd1)](https://sonar.fbe-adswen.rwu.de/dashboard?id=de.rwu%3Aeasydrop) ![JAMANN](https://img.shields.io/badge/Auszahlung-Letzte%20Woche-brightgreen) @@ -22,6 +22,7 @@ Set up the required configuration files, use the corresponding demo files for or - `config/config.properties` for API authorization - `products-config.json` to define product catalogues to use for dropshipping +- Run `touch persistence.db` to create a file to host the database Create the container diff --git a/docker-compose.yml b/docker-compose.yml index e424c90..c16f542 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -6,7 +6,9 @@ services: build: context: . dockerfile: Dockerfile - image: easydrop:1.0.0 + image: easydrop:1.0.1 volumes: - ./config:/config - - ./persistence.db:/persistence.db + - type: bind + source: ./persistence.db + target: /persistence.db diff --git a/pom.xml b/pom.xml index 3549a32..01c46d0 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ de.rwu easydrop jar - 1.0.0 + 1.0.1 EasyDrop http://maven.apache.org