Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
31 changes: 31 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM openjdk:8-jdk-slim

Check failure

Code scanning / Fortify SCA

Dockerfile Misconfiguration: Default User Privilege High

The Dockerfile does not specify a USER, so it defaults to running with a root user. More information

LABEL maintainer="kevin.lee@microfocus.com"

# Add a volume pointing to /tmp
VOLUME /tmp

# Make port 8080 available to the world outside this container
EXPOSE 8080

# Location of WebInspect RuntTime Agent - comment out if not required
#ARG WI_AGENT_DIR=/installs/Fortify_WebInspect_Runtime_Agent_Java_21.3.1/

# The application's jar file
ARG JAR_FILE=target/iwa.jar

# Copy Fortify WebInspect Runtime Agent directory to the container - comment out if not required
#COPY ${WI_AGENT_DIR} /wirtagent

# Copy the application's jar to the container
COPY ${JAR_FILE} app.jar

# JAVA_OPTS to be passed in
ENV JAVA_OPTS="-Xmx512m -Xss256k"

# Run the jar file
# Uncomment if not using WebInspect Agent
ENTRYPOINT ["java","-jar","/app.jar"]
# Comment out if not using WebInspect Agent
#ENTRYPOINT ["java","-javaagent:/wirtagent/lib/FortifyAgent.jar","-jar","/app.jar"]

30 changes: 30 additions & 0 deletions Dockerfile.win
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
FROM openjdk:8-nanoserver-1809

LABEL maintainer="kevin.lee@microfocus.com"

# Add a volume pointing to C:\Data
VOLUME C:\\data

# Make port 8080 available to the world outside this container
EXPOSE 8080

# Location of WebInspect RuntTime Agent - comment out if not required
#ARG WI_AGENT_DIR=/installs/Fortify_WebInspect_Runtime_Agent_Java_21.3.1/

# The application's jar file
ARG JAR_FILE=target/iwa.jar

# Copy Fortify WebInspect Runtime Agent directory to the container - comment out if not required
#COPY ${WI_AGENT_DIR} /wirtagent

# Copy the application's jar to the container
COPY ${JAR_FILE} app.jar

# JAVA_OPTS to be passed in
ENV JAVA_OPTS="-Xmx512m -Xss256k"

# Run the jar file
# Uncomment if not using WebInspect Agent
ENTRYPOINT ["cmd","/c","java -jar C:\\app.jar"]
# Comment out if using WebInspect Agent
#ENTRYPOINT ["cmd","/c","java -javaagent:C:\\wirtagent\\lib\\FortifyAgent.jar -jar C:\\app.jar"]
108 changes: 108 additions & 0 deletions EXPLOITS.md

Large diffs are not rendered by default.

Loading