Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
2f7bfa7
Bump commons-io:commons-io from 2.7 to 2.14.0
dependabot[bot] Mar 28, 2025
25e413b
custom .gitignore and log4j.properties
tomboone Mar 28, 2025
29d1f23
Merge pull request #1 from WRLC/dependabot/maven/commons-io-commons-i…
tomboone Mar 28, 2025
933c96f
add application insights to log4j
tomboone May 27, 2025
532db73
add application insights dependencies
tomboone May 27, 2025
d4f616b
reorganize pom.xml
tomboone May 27, 2025
ca84b05
update log4j to use azure file store
tomboone Jun 26, 2025
c6d23ed
add github deployment
tomboone Jul 8, 2025
a870215
Merge pull request #2 from WRLC/psb
Jul 8, 2025
a58fb9b
Bump org.json:json from 20180813 to 20231013
dependabot[bot] Jul 8, 2025
005c17c
Merge pull request #3 from WRLC/dependabot/maven/org.json-json-20231013
Jul 8, 2025
84c2484
update workflow names
tomboone Jul 8, 2025
46a3faa
update app names in github actions
tomboone Jul 15, 2025
573e431
Merge pull request #4 from WRLC/update/app-name
Jul 15, 2025
62c6655
update app name in psb github action
tomboone Jul 18, 2025
04c69b2
change branch name on psb action
tomboone Jul 18, 2025
ad6087c
Merge pull request #5 from WRLC/feature/new-azure-app-service
Jul 18, 2025
731f6c6
update apps/environments for deployment
tomboone Jul 22, 2025
0aa8b18
Merge pull request #6 from WRLC/feature/new-azure-app-service
Jul 22, 2025
f28bce9
Merge branch 'ExLibrisGroup:master' into main
shieldss Oct 23, 2025
9a90844
Add or update the Azure App Service build and deployment workflow config
shieldss Oct 24, 2025
5d5850f
Merge branch 'ExLibrisGroup:master' into main
shieldss Oct 27, 2025
290f929
Merge branch 'ExLibrisGroup:master' into main
shieldss Dec 8, 2025
7dad374
Merge branch 'ExLibrisGroup:master' into main
shieldss Jan 5, 2026
8d25253
Merge branch 'ExLibrisGroup:master' into main
shieldss Feb 3, 2026
b6e935b
Merge branch 'master' into main
shieldss Jun 10, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/azure-webapps-java-war-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Java CI with Maven (Production)

env:
AZURE_WEBAPP_NAME: scf-remote-storage-app
JAVA_VERSION: '11'
DISTRIBUTION: 'zulu'

on:
push:
tags:
- '*'

jobs:
build:

runs-on: ubuntu-latest
environment: 'Production IZs - Stage'

steps:
- uses: actions/checkout@v4

- name: Set up Java version
uses: actions/setup-java@v4
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.DISTRIBUTION }}
cache: 'maven'

- name: Build with Maven
run: mvn package

- name: Azure WebApp
uses: Azure/webapps-deploy@v3
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE_PROD }}
package: '*.war'
36 changes: 36 additions & 0 deletions .github/workflows/azure-webapps-java-war-psb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Java CI with Maven (PSB)

env:
AZURE_WEBAPP_NAME: scf-remote-storage-app-psb-iz
JAVA_VERSION: '11'
DISTRIBUTION: 'zulu'

on:
push:
branches: [ "main"]

jobs:
build:

runs-on: ubuntu-latest
environment: 'PSB IZs - Stage'

steps:
- uses: actions/checkout@v4

- name: Set up Java version
uses: actions/setup-java@v4
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: ${{ env.DISTRIBUTION }}
cache: 'maven'

- name: Build with Maven
run: mvn package

- name: Azure WebApp
uses: Azure/webapps-deploy@v3
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE_PSB }}
package: '*.war'
63 changes: 63 additions & 0 deletions .github/workflows/main_scf-remote-storage-app(stage).yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Docs for the Azure Web Apps Deploy action: https://github.com/Azure/webapps-deploy
# More GitHub Actions for Azure: https://github.com/Azure/actions

name: Build and deploy WAR app to Azure Web App - scf-remote-storage-app

on:
push:
branches:
- main
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read #This is required for actions/checkout

steps:
- uses: actions/checkout@v4

- name: Set up Java version
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'microsoft'

- name: Build with Maven
run: mvn clean install

- name: Upload artifact for deployment job
uses: actions/upload-artifact@v4
with:
name: java-app
path: '${{ github.workspace }}/target/*.war'

deploy:
runs-on: ubuntu-latest
needs: build
permissions:
id-token: write #This is required for requesting the JWT
contents: read #This is required for actions/checkout

steps:
- name: Download artifact from build job
uses: actions/download-artifact@v4
with:
name: java-app

- name: Login to Azure
uses: azure/login@v2
with:
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_E30C62BC95864D02B791F844D34CABBA }}
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_83ABBDA0F7A3476486B300709D7A60AB }}
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_C34478ADAB84421D9E25B7C7B4B855A8 }}

- name: Deploy to Azure Web App
id: deploy-to-webapp
uses: azure/webapps-deploy@v3
with:
app-name: 'scf-remote-storage-app'
slot-name: 'stage'
package: '*.war'

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.idea
src/main/resources/conf.json
target
# Maven
target/
pom.xml.tag
Expand Down
14 changes: 12 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@
<name>Alma Remote Storage App</name>

<dependencies>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>applicationinsights-web</artifactId>
<version>3.6.1</version>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>applicationinsights-logging-log4j1_2</artifactId>
<version>2.6.4</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.sun.istack/istack-commons-runtime -->
<dependency>
<groupId>com.sun.istack</groupId>
Expand All @@ -32,7 +42,7 @@
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20180813</version>
<version>20231013</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.quartz-scheduler/quartz -->
<dependency>
Expand Down Expand Up @@ -62,7 +72,7 @@
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.7</version>
<version>2.14.0</version>
</dependency>
<!-- Using the ArchiverFactory -->
<dependency>
Expand Down
14 changes: 10 additions & 4 deletions src/main/resources/log4j.properties
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
# Root logger option
log4j.rootLogger=INFO, stdout,file
log4j.rootLogger=DEBUG, stdout,file, AppInsightsAppender

# Redirect log messages to console
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.out
log4j.appender.stdout.layout=org.apache.log4j.EnhancedPatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d{HH:mm:ss,SSS}{Etc/UTC} %tid %-5p %15.15c{1} %3.3L: %m %n
log4j.appender.stdout.layout.ConversionPattern=%d{HH:mm:ss,SSS}{America/New_York} %tid %-5p %15.15c{1} %3.3L: %m %n


# Redirect log messages to a log file, support file rolling.
log4j.appender.file=org.apache.log4j.DailyRollingFileAppender
log4j.appender.file.File=logs/application.log
log4j.appender.file.File=/mnt/AlmaRSA/logs/application.log
log4j.appender.file.DatePattern='_'yyyy-MM-dd'.log'
log4j.appender.file.layout=org.apache.log4j.EnhancedPatternLayout
log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss,SSS}{Etc/UTC} %tid %-5p %15.15c{1} %3.3L: %m %n
log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss,SSS}{America/New_York} %tid %-5p %15.15c{1} %3.3L: %m %n

# Application Insights Appender
log4j.appender.AppInsightsAppender=com.microsoft.applicationinsights.log4j.v1_2.ApplicationInsightsAppender
# Optional: Set a layout for the AppInsightsAppender if needed, though often not necessary
log4j.appender.AppInsightsAppender.layout=org.apache.log4j.EnhancedPatternLayout
log4j.appender.AppInsightsAppender.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss,SSS}{America/New_York} %tid %-5p %15.15c{1} %3.3L: %m %n