Commit Graph

31 Commits

Author SHA1 Message Date
Mike Salvatore a81462e617 Build: Use writable location for temporary systemd unit file
As set, the $SCRIPT_DIR was read-only (since the AppImage's squashfs is
readonly). Use $PWD instead.
2022-05-05 11:03:48 -04:00
Mike Salvatore 27ac518f2e Build: Set umask before writing temporary systemd unit file 2022-05-05 11:03:48 -04:00
Mike Salvatore 02ba8361a9 Build: Extract function exit_if_user_doesnt_exist() 2022-05-05 11:03:48 -04:00
Mike Salvatore 2a18e3e1bf Build: Remove unnecessary assert_parameter_supplied() 2022-05-05 11:03:48 -04:00
Mike Salvatore 7e039f73ff Build: Ensure either --install or --uninstall are specified 2022-05-05 11:03:48 -04:00
Mike Salvatore 6d50814c19 Build: Make --install and --uninstall mutually exclusive 2022-05-05 11:03:48 -04:00
Mike Salvatore ed58ca6950 Build: Rename $uname -> $username in AppImage installation script
"uname" could refer to the `uname` command (short for unix name).
"username" more clearly communicates the variable's purpose.
2022-05-05 11:03:48 -04:00
EliaOnceAgain 0287f58d8d Build: Use $APPIMAGE instead of --path during service installation 2022-05-05 11:02:56 -04:00
EliaOnceAgain 02916a25f3 Build: Check for the 'service' argument in AppRun 2022-05-05 11:02:35 -04:00
EliaOnceAgain 1c702b28ba Build: Include install-infection-monkey-service.sh in the AppImage 2022-05-05 11:02:28 -04:00
EliaOnceAgain 6dfaf5ec74 Deploy: Move deployment_scripts/install-infection-monkey-service.sh to build_script/appimage/ 2022-05-05 11:01:47 -04:00
Mike Salvatore fdf8198e7f Build: Use `pipenv requirements` in appimage build
As of pipenv 2022.04.30, `pipenv lock -r` is deprecated in favor of the
new `pipenv requirements` command.
2022-05-02 08:52:17 -04:00
Ilija Lazoroski 27d47c05c4 Build: Run `npm run dev` on development build 2022-04-12 17:25:04 +02:00
Mike Salvatore 3973f26192 Build: Bump Python version for building AppImage to 3.7.13 2022-03-22 19:34:25 -04:00
Mike Salvatore c3f5812906 Build: Refactor agent versioning 2021-10-21 12:19:08 -04:00
Ilija Lazoroski d55cbcfbd3 Build: Fix move package to dist dir on appimage 2021-10-21 17:25:00 +02:00
Ilija Lazoroski 6d827ad1af Build: Refactor commit id 2021-10-21 17:12:01 +02:00
Ilija Lazoroski 530ba633d2 Build: Add build commit to appimage build name 2021-10-21 16:52:13 +02:00
VakarisZ 226c72df5f Deployments: Rename appImage deployment only if a specific version is not specified
With this change, Jenkins will output packages in the following naming conventions:

Develop: InfectionMonkey-$commit_number_x86_64.AppImage

Release: InfectionMonkey-v$version.AppImage
2021-10-21 16:52:13 +02:00
VakarisZ 65f7fd0131 Deployments: change the outputs of appimage build and docker build to conform to the naming convention of InfectionMonkey-v*.*
AppImages are built into InfectionMonkey-v1.11.0.AppImage

Docker is build into InfectionMonkey-docker-v1.11.0.tgz
2021-10-21 16:52:13 +02:00
Mike Salvatore 2f88de6f08 Build: Fix AppImage package version 2021-09-30 15:41:37 -04:00
Mike Salvatore 2d701e45df Build: Set PYTHONNOUSERSITE in AppRun
Fixes #1500
2021-09-30 15:39:17 -04:00
Ilija Lazoroski c4ab6f4362 Build_scripts: Add deployment type to the build_scripts 2021-09-15 14:38:07 +02:00
Mike Salvatore 3287f4831e Build: Remove deployment.json files 2021-09-14 12:22:03 -04:00
Shreya Malviya c46c02507f build_scripts: Extract deployment field from server configs to separate files for appimage and docker 2021-09-10 15:21:34 +05:30
Mike Salvatore 11488365e8 Build: Package the AppImage with linuxdeploy
Fixes #1355
Fixes #1362
2021-07-31 19:20:36 -04:00
Mike Salvatore bd66539548 Build: Remove AppImage package from dist/ in appimage/clean.sh 2021-07-28 15:51:27 -04:00
Mike Salvatore 6aff4a16b2 Build: Move final build artifact to dist/ directory 2021-07-28 07:53:33 -04:00
Mike Salvatore 0609bc2063 Build: Add README.md for build_package.sh 2021-07-27 15:31:33 -04:00
Mike Salvatore ae1427f6a6 Build: Remove duplicate code from appimage build script 2021-07-27 15:25:50 -04:00
Mike Salvatore 3e638298e6 Build: Move appimage/ and docker/ into build_scrips/ 2021-07-27 08:12:01 -04:00