Skip to content

Commit

Permalink
Merge pull request #157 from terry-norbraten/master
Browse files Browse the repository at this point in the history
Call sysctl -w kernel.perf_event_paranoid=-1 from Dockerfile
  • Loading branch information
apease authored Jan 24, 2025
2 parents 57ffdaf + 2e15eb0 commit cc89bb8
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
5 changes: 5 additions & 0 deletions INSTALL.MacOS
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ Apache Tomcat.
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-23.jdk/Contents/Home
export PATH=$JAVA_HOME/bin:$PATH

cd ~
mkdir workspace
cd workspace
git clone https://github.com/ontologyportal/sigmakee

Install (ensure the above preparations have been performed)
> ant install

Expand Down
2 changes: 0 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,9 @@
<condition property="isUnixNotMac">
<and>
<os family="unix"/>

<not>
<os family="mac"/>
</not>

</and>
</condition>

Expand Down
10 changes: 8 additions & 2 deletions docker/sigmakee/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@ FROM $IMAGE_ACCOUNT/sigma-ci:latest AS builder
# runtime image.
FROM tomcat:9.0.97-jdk21-temurin-jammy AS runtime

RUN apt update; \
apt-get install -y --no-install-recommends \
# Switch to root user
USER root

RUN apt update && apt-get install -y --no-install-recommends \
sudo \
graphviz

# Set kernel parameter
RUN sysctl -w kernel.perf_event_paranoid=-1

COPY --from=builder \
/usr/local/bin/e_ltb_runner /usr/local/bin/e_ltb_runner

Expand Down
10 changes: 8 additions & 2 deletions docker/sumo-ci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@ FROM $IMAGE_ACCOUNT/sigma-ci:latest AS builder
# runtime image.
FROM tomcat:9.0.97-jdk21-temurin-jammy AS runtime

RUN apt update; \
apt-get install -y --no-install-recommends \
# Switch to root user
USER root

RUN apt update && apt-get install -y --no-install-recommends \
sudo \
graphviz

# Set kernel parameter
RUN sysctl -w kernel.perf_event_paranoid=-1

COPY --from=builder \
/usr/local/bin/e_ltb_runner /usr/local/bin/e_ltb_runner

Expand Down

0 comments on commit cc89bb8

Please sign in to comment.