-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial config for preparing Cantera 2.6.0b1 packages for Ubuntu 20.04
- Loading branch information
0 parents
commit b599891
Showing
6 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |