aboutsummaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Collapse)Author
2017-05-15Add custom status hook to extended scriptLuis Rascao
Provide a status command to start script which, by default, runs a builtin hook that simply prints which applications are running in the node. This hook can then be customized to print whatever the user wants by adding {status, [{custom, "path/to/hook"}]} to already existing extended_start_script_hooks.
2017-05-14Merge pull request #585 from lrascao/fix/rewrite_otp_appsLuis Rascão
Only ensure kernel,stdlib for empty dep apps
2017-05-08Add the ability to chmod files in the overlay.Anthony Molinaro
Two types are supported, direct chmoding, like {chmod, 8#00700, "path/to/file/maybe/with/{{templates}}" } or templating the permission where you have a template var like {file_perm, 8#00700} and an overlay {chmod, "{{file_perm}}","path/to/file/maybe/with/{{templates}}" }
2017-04-09Only ensure kernel,stdlib for empty dep appsLuis Rascao
Do not try and ensure them for every app, there are some OTP apps that only require kernel and there's really no point in rewriting those.
2017-03-20Ensure stdlib,kernel as application dependenciesLuis Rascao
Make this dependency explicit as it was causing apps with empty application lists to not be included in the generated release.
2017-03-11Only use multi-node sys.config if requested when replacing OS varsLuis Rascao
When replacing OS vars only create multi-node sys.config files (ie. filenames containing the node name) only if explicitly requested. This is necessary because inclusion of other config files inside of sys.config is only allowed if the file is actually called sys.config and nothing else.
2017-01-03Add test coverage for long node name releasesLuis Rascao
2016-12-18Obtain release node name from Erlang VM instead of OSLuis Rascao
2016-11-26Fix duplicated methodLuis Rascao
Introduced while merging PRs 445, 541
2016-11-26Merge pull request #541 from lrascao/feature/exclude_modulesTristan Sloughter
Provide a new config directive that allows per-app module exclusion
2016-11-21Provide a new config directive that allows per-app module exclusionLuis Rascao
By introducing a new entry in the config file allow excluding specific modules from a given app, they will not be copied onto the final release and their reference removed from the .app file. The new entry takes on the following form: {exclude_modules, [ {App :: atom(), [Module :: atom()]} ]}
2016-11-12Add support for new relx directive that provides start/stop shell script hooksLuis Rascao
New 'extended_start_script_hooks' directive that allows the developer to define six different hook shell scripts to be invoked at pre/post start/stop/install upgrade phases. Besides these custom defined scripts, other types of builtin scripts are also available, these offer pre-packaged functionality that can be used directly, they are: pid - writes the beam pid to a configurable file location (/var/run/<rel_name>.pid by default). wait_for_vm_start - waits for the vm to start (ie. when it responds to pings) wait_for_process - waits for a configurable name to appear in the erlang process registry The hook scripts are invoked with the 'source' command, therefore they have access to all the variables in the start script.
2016-11-09Remove name collisions of replaced files in multi-node setupsSerge Aleynikov
2016-10-27Fix replace os vars functionalityLuis Rascao
The first run would correctly replace the environment variables, however it would also overwrite the original vm.args and sys.config thus preventing any further substitution in subsequent runs. Dev mode runs were also broken, all runs after the first were required to also define the RELX_REPLACE_OS_VARS variable in order not to overwrite the current vm.args with the original one, this prevented simply attaching to an already running node that was started this way. Add tests to exercise this functionality.
2016-10-26Revert "remove rlx_topo since all systools >=R15 have a working sort of apps"Tristan Sloughter
This reverts commit 701da7b9f2dfb872351b56938f7aed5bff0d79c7.
2016-10-25Always include nodetool when generating extended start scriptLuis Rascao
Remove redundant check for extended_start_script. Add tests that enforce this invariant.
2016-10-03Don't include erts src when user requests src not be includedLuis Rascao
Using the include_src option
2016-09-27Add test coverage for the extended bin scriptLuis Rascao
2016-09-25Increase test coverageLuis Rascao
2016-09-20Add recent OTP versionsLuis Rascao
2016-03-15Fixed template args order bugKozlov Yakov
2016-01-23replacing OS vars: use .orig files to prevent overwritingerlanger
2016-01-11use priv_dir for generated test dataTristan Sloughter
2016-01-06Include src/ in tarballs unless specified not toFred Hebert
By default, the `include_src` value is `true`, yet Relx disregards the value entirely when generating tarballs. This patch makes it so the value is used and respected when generating tarballs. Given the default value is `true`, this patch changes the default behaviour of relx to always include source files in tarballs, considering its omission a bug rather than a feature. Tests are added, verifying the impact on ERTS-included files.
2015-07-08don't do release discovery unless needed -- like for relupsTristan Sloughter
2015-06-25update for 18 time function changesTristan Sloughter
2015-06-25Fix paths for symlinksDaniel Widgren
2015-06-17Fixing test for windows, changing symlink to symlink_or_copyDaniel Widgren
2015-05-16fix add_providers config option for newest providers depTristan Sloughter
2015-05-08use mustache instead of erlydtl for overlaysTristan Sloughter
2015-02-19support overlay file inclusionLuis Rascao
allow overlay inclusion of other files, similarly to what OTP already does in sys.config files
2015-01-31don't overdo it with generated apps that are there to be ignoredTristan Sloughter
2015-01-31add support for excluding applications from the releaseTristan Sloughter
2015-01-30add config script funcionalityLuis Rascao
similar to rebar's config script, append a .script suffix to the provided relx config that is evaluated and can possibly change values in the original config
2015-01-10remove system libs from tarball if set to falseTristan Sloughter
2014-12-13render overlay filenames for tar archiveTristan Sloughter
2014-11-20Merge pull request #268 from tsloughter/no_def_error_msgJordan Wilberding
fix for error message output for no default release
2014-11-17add back _rel to app discovery, fix relup tests to noticeTristan Sloughter
2014-11-17fix for error message output for no default releaseTristan Sloughter
2014-11-09move back to using format_error/1Tristan Sloughter
2014-11-06fix modules thta still were using format_error/1Tristan Sloughter
2014-10-11fix tests for providers moved to new app and config list optionTristan Sloughter
2014-10-11provider task dependenciesTristan Sloughter
2014-07-09sort apps by version, so newest is chosen if it passes constraintsTristan Sloughter
2014-05-22fix for setting overrides with -aTristan Sloughter
2014-05-14refactor tar and relup commands to own providersTristan Sloughter
2014-05-14refactor cli args and config file var mergingTristan Sloughter
2014-05-09breaking change: output release to <output_dir>/<release_name>/Tristan Sloughter
2014-03-12Merge pull request #101 from konradkaplita/accelerate_discover_providerEric Merritt
Accelerate application discovery
2014-01-22Merge pull request #113 from tsloughter/dev_mode_sys_configEric Merritt
properly handle config files and switching on/off dev_mode