Skip to content

Latest commit

 

History

History

mk-package

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Scripts to create and test linux packages

This folder contains the following scripts:

  • setup: builds the Docker containers that create Ubuntu packages.
  • package: builds the Ubuntu packages.
  • test: tests the installation of the packages created by package. These tests run inside containers, so no modifications are made to the host system, except for the TorXakis logs, which are placed in ci/mk-package/.torxakis.

After running package the .deb files will be placed inside .package-build.

Ubuntu packages are created inside Docker containers. To run the scripts in this directory install Docker.

After installing Docker, either log in again or run:

newgrp docker

from the terminal session where the setup, package, and test scripts will be run.

After docker is installed, run setup to create the docker containers.

./ci/mk-package/setup

This will create the Docker images that allow to create Ubuntu packages.

Next, create the Ubuntu packages by running:

./ci/mk-package/package $VERSION

where $VERSION must be a TorXakis git tag, e.g.:

./ci/mk-package/package 0.8.1.1

To test the packages run:

./ci/mk-package/test 0.8.1.1