Skip to content

Commit

Permalink
Initial commit for assignment 7
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaltes committed Jan 29, 2025
0 parents commit 103a492
Show file tree
Hide file tree
Showing 86 changed files with 18,109 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build-and-push:
runs-on: ubuntu-latest
environment: default

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: maven

- name: Build with Maven
run: mvn -B package --file pom.xml
67 changes: 67 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
######################
# OS generated files #
######################
*~
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
#Icon?
ehthumbs.db
Thumbs.db

##############
# Java/Scala #
##############
*.class

##########################
# Webstorm/IntelliJ IDEA #
##########################
.idea/
*.iml

######################
# Visual Studio Code #
######################
.vscode/

#########
# Excel #
#########
~$*

###########
# RStudio #
###########
.Rhistory
.RData

#########
# Maven #
##########
target/

####################
# Node.js, Angular #
####################

# Compiled output
frontend/dist
application/src/main/resources/static

# Node
frontend/node
frontend/node_modules
frontend/npm-debug.log

# Angular
frontend/.angular/cache

########
# Misc #
########
*.log
*.log.*
*.lck
5 changes: 5 additions & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
git 2.44.0
java temurin-21.0.3+9.0.LTS
maven 3.9.6
nodejs 22.13.1

7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM eclipse-temurin:21-jdk-alpine
RUN mkdir /opt/app
COPY application/target/application-0.0.1.jar /opt/app
COPY app.json /opt/app
WORKDIR /opt/app
ENTRYPOINT ["java", "-jar", "application-0.0.1.jar"]
EXPOSE 8080
Loading

0 comments on commit 103a492

Please sign in to comment.