Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update install instruction READMEs #158

Merged
merged 28 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
b8fb74e
[Terry N.] keep trying recommendation for setting perf perms
Jan 24, 2025
3d2d6bc
Merge origin/master
Jan 24, 2025
0fd55f0
[Terry N.] correct path to tomcat
Jan 26, 2025
49d9535
[Terry N.] compact apt commands
Jan 26, 2025
9eb8687
[Terry N.] compact apt commands
Jan 26, 2025
e1aadf5
[Terry N.] define dist.dir and dist.jar
Jan 27, 2025
6b5e3ab
[Terry N.] compile.test during dist to check consistency of test classes
Jan 27, 2025
034f663
[Terry N.] minor updates to install instructions
Jan 27, 2025
d76028d
[Terry N.] retry w/ apt update vice apt-get update
Jan 27, 2025
a3b8467
[Terry N.] not sure why the spurious segmentation faults all of a sudden
Jan 27, 2025
9c883dc
[Terry N.] not sure why the spurious segmentation faults all of a sudden
Jan 28, 2025
1941fa4
[Terry N.] forgot backslash
Jan 28, 2025
59c2c94
[Terry N.] try older, but recent version of Vampire/Z3
Jan 28, 2025
503dd20
[Terry N.] fix ARG syntax
Jan 28, 2025
ec0d2f7
[Terry N.] pull vampire src as gz
Jan 28, 2025
e635c4f
[Terry N.] make explicit dirs for vampire & z3
Jan 28, 2025
53bac95
[Terry N.] correct names of untar'd archives
Jan 28, 2025
2e378e9
[Terry N.] correct names of untar'd archives
Jan 28, 2025
d0898c9
[Terry N.] okay, this one built locally, SAT
Jan 28, 2025
9b8c585
[Terry N.] okay, try CLANG as the compiler. Works locally in Docker
Jan 29, 2025
20fafee
[Terry N.] okay, try CLANG as the compiler. Works locally in Docker
Jan 29, 2025
c17eed3
[Terry N.] minor note edit
Jan 29, 2025
a71b839
[Terry N.] try apt (newer) vs. apt-get
Jan 29, 2025
51ede97
[Terry N.] go back to gcc but try w/ only 2 vice 4 processors
Jan 29, 2025
74f7a00
[Terry N.] go back to gcc but try w/ only 2 vice 4 processors
Jan 29, 2025
edf87e6
[Terry N.] try a previous runner: ubuntu-22.04
Jan 29, 2025
c26354e
[Terry N.] bump E v2.0 to v3.1
Jan 30, 2025
10fb581
[Terry N.] bump E v2.0 to v3.1
Jan 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ env:

jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
4 changes: 3 additions & 1 deletion INSTALL.MacOS
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,11 @@ cd ~
mkdir workspace
cd workspace
git clone https://github.com/ontologyportal/sigmakee
cd sigmakee

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

*** Legacy install steps now taken care of by the above command "ant install"
cd ~
Expand Down Expand Up @@ -104,7 +106,7 @@ and try to uncompress again:
cp -iav WordNet-3.0/dict/* ~/workspace/sumo/WordNetMappings/
rm WordNet-3.0.tar.gz

curl -O 'https://wwwlehre.dhbw-stuttgart.de/~sschulz/WORK/E_DOWNLOAD/V_2.0/E.tgz'
curl -O 'http://wwwlehre.dhbw-stuttgart.de/~sschulz/WORK/E_DOWNLOAD/V_3.1/E.tgz'
tar xvzf E.tgz
rm E.tgz
cd E
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ Then,
```sh
cd sigmakee
ant install
ant
```

To keep this repository updated
Expand All @@ -352,7 +353,7 @@ mkdir Programs
cd Programs
wget 'https://archive.apache.org/dist/tomcat/tomcat-9/v9.0.97/bin/apache-tomcat-9.0.97.zip'
wget 'https://wordnetcode.princeton.edu/3.0/WordNet-3.0.tar.gz'
wget 'https://wwwlehre.dhbw-stuttgart.de/~sschulz/WORK/E_DOWNLOAD/V_2.0/E.tgz'
wget 'http://wwwlehre.dhbw-stuttgart.de/~sschulz/WORK/E_DOWNLOAD/V_3.1/E.tgz'
tar -xvzf E.tgz
unzip apache-tomcat-9.0.97.zip
rm apache-tomcat-9.0.97.zip
Expand Down
9 changes: 3 additions & 6 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@
<property name="build.classes.dir" value="${build.home}/WEB-INF/classes"/>
<property name="build.lib" value="${build.home}/lib"/>
<property name="build.test.classes.dir" value="${build.home}/test/classes"/>
<property name="dist.dir" value="dist"/>
<property name="dist.jar" value="${dist.dir}/${app.name}.jar"/>
<property name="dist.javadoc.dir" value="doc"/>
<property name="web.dir" value="web"/>
<property name="reports.dir" value="${build.home}/test/results"/>
Expand Down Expand Up @@ -235,7 +233,7 @@
<mkdir dir="${reports.dir}"/>
</target>

<target name="dist" depends="compile" description="Create the *.war file and place in ${dist.dir}.">
<target name="dist" depends="compile,compile.test" description="Create the *.war file and place in $CATALINA_HOME/webapps/sigma, create sigmakee.jar.">
<manifest file="${manifest.mf}">
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Specification-Title"
Expand Down Expand Up @@ -360,7 +358,6 @@
<target name="clean" description="Delete old build, lib, dist and deployed web aritifacts">
<delete includeemptydirs="true" failonerror="false">
<fileset dir="${build.home}"/> <!-- avoid problems with package name changes by deleting everything -->
<fileset dir="${dist.dir}"/>
<!-- Delete the old web code -->
<fileset dir="${deploy.home}"/>
<fileset dir="${tomcat.home}/work/Catalina/localhost/${web.app.name}"/>
Expand Down Expand Up @@ -415,7 +412,7 @@
</target>

<target name="retrieve.E">
<get src="https://wwwlehre.dhbw-stuttgart.de/~sschulz/WORK/E_DOWNLOAD/V_2.0/E.tgz" dest="${programs.dir}" tryGzipEncoding="true"/>
<get src="http://wwwlehre.dhbw-stuttgart.de/~sschulz/WORK/E_DOWNLOAD/V_3.1/E.tgz" dest="${programs.dir}" tryGzipEncoding="true"/>
<untar src="${programs.dir}/E.tgz" dest="${programs.dir}" compression="gzip"/>
<delete file="${programs.dir}/E.tgz"/>
</target>
Expand Down Expand Up @@ -562,7 +559,7 @@
</exec>
</target>

<!-- If Vampire fails to build on Hamming, here is a alternate source of the binary -->
<!-- If Vampire fails to build on Hamming, here is an alternate source of the binary -->
<target name="alternate.vampire">
<get src="https://github.com/vprover/vampire/releases/download/v4.9casc2024/vampire" dest="${programs.dir}/vampire/build" tryGzipEncoding="true"/>
<chmod dir="${programs.dir}/${programs.dir}/vampire/build" perm="ugo+rx" includes="vampire"/>
Expand Down
2 changes: 1 addition & 1 deletion config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<preference name="sumokbname" value="SUMO" />
<preference name="systemsDir" value="/home/theuser" />
<preference name="termFormats" value="no" />
<preference name="testOutputDir" value="/var/tomcat/apache-tomcat-9.0.97/webapps/sigma/tests" />
<preference name="testOutputDir" value="/usr/local/tomcat/apache-tomcat-9.0.97/webapps/sigma/tests" />
<preference name="TPTPDisplay" value="no" />
<preference name="tptpHomeDir" value="/home/theuser" />
<preference name="TPTP" value="yes" />
Expand Down
87 changes: 63 additions & 24 deletions docker/sigma-ci/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,36 +1,70 @@
FROM tomcat:9.0.97-jdk21-temurin-jammy AS builder

# Followed instructions from: https://github.com/vprover/vampire/wiki/Source-Build-for-Users
# for buildling latest vampire w/ latest z3

RUN apt update; \
apt-get install -y --no-install-recommends \
build-essential \
cmake \
git \
python3 \
;\
wget 'http://wwwlehre.dhbw-stuttgart.de/~sschulz/WORK/E_DOWNLOAD/V_2.6/E.tgz' &&\
tar xf E.tgz ;\
# Follow instructions from: https://github.com/vprover/vampire/wiki/Source-Build-for-Users
# for buildling the latest vampire w/ latest z3

# Here, we are utilizing a known Vampire build w/ Z3 matched to that build
ARG VAMPIRE_GIT='https://github.com/vprover/vampire/archive/refs/tags/v4.9casc2024.tar.gz'
ARG Z3_GIT='https://github.com/Z3Prover/z3/archive/refs/tags/z3-4.12.3.tar.gz'
# Latest E Theorem Prover (2024-05-01)
ARG E_PROVER='http://wwwlehre.dhbw-stuttgart.de/~sschulz/WORK/E_DOWNLOAD/V_3.1/E.tgz'
ARG WORD_NET='https://wordnetcode.princeton.edu/3.0/WordNet-3.0.tar.gz'

# We're in /usr/local/tomcat
RUN apt-get update && apt-get install -y --install-recommends \
build-essential \
cmake \
git \
python3 ;\
wget $E_PROVER && tar xf E.tgz ;\
cd E ;\
./configure && make ;\
./configure && make -j2 ;\
cd .. ;\
wget 'https://wordnetcode.princeton.edu/3.0/WordNet-3.0.tar.gz' ;\
tar xf WordNet-3.0.tar.gz ;\
wget $WORD_NET && tar xf WordNet-3.0.tar.gz ;\
git clone https://github.com/vprover/vampire ;\
cd vampire ;\
git submodule update --init ;\
mkdir build ;\
mkdir z3/build && cd z3/build ;\
mkdir -p z3/build && cd z3/build ;\
cmake .. -DZ3_SINGLE_THREADED=1 -DCMAKE_BUILD_TYPE=Release ;\
make -j`nproc` ;\
make -j2 ;\
cd ../../build ;\
cmake .. ;\
make -j`nproc` ;\
make -j2 ;\
cd .. ;\
cp build/vampire vampire ;\
./checks/sanity vampire

#RUN apt update && apt install -y --install-recommends \
# build-essential \
# clang \
# cmake \
# git \
# python3 ;\
# wget $E_PROVER &&\
# tar xf E.tgz ;\
# cd E ;\
# ./configure && make CC="clang" CXX="clang++" ;\
# cd .. ;\
# wget $WORD_NET &&\
# tar xf WordNet-3.0.tar.gz ;\
# wget $VAMPIRE_GIT &&\
# tar -xzf v4.9casc2024.tar.gz ;\
# wget $Z3_GIT &&\
# tar -xzf z3-4.12.3.tar.gz ;\
# mv z3-z3-4.12.3/* vampire-4.9casc2024/z3 ;\
# cd vampire-4.9casc2024 ;\
# mkdir build ;\
# mkdir -p z3/build && cd z3/build ;\
# CC=clang CXX=clang++ cmake .. -DZ3_SINGLE_THREADED=1 -DCMAKE_BUILD_TYPE=Release ;\
# make -j`nproc` ;\
# cd ../../build ;\
# CC=clang CXX=clang++ cmake .. ;\
# make -j`nproc` ;\
# cd .. ;\
# cp build/bin/vampire_* vampire ;\
# ./checks/sanity vampire

#################################################
# runtime image.
FROM tomcat:9.0.97-jdk21-temurin-jammy AS runtime
Expand All @@ -41,15 +75,20 @@ COPY --from=builder \
COPY --from=builder \
/usr/local/tomcat/WordNet-3.0 /opt/WordNet-3.0

#COPY --from=builder \
# /usr/local/tomcat/vampire-4.9casc2024/vampire /usr/local/bin/vampire
#
#COPY --from=builder \
# /usr/local/tomcat/vampire-4.9casc2024/z3/build/libz3.* /usr/local/bin/

COPY --from=builder \
/usr/local/tomcat/vampire/vampire /usr/local/bin/vampire

COPY --from=builder \
/usr/local/tomcat/vampire/z3/build/libz3.* /usr/local/bin/

RUN apt update; \
apt-get install -y --no-install-recommends \
ant \
ant-optional \
git \
graphviz
RUN apt-get update && apt-get install -y --no-install-recommends \
ant \
ant-optional \
git \
graphviz
11 changes: 2 additions & 9 deletions docker/sigmakee/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,8 @@
# runtime image.
FROM tomcat:9.0.97-jdk21-temurin-jammy AS runtime

# 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
RUN apt-get update && apt-get install -y --no-install-recommends \
graphviz

COPY --from=builder \
/usr/local/bin/e_ltb_runner /usr/local/bin/e_ltb_runner
Expand All @@ -35,4 +28,4 @@

ENV SIGMA_HOME=/root/sigmakee-runtime
ENV LD_LIBRARY_PATH=/usr/local/bin:$LD_LIBRARY_PATH
ENV CATALINA_OPTS="$CATALINA_OPTS -Xmx10g -Xss1m"

Check warning on line 31 in docker/sigmakee/Dockerfile

View workflow job for this annotation

GitHub Actions / build-sumo-ci

Variables should be defined before their use

UndefinedVar: Usage of undefined variable '$CATALINA_OPTS' More info: https://docs.docker.com/go/dockerfile/rule/undefined-var/
11 changes: 2 additions & 9 deletions docker/sumo-ci/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,8 @@ FROM $IMAGE_ACCOUNT/sigma-ci:latest AS builder
# runtime image.
FROM tomcat:9.0.97-jdk21-temurin-jammy AS runtime

# 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
RUN apt-get update && apt-get install -y --no-install-recommends \
graphviz

COPY --from=builder \
/usr/local/bin/e_ltb_runner /usr/local/bin/e_ltb_runner
Expand Down
4 changes: 2 additions & 2 deletions nbproject/build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ debug.test.modulepath=\
# Files in build.classes.dir which should be excluded from distribution jar
dist.archive.excludes=
# This directory is removed when the project is cleaned:
#dist.dir=dist
#dist.jar=${dist.dir}/${app.name}.jar
dist.dir=dist
dist.jar=${dist.dir}/${app.name}.jar
#dist.javadoc.dir=${dist.dir}/doc/api
excludes=
file.reference.src-java=src/java
Expand Down
Loading