Skip to content

Commit

Permalink
Merge remote-tracking branch 'new/dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
anneferger committed Jun 24, 2024
2 parents 03eebe5 + e330d1f commit 9332145
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 30 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
- package-ecosystem: "maven" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
22 changes: 11 additions & 11 deletions .github/workflows/maven_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'adopt'
- name: maven-settings
uses: s4u/maven-settings-action@v2.7.0
uses: s4u/maven-settings-action@v3.0.0
with:
servers: '[{"id": "edirom", "username": "${github.actor}", "password": "${GITHUB_TOKEN}"},{"id": "teic", "username": "${github.actor}", "password": "${GITHUB_TOKEN}"}]'
- name: Build with Maven
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: mvn clean package --file pom.xml
- name: Upload Maven build artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: artifact
path: /home/runner/work/MEIGarage/MEIGarage/target/meigarage.war
Expand All @@ -41,26 +41,26 @@ jobs:
if: ${{ github.event_name != 'pull_request' }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Download artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: artifact
path: artifact/

# use the current user to log into the
# GitHub container registry
- name: Log in to GitHub Container registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# Login against DockerHub registry
- name: Log in to DockerHub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: vifebot
password: ${{ secrets.VIFEBOT_DOCKERHUB_TOKEN }}
Expand All @@ -69,7 +69,7 @@ jobs:
# https://github.com/docker/metadata-action
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/edirom/meigarage
Expand All @@ -80,7 +80,7 @@ jobs:
# Build and push Docker image with Buildx (don't push on PR)
# https://github.com/docker/build-push-action
- name: Build and push Docker image
uses: docker/build-push-action@v3
uses: docker/build-push-action@v5
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
Expand All @@ -90,7 +90,7 @@ jobs:
BUILDTYPE=github
# Use current README for DockerHub description
- name: Update repo description
uses: peter-evans/dockerhub-description@v3
uses: peter-evans/dockerhub-description@v4
with:
username: vifebot
password: ${{ secrets.VIFEBOT_DOCKERHUB_TOKEN }}
Expand Down
16 changes: 7 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,10 @@ ADD https://github.com/Edirom/lilypond-converter/raw/main/required.sh /tmp/requ
RUN chmod a+x /tmp/required-lilypond-converter.sh \
&& /tmp/required-lilypond-converter.sh --batch

# clone and run
RUN git clone --depth 1 -b master https://github.com/rism-digital/verovio /tmp/verovio \
&& cd /tmp/verovio/tools \
&& cmake ../cmake \
&& make -j 8 \
&& make install \
&& cp /tmp/verovio/fonts/Leipzig/Leipzig.ttf /usr/local/share/fonts/ \
&& fc-cache
# install verovio-converter dependencies
ADD https://github.com/Edirom/verovio-converter/raw/main/required.sh /tmp/required-verovio-converter.sh
RUN chmod a+x /tmp/required-verovio-converter.sh \
&& /tmp/required-verovio-converter.sh --batch

# entrypoint script
COPY docker-entrypoint.sh /my-docker-entrypoint.sh
Expand Down Expand Up @@ -135,6 +131,8 @@ RUN if [ "$VERSION_ODD" = "latest" ] ; then \
# && rm -r /tmp/encoding
#clone the latest version of https://github.com/music-encoding/encoding-tools/
RUN git clone --depth 1 -b main https://github.com/music-encoding/encoding-tools /tmp/encoding \
&& cd /tmp/encoding \
&& git rev-parse HEAD > /tmp/encoding/GITHASH \
&& mkdir -p ${MEI_SOURCES_HOME}/music-stylesheets/encoding-tools \
&& cp -r /tmp/encoding/* ${MEI_SOURCES_HOME}/music-stylesheets/encoding-tools \
&& rm -r /tmp/encoding
Expand Down Expand Up @@ -207,7 +205,7 @@ RUN curl -s -L -o /tmp/mei200.zip https://github.com/music-encoding/music-encodi
&& git rev-parse HEAD > /tmp/meidev/GITHASH \
&& mkdir -p ${MEI_SOURCES_HOME}/music-encoding/meidev \
&& cp -r /tmp/meidev/* ${MEI_SOURCES_HOME}/music-encoding/meidev \
&& curl -s -L -o ${MEI_SOURCES_HOME}/music-encoding/meidev/source/mei-source_canonicalized.xml https://raw.githubusercontent.com/music-encoding/schema/main/dev/mei-source_canonicalized.xml \
&& curl -s -L -o ${MEI_SOURCES_HOME}/music-encoding/meidev/source/mei-source_canonicalized.xml https://raw.githubusercontent.com/music-encoding/schema/main/dev/mei-source_canonicalized_v5.1-dev.xml \
&& rm -r /tmp/meidev

#https://github.com/Edirom/data-configuration - no releases, clone most recent version in dev branch and move to correct folder
Expand Down
9 changes: 5 additions & 4 deletions log4j.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,10 @@
<Appenders>
<Console name="console" target="SYSTEM_OUT">
<PatternLayout
pattern="%d{ABSOLUTE} %-5p %c{1}:%L - %m%n" />
pattern="%%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p - %m%n" />
</Console>
<RollingFile name="rollingFile" fileName="${LOG_DIR}/debugging.out" filePattern="${LOG_DIR}/debugging.%d{dd-MMM}.out.gz" ignoreExceptions="false">
<PatternLayout>
<Pattern>%m%n</Pattern>
</PatternLayout>
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p - %m%n"/>
<Policies>
<OnStartupTriggeringPolicy />
<SizeBasedTriggeringPolicy size="10MB" />
Expand All @@ -24,6 +22,9 @@
<Logger name="de.edirom.meigarage" level="debug" additivity="false">
<AppenderRef ref="rollingFile"/>
</Logger>
<Logger name="pl.psnc.dl.ege" level="debug" additivity="false">
<AppenderRef ref="rollingFile"/>
</Logger>
<Root level="warn">
<AppenderRef ref="console"/>
<AppenderRef ref="rollingFile"/>
Expand Down
32 changes: 27 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
<version>3.13.0 </version>
<configuration>
<source>11</source>
<target>11</target>
Expand All @@ -159,6 +159,28 @@
<finalName>${project.artifactId}-${project.version}</finalName>
</configuration>
</plugin>-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.23.0</version>
<configuration>
<failOnViolation>false</failOnViolation>
<printFailingErrors>true</printFailingErrors>
<linkXRef>false</linkXRef>
</configuration>
</plugin>
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>9.2.0</version>
<executions>
<execution>
<goals>
<goal>check</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
Expand All @@ -172,22 +194,22 @@
<dependency>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-jaxrs2</artifactId>
<version>2.2.0</version>
<version>2.2.22</version>
</dependency>
<dependency>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-jaxrs2-servlet-initializer-v2</artifactId>
<version>2.2.0</version>
<version>2.2.22</version>
</dependency>
<dependency>
<groupId>javax.ws.rs</groupId>
<artifactId>javax.ws.rs-api</artifactId>
<version>2.1</version>
<version>2.1.1</version>
</dependency>
<dependency>
<groupId>pl.psnc.dl.ege</groupId>
<artifactId>ege-framework</artifactId>
<version>0.5.3</version>
<version>0.5.6</version>
<scope>compile</scope>
</dependency>
<dependency>
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/pl/psnc/dl/ege/webapp/servlet/InfoServlet.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import io.swagger.v3.oas.annotations.media.Content;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import pl.psnc.dl.ege.webapp.servlethelpers.Info;

import javax.servlet.ServletException;
Expand Down Expand Up @@ -39,7 +41,7 @@ public class InfoServlet extends HttpServlet {
})
public void doGet(@Parameter(hidden = true) HttpServletRequest request, @Parameter(hidden = true) HttpServletResponse response)
throws IOException, ServletException {
info.doGetHelper(request, response, this);
info.doGetHelper(request, response, this);
}

}

0 comments on commit 9332145

Please sign in to comment.