build jars and compose the docker image tweaks

This commit is contained in:
bryce
2024-11-16 01:41:36 +13:00
parent e31b5c4a63
commit 2a639ee9e1
18 changed files with 8 additions and 12 deletions

View File

@@ -1,5 +1,4 @@
sql/
target/
*.log
*.class
.idea/

View File

@@ -5,7 +5,7 @@ FROM openjdk:21-jdk-slim
WORKDIR /app
# Copy the built JAR file into the container
COPY target/BrickLog-Server-0.1.jar app.jar
COPY target/BrickLog-Server-0.1-SNAPSHOT.jar app.jar
# Expose the port your application runs on
EXPOSE 8080

View File

@@ -1,7 +1,7 @@
# Database configuration
spring.datasource.url=jdbc:mariadb://host.docker.internal:3306/bricklog
spring.datasource.username=bricklog
spring.datasource.password=your_password_here
spring.datasource.password=sl0gg1ngBricks4llD4y
# JPA settings

View File

@@ -1,9 +0,0 @@
# MariaDB Configuration
spring.datasource.url=jdbc:mariadb://localhost:3306/bricklog_db
spring.datasource.username=your_db_username
spring.datasource.password=your_db_password
# JPA settings
spring.jpa.hibernate.ddl-auto=update # Creates tables automatically; set to 'none' in production if not needed
spring.jpa.show-sql=true # Shows SQL queries in the console, useful for debugging
spring.jpa.database-platform=org.hibernate.dialect.MariaDBDialect

View File

@@ -1 +1,4 @@
com\example\bricklog\BrickLogApplication.class
com\example\bricklog\controller\LegoBuildController.class
com\example\bricklog\model\LegoBuild.class
com\example\bricklog\repository\LegoBuildRepository.class

View File

@@ -1 +1,4 @@
C:\Users\bryce\Documents\Git\BrickLog\BrickLog-Server\src\main\java\com\example\bricklog\BrickLogApplication.java
C:\Users\bryce\Documents\Git\BrickLog\BrickLog-Server\src\main\java\com\example\bricklog\repository\LegoBuildRepository.java
C:\Users\bryce\Documents\Git\BrickLog\BrickLog-Server\src\main\java\com\example\bricklog\controller\LegoBuildController.java
C:\Users\bryce\Documents\Git\BrickLog\BrickLog-Server\src\main\java\com\example\bricklog\model\LegoBuild.java