Skip to content

Files

Latest commit

568c71e · Dec 12, 2024

History

History

ci

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Sep 9, 2019
Oct 31, 2021
Oct 31, 2021
Jan 29, 2021
Dec 9, 2021
Nov 2, 2021
Dec 12, 2024
Apr 11, 2024

Launch local build environmet

Requirements:

To launch shell in build environment with current code run in project root:

$ sudo docker-compose run app /bin/bash

It may be convenient to set environment variables for build during launch:

$ sudo docker-compose run -e PARALLEL_TEST_PROCESSORS=4 app /bin/bash

From here you can run the whole test suite

(container)$ make test

Or a single spec

(container)$ make rspec spec=spec/features/cdr/cdr_exports/new_cdr_export_spec.rb

And build debian package

(container)$ make package

Passwordless sudo is installed in container:

(container)$ sudo apt update && sudo apt install -y vim

To relaunch environment with new changes

(container)$ exit
$ sudo docker-compose build
$ sudo docker-compose run app /bin/bash

To shutdown and clean environment

(container)$ exit
$ sudo docker-compose down