Skip to content
Snippets Groups Projects
Verified Commit 01ad3490 authored by stendler's avatar stendler
Browse files

docker and in memory database for testing

parent e7b4f657
No related branches found
No related tags found
No related merge requests found
FROM openjdk:8-jre-alpine
COPY target/restmembox-0.2-SNAPSHOT.jar /opt/memorybox/app.jar
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-Dspring.profiles.active=docker", "-jar", "/opt/memorybox/app.jar"]
EXPOSE 8080
\ No newline at end of file
......@@ -25,6 +25,8 @@
</properties>
<dependencies>
<!-- Spring Boot -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-rest</artifactId>
......@@ -42,16 +44,25 @@
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!-- DataSources -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
</dependency>
<!-- Test -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
......
spring.datasource.url=jdbc:mysql://localhost:3306/memorybox?useUnicode=yes&amp;characterEncoding=UTF-8
spring.datasource.username=memory
spring.datasource.password=memory
spring.jpa.hibernate.ddl-auto=create
spring.datasource.url=jdbc:mysql://mariadb_memorybox:3306/memorybox?useUnicode=yes&amp;characterEncoding=UTF-8
spring.datasource.username=memory
spring.datasource.password=memory
spring.jpa.hibernate.ddl-auto=create
spring.datasource.url=jdbc:mysql://localhost:3306/memorybox?useUnicode=yes&amp;characterEncoding=UTF-8
spring.datasource.username=memory
spring.datasource.password=memory
#spring.datasource.driver-class-name=
#spring.datasource.url=jdbc:h2:mem:db;DB_CLOSE_DELAY=-1\
#spring.datasource.username=memory
#spring.datasource.password=memory
spring.jpa.hibernate.ddl-auto=create
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment