Commit Graph

38 Commits

Author SHA1 Message Date
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
7cbfb504d6 default clients & installs 2024-12-25 20:45:21 +01:00
20527ae412 renames 2024-12-25 20:30:24 +01:00
41f0c13da6 fixes for scanning generator 2024-12-25 19:01:32 +01:00
fbae8eeb2a the base 2024-12-25 11:44:17 +01:00
a7e714058f the base 2024-12-25 10:18:31 +01:00
37d2501067 the base 2024-12-25 10:11:52 +01:00