Commit Graph

56 Commits

Author SHA1 Message Date
a66ef2e8b3 ... 2025-02-06 21:09:20 +03:00
5ad2062e5c format 2025-02-06 06:26:44 +03:00
9aee672450 s 2025-02-03 14:02:26 +03:00
c8d715126f s 2025-02-03 12:37:19 +03:00
0fd5062408 docusaurus 2025-02-02 19:24:10 +03:00
d6a13f81e0 Merge branch 'development_fix_ci' into development_kristof 2025-01-31 15:40:46 +03:00
6e1f23b702 Merge branch 'development' into development_kristof 2025-01-31 15:40:18 +03:00
74ab68d05f ... 2025-01-31 15:39:44 +03:00
112f5eecb2 feat: Add Buildah installer
- Added a Buildah installer to the project.
- The installer can install and remove Buildah.
- Updated the installer to use the latest Buildah version.

Co-authored-by: mahmmoud.hassanein <mahmmoud.hassanein@gmail.com>
Co-authored-by: mariobassem <mariobassem12@gmail.com>
2025-01-29 11:13:33 +01:00
0f095a691d feat: add docker installer
- Add a new docker installer.
- Includes functionality for installing, starting, stopping, and removing docker.

Co-authored-by: mariobassem12 <mariobassem12@gmail.com>
Co-authored-by: omda  <mahmmoud.hassanein@gmail.com>
2025-01-28 16:17:33 +01:00
8b0f692673 fix: Fix docker examples
- Moved `httpconnection` import from `clients` to `core`.
- Changed `tfgrid-sdk-ts` dashboard to playground.
- Added ipaddr to node_local().
- Added public keyword to OpenSSLGenerateArgs.
- Improved DockerEngine image and container loading.
- Added utils.contains_ssh_port.
- Improved error handling in DockerEngine.
- Improved Docker registry handling.

Co-authored-by: mariobassem12 <mariobassem12@gmail.com>
Co-authored-by: omda <mahmmoud.hassanein@gmail.com>
2025-01-28 14:08:42 +01:00
0ae8e227fc feat: Add screen installer
- Add a new installer for the `screen` utility.
- This installer supports Ubuntu and macOS.
- Includes functionality for installation, uninstallation,
  and status checking.
- Fixed tests for osal.screen

Co-authored-by: mahmmoud.hassanein <mahmmoud.hassanein@gmail.com>
2025-01-27 17:18:39 +02:00
888aac4867 push 2025-01-23 14:16:02 +01:00
timurgordon
dce0b71530 replace crystallib with herolib 2025-01-22 23:57:49 +00:00
Mahmoud Emad
3b580dcc1d fix: improve gitea and postgresql installation
- Improve the installation process for Gitea and PostgreSQL.
- Change the location of the Gitea config file to `/etc`.
- Add a health check for the PostgreSQL container.
- Ensure the Gitea user is created only if it doesn't exist.
- Add a restart command for Gitea to ensure it starts after.
- Improve error handling during user creation.
- Simplify PostgreSQL configuration in Gitea actions.
2025-01-09 13:31:57 +02:00
a63bba4558 fixes in gitea
Co-authored-by: omda <mahmmoud.hassanein@gmail.com>
2025-01-08 21:22:49 +02:00
Mahmoud Emad
de7c3ad36c fix: improve gitea installation
- Replace `osal.cmd_add` with explicit `cp` and `chmod`
- commands for more robust installation.
- This ensures gitea is correctly added to the path and
- made executable, providing better error handling.

Co-authored-by: mariobassem12 <mariobassem12@gmail.com>
2025-01-08 14:22:34 +02:00
Mahmoud Emad
d7efbeb53f fix: correct typo in Gitea SMTP port configuration
- Corrected a typo in the Gitea SMTP port configuration
- across multiple files: `gitea.vsh`, `gitea_model.v`,
- `server.v`, and `app.ini`.  The incorrect `smpt_port`
- was changed to the correct `smtp_port`.

Co-authored-by: mariobassem12 <mariobassem12@gmail.com>
2025-01-08 14:04:29 +02:00
Mahmoud Emad
7086a76a69 refactor: Simplify Gitea installer
- Remove unnecessary and incomplete code in `gitea_actions.v`.
- Simplify the `upload`, `startupcmd`, and `running` functions.
- Use a temporary file for the Gitea configuration.
- Implement a simpler health check using `curl`.

Co-authored-by: mariobassem12 <mariobassem12@gmail.com>
2025-01-08 13:41:24 +02:00
Mahmoud Emad
d6cb55abb1 feat: enable Gitea auto-start
- The Gitea installer now automatically starts the Gitea server after installation.
- Updated the installer to include a `start()` function.
- Added PostgreSQL installation and configuration to the Gitea installer.
- Improved error handling and logging.
- Updated configuration file template for better clarity and consistency.
- Renamed some variables for better readability.

Co-authored-by: mariobassem12 <mariobassem12@gmail.com>
2025-01-08 12:26:03 +02:00
Mahmoud Emad
e2a2f22571 refactor: improve gitea installer
- Refactor the Gitea installer to use a more robust and.
- configurable approach.  The installer now uses a more.
- flexible configuration system and handles different.
- platforms more effectively.  The installation process.
- is now more modular and easier to maintain.  The.
- previous method was overly simplistic and lacked.
- essential configuration options.

Co-authored-by: mariobassem12 <mariobassem12@gmail.com>
2025-01-08 11:43:01 +02:00
Mahmoud Emad
d631cc5af7 refactor: Migrate Gitea to Podman
- Migrate Gitea installation to use Podman containers.
- This simplifies the installation process and improves
- portability.  Removes reliance on direct binary
- downloads and manual installation steps.  The
- Gitea instance is now managed as a container.
- Updates configuration to reflect container-based
- deployment.  Updates version to 'latest' to
- leverage Podman's image management capabilities.

Co-authored-by: mariobassem12 <mariobassem12@gmail.com>
2025-01-06 17:12:59 +02:00
Mahmoud Emad
a19867c00b fix: Improve Postgresql healthcheck
- Remove unnecessary error return in `installed_()`.
- Remove `workdir` from `startupcmd()` as it's not needed.
- Simplify healthcheck to only return boolean.

Co-authored-by: mariobassem12 <mariobassem12@gmail.com>
2025-01-06 15:43:33 +02:00
Mahmoud Emad
51fb692f15 fix: Use container name instead of the server name 2025-01-06 15:29:20 +02:00
Mahmoud Emad
f6b08bb1bc refactor: Migrate PostgreSQL installer to Podman
- Replaced the previous systemd-based PostgreSQL installer with a
Podman-based solution. This simplifies the installation process
and improves compatibility across different Linux distributions.
- The new installer uses Podman containers to manage the
PostgreSQL database, eliminating the need for complex systemd
configurations and package management.
- This change enhances portability and reduces the risk of
conflicts with existing system packages.  The destroy_ function
now cleanly removes the Podman container.  The installed_ and
check functions now verify the container's health.

Co-authored-by: mario <mariobassem12@gmail.com>
2025-01-06 15:26:06 +02:00
Mahmoud Emad
5c0acf5678 refactor: Update PostgreSQL installer
- Updated PostgreSQL installer to use volume path instead of server path.
- Updated connection string to include user, password, host, and port.
- Updated import statements to use herolib instead of crystallib.
- Updated readme files to reflect changes.

Co-authored-by: mariobeh <mariobassem12@gmail.com>
2025-01-06 13:38:47 +02:00
Mahmoud Emad
704ad6d3ac refactor: remove unused imports
- Remove unused imports from postgresql and podman modules.

Co-authored-by: mariobassem <mariobassem12@gmail.com>
2025-01-06 13:30:25 +02:00
Mahmoud Emad
61b210d7e0 refactor: improve Podman installer
- Refactor Podman installer to use a more robust approach
- Improve error handling and clarify the installation/removal
- Update example usage to reflect changes

Co-authored-by: supermario <mariobassem12@gmail.com>
2025-01-06 12:51:46 +02:00
Mahmoud Emad
624639f87e refactor: simplify podman installer
- Simplify the Podman installer code.
- Remove unnecessary functions and improve code structure.
- Update the installer to support more platforms.
- Improve error handling and logging.
- Update Podman version to 4.9.3.
2025-01-06 12:16:29 +02:00
f7309f2433 wip: fix gitea & postgresql installers
Co-authored-by: omda <mahmmoud.hassanein@gmail.com>
2025-01-05 19:29:54 +02:00
a19480ecfd refactor: standardize imports and clean up commented code across modules 2025-01-03 00:29:37 +02:00
Mahmoud Emad
4c01c88b85 WIP: Building hero
- The work is still in progress

Co-authored-by: supermario <mariobassem12@gmail.com>
2025-01-02 19:01:37 +02:00
Mahmoud Emad
2e14b7b7af fix: improve git url parsing and deployment
- Improve the parsing of Git URLs to correctly handle paths and branches.
- Fix an issue where the `griddriver` installer was not correctly
- installed.
- Fix a bug in the `IPAddress` `ping` function.
- Update the `GitLocation` struct to correctly handle branches and
- tags.
- Fix a bug in the `GitRepo` `checkout` function.
- Improve the `gitlocation_from_url` function to handle various Git
- URL formats.
- Update the `livekit` installer to use the correct source command.
- Update the `golang` installer to use the correct `go version`
- command.
- Update the `griddriver` installer to use the correct version
- command.

Co-authored-by: supermario <mariobassem12@gmail.com>
2025-01-02 13:35:36 +02:00
36f41150c2 postgresql & new docs 2025-01-01 17:44:06 +01:00
b927fc5b5d ggolang install ok 2025-01-01 15:25:58 +01:00
914e1f5073 had to cleanup a lot in relation to optional returns 2025-01-01 13:40:24 +01:00
cffd5e2f9c fixed installers 2025-01-01 10:16:41 +01:00
023adb4ec7 ... 2024-12-31 17:23:25 +01:00
849e1f1f2f add delete script for vm_caddy && fixes 2024-12-31 18:06:24 +02:00
b5fde070b3 fixes 2024-12-31 15:14:13 +02:00
4233f9c3d1 fix imports 2024-12-31 15:11:57 +02:00
92335f8828 fixes for formatting 2024-12-31 11:00:02 +01:00
7e8dd68585 Merge branch 'development_remove_config_generics' into development_actions
* development_remove_config_generics:
  prob still broken, but don\t have time right now
  fix ourtime, logging, some missing installers, ...
  ...

# Conflicts:
#	examples/threefold/grid/vm_example.vsh
#	examples/threefold/grid/webgw_example.vsh
2024-12-31 10:21:34 +01:00
f8ab2f855a fix ourtime, logging, some missing installers, ... 2024-12-31 09:32:56 +01:00
f0fdf146a8 formatting 2024-12-30 17:36:22 +02:00
33eb743ba5 ... 2024-12-27 15:38:41 +01:00
4373ec21aa fixes installers 2024-12-25 22:30:33 +01:00
958daaa697 fixes for docu 2024-12-25 21:48:03 +01:00
8e48610c11 more installers 2024-12-25 20:56:35 +01:00
d458ccb7d0 installers 2024-12-25 20:53:37 +01:00