-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
88 changed files
with
2,729 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Base Image: Use the official OpenJDK image with a specific Java version (adjust as needed) | ||
FROM maven:3.9.7-amazoncorretto-21 AS build | ||
|
||
# Environment Variables | ||
ENV APP_HOME=/app | ||
ENV PORT=8080 | ||
|
||
# Set Working Directory for Build | ||
WORKDIR $APP_HOME | ||
|
||
# Copy Project Files | ||
COPY . . | ||
|
||
# Build the Application using Maven | ||
RUN mvn package -DskipTests | ||
|
||
|
||
# Runtime Image | ||
FROM amazoncorretto:21-alpine-jdk | ||
|
||
# Environment Variables | ||
ENV APP_HOME=/app | ||
|
||
# Create App Directory (If Needed) | ||
WORKDIR $APP_HOME | ||
|
||
# Copy the JAR from the Build Stage (target folder) | ||
COPY --from=build $APP_HOME/target/app-1.0.jar app.jar | ||
|
||
# Expose Port | ||
EXPOSE $PORT | ||
|
||
# Run the Application | ||
ENTRYPOINT ["java","-jar","/app/app.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,11 @@ | ||
# 2024-Eventu | ||
Assignment for the 2024 edition of the "Web Development and the Semantic Web" course, by Gabriel Ferrari Wagnitz and Thaliys Antunes Daré | ||
|
||
## To run the project: | ||
|
||
- use ```mvnw spring-boot:run``` if you have java locally, or | ||
- run ```docker compose up``` to run it using docker | ||
|
||
The initial test user for demo is | ||
username: [email protected] | ||
password: admin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
version: '3.7' | ||
services: | ||
app: | ||
build: . # Build from the current directory (where Dockerfile is) | ||
depends_on: # Ensures the DB is running before the app starts | ||
- database | ||
ports: | ||
- "8080:8080" # Map your Spring Boot app's port | ||
environment: | ||
- MYSQL_HOST=database | ||
|
||
database: | ||
image: mysql:8.4 | ||
volumes: | ||
- mysql:/var/lib/mysql | ||
- ./machine/my.cnf:/etc/alternatives/my.cnf | ||
ports: | ||
- "3306:3306" | ||
environment: | ||
- MYSQL_RANDOM_ROOT_PASSWORD=true | ||
- MYSQL_DATABASE=aluno | ||
- MYSQL_USER=aluno | ||
- MYSQL_PASSWORD=aluno | ||
|
||
|
||
volumes: | ||
mysql: |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.