Skip to content

Commit

Permalink
Added instructions for how to build the package in a Docker container
Browse files Browse the repository at this point in the history
  • Loading branch information
ariostas committed Nov 20, 2022
1 parent a8612b4 commit 143f951
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM debian:bullseye

RUN apt-get -yqq update
RUN apt-get -yqq install build-essential nano cmake dpkg-dev devscripts \
debhelper-compat libcdd-dev libgmp-dev \
texlive-latex-base texlive-plain-generic \
libbz2-dev libqsopt-ex-dev txt2man zlib1g-dev

WORKDIR /home/
13 changes: 13 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Building the TOPCOM Debian package
Building the debian package can be a little annoying the first time, so I collected the instructions and tools I used to build it. There is a Dockerfile that is used to produce a Docker image with all of the necessary dependencies. In the Docker container the command used to build the package is either
```bash
dpkg-buildpackage -rfakeroot -b -uc -us
```
or
```bash
debuild -b -uc -us
```
The full instructions to build a Debian package were originally taken from this [website](https://ostechnix.com/how-to-build-debian-packages-from-source/).

### Note
When you build the package it will change a bunch of the files in the repository and create new ones. Therefore, you should make a temporary copy of the directory to be used for this. Otherwise, committing new changes to the repository will become a mess.

0 comments on commit 143f951

Please sign in to comment.