Maintenance will be performed on git.ligo.org, chat.ligo.org, containers.ligo.org, and docs.ligo.org on the morning of Tuesday 11th August 2020, starting at approximately 9am PDT. It is expected to take around 20 minutes and there will be a short period of downtime (less than five minutes) towards the end of the maintenance window. Please direct any comments, questions, or concerns to computing-help@ligo.org.

Commit 45e94d6f authored by Daniel Brown's avatar Daniel Brown

Adding rpm packaging

parent 5eede023
FROM scientificlinux/sl:7
WORKDIR /root
RUN yum -y update
RUN yum -y install git rpm-build gcc gsl-devel make gcc-c++
RUN git clone https://git.ligo.org/finesse/finesse.git
ADD . /host
ENTRYPOINT "python /root/finesse/packaging/rpm/build.py"
\ No newline at end of file
Builds an RPM package for the Finesse binary
Build docker image first:
docker build -t finesse/sl7 .
import os
from subprocess import call
os.chdir("/root/finesse")
call("git pull".split())
call("./finesse.sh --build".split())
os.chdir("/root/finesse/packaging/rpm")
call("mkdir -p rpmbuild/{RPMS,SRPMS,BUILD,SOURCES,SPECS,tmp}".split())
with open(".rpmmacros") as file:
file.write("""
%_topdir %(echo $HOME)/rpmbuild
%_tmppath %{_topdir}/tmp
""")
os.chdir("/root/finesse/packaging/rpm/rpmbuild")
# mkdir finesse-{version}
# mkdir -p finesse-{version}/usr/bin
# mkdir -p finesse-{version}/etc/finesse
# install -m 755 toybinprog toybinprog-1.0/usr/bin
# install -m 644 toybinprog.conf toybinprog-1.0/etc/toybinprog/
# tar -zcvf toybinprog-1.0.tar.gz toybinprog-1.0/
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment