Skip to content

Commit

Permalink
updated Dockerfile and debug logging
Browse files Browse the repository at this point in the history
  • Loading branch information
anneferger committed Jun 19, 2024
1 parent 0e8b4df commit 3316c39
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -131,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 @@ -203,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
4 changes: 4 additions & 0 deletions 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 All @@ -24,6 +26,7 @@
@Tag(name = "ege-webservice", description = "Conversion, Validation and Customization")
})
public class InfoServlet extends HttpServlet {
private static final Logger LOGGER = LogManager.getLogger(InfoServlet.class);
Info info = new Info();
@Override
@GET
Expand All @@ -39,6 +42,7 @@ public class InfoServlet extends HttpServlet {
})
public void doGet(@Parameter(hidden = true) HttpServletRequest request, @Parameter(hidden = true) HttpServletResponse response)
throws IOException, ServletException {
LOGGER.debug("REQUEST: " + request.getRequestURL() + " " + request.getContextPath() + " " + request.toString());
info.doGetHelper(request, response, this);
}

Expand Down

0 comments on commit 3316c39

Please sign in to comment.