Skip to content

Commit

Permalink
Initial config for preparing Cantera 2.6.0b1 packages for Ubuntu 20.04
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Mar 25, 2022
0 parents commit b599891
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*~
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# syntax=docker/dockerfile:1
FROM ubuntu:20.04

ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update
RUN apt-get install -y g++ python3 python3-numpy cython3 libeigen3-dev libboost-dev git scons python3-pip git emacs-nox devscripts debhelper gfortran libsundials-dev liblapack-dev libblas-dev python3-ruamel.yaml libgtest-dev libgmock-dev libfmt-dev libyaml-cpp-dev python3-pip

COPY scripts/* /src/
WORKDIR /src
8 changes: 8 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#/bin/bash
docker run -it \
--mount type=bind,source=~/src/cantera,target=/src/cantera,readonly \
--mount type=bind,source=~/.gnupg,target=/root/gnupg-remote,readonly \
-e "CTVER=2.6.0b1" \
-e "CTBRANCH=ubuntu20.04-ct2.6" \
-e "PPA_TARGET=cantera-team/cantera-unstable" \
${USER}/ctppa:ubuntu20.04
5 changes: 5 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

/src/prepare.sh
cd /src/packaging/cantera
debuild -uc -us
10 changes: 10 additions & 0 deletions scripts/prepare.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash

mkdir /src/packaging
cd /src/cantera
git archive v$CTVER --output=../packaging/cantera_${CTVER}.orig.tar.gz --prefix=cantera-${CTVER}/
git archive $CTBRANCH --output=../packaging/tmp.tar --prefix=cantera/
cd /src/packaging
rm -rf cantera
tar xf tmp.tar

9 changes: 9 additions & 0 deletions scripts/put.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

cd /src
./prepare.sh
cd /src/packaging/cantera
rm -rf /root/.gnupg
cp -a /root/gnupg-remote /root/.gnupg
debuild -S -sa
dput ppa:$PPA_TARGET ../cantera_${CTVER}*source.changes

0 comments on commit b599891

Please sign in to comment.