Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Greg Haskins <[email protected]>
  • Loading branch information
ghaskins committed Oct 19, 2024
1 parent 233db3a commit feae722
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
FROM ubuntu:24.10

WORKDIR /src

RUN \
set -eux \
&& apt-get update \
&& apt-get install -y --no-install-suggests \
openjdk-22-jdk \
make \
wget

COPY . .
RUN ls -la && make all

ENV MANETU_URL="ingress.manetu-platform"
ENV LOG_LEVEL="info"
ENV LOADTEST_CONCURRENCY="64"
ENV LOADTEST_NR="10000"
ENV LOADTEST_QUERY=/etc/manetu/loadtest/examples/label-by-email.sparql
ENV LOADTEST_BINDINGS=/etc/manetu/loadtest/examples/bindings.csv

COPY target/uberjar/app.j* /usr/local/
COPY docker/entrypoint.sh /usr/local/bin
COPY examples/by-email/* /etc/manetu/loadtest/examples/

ENTRYPOINT ["entrypoint.sh"]
5 changes: 5 additions & 0 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

set -eux -o pipefail

exec java -jar /usr/local/app.jar -u $MANETU_URL --no-progress -l $LOG_LEVEL --concurrency $LOADTEST_CONCURRENCY --nr $LOADTEST_NR --query $LOADTEST_QUERY --bindings $LOADTEST_BINDINGS

0 comments on commit feae722

Please sign in to comment.