Commit Graph

44 Commits

Author SHA1 Message Date
Mahmoud Emad
3fe350abe9 feat: Add RunPod start and improved pod creation
- Added a new `start_on_demand_pod` function to the RunPod client.
- Improved the `create_on_demand_pod` function to handle nested machine structure in the response.
- Updated the example to use the new functions and handle the new response structure.
- Updated the API key for the example.
- Added more descriptive field names in the `create_on_demand_pod` input.

Co-authored-by: mariobassem12 <mariobassem12@gmail.com>
2025-01-21 11:32:38 +02:00
Mahmoud Emad
9e51604286 feat: enhance RunPod example with detailed pod creation
- Added more options to the RunPod example, including:
- `cloud_type`, `gpu_count`, `volume_in_gb`,
- `container_disk_in_gb`, `min_vcpu_count`,
- `min_memory_in_gb`, `gpu_type_id`, `ports`, and
- `volume_mount_path`.  This provides a more
- comprehensive demonstration of RunPod's capabilities.
- Updated the example to create an on-demand pod with
- specified resources and settings.  The spot pod
- creation remains largely unchanged.  Improved the
- clarity and completeness of the example.  Removed
- commented-out code for better readability.  Also
- updated the `PodFindAndDeployOnDemandRequest` struct
- to remove default values, allowing for more flexible
- pod configurations.

Co-authored-by: mariobassem12 <mariobassem12@gmail.com>
2025-01-21 11:03:33 +02:00
Mahmoud Emad
309496ef5d feat: Add RunPod client
- Added a new RunPod client to the project.
- Updated the example to use the new client.
- Improved error handling in the client.
- Refactored the code for better readability.

Co-authored-by: mariobassem12 <mariobassem12@gmail.com>
2025-01-21 10:50:07 +02:00
4422d67701 wip: add spot pod creation
- Add support for creating spot pods using the RunPod API.
- Implement `create_spot_pod` function in the `RunPod` client.
- Refactor RunPod client to handle different query types and response structures.
- Improve error handling and logging for GraphQL requests.
- Update example to demonstrate spot pod creation.

Co-authored-by: mahmmoud.hassanein <mahmmoud.hassanein@gmail.com>
2025-01-20 21:34:16 +02:00
Mahmoud Emad
d54a1e5a34 refactor: improve RunPod client
- Refactor RunPod client to use generics for requests and
responses.
- This improves code readability and maintainability.
- Remove redundant code for building GraphQL queries and
handling HTTP requests.
- Add support for environment variables in pod creation.
- Update example with new API key and environment variables.

Co-authored-by: supermario <mariobassem12@gmail.com>
2025-01-20 15:02:05 +02:00
Mahmoud Emad
0d2307acc8 feat: add RunPod client
- Add a new RunPod client to the project.
- This client allows users to interact with the RunPod API to create and manage pods.
- Includes example usage and configuration options.
2025-01-19 22:20:47 +02:00
3812052ffa chore(tfgrid3deployer): improve example and logging 2025-01-15 18:52:48 +02:00
5256ab6f23 refactor(tfgrid3deployer): use more reliable nodes
- pick reliable nodes by pinging them before attempting deployment
2025-01-15 17:59:15 +02:00
1da8a2d319 feat(tfgrid3deployer): add delete method for deployments
- add a delete method for deployments which deletes all deployment
  contracts
- improve logging messages
- update examples according to changes
2025-01-15 13:00:04 +02:00
23c1456e7e docker creators 2025-01-14 10:25:35 +01:00
Mahmoud Emad
1fbb5bed4a chore: remove unnecessary debug print
- Remove a debug print statement that was no longer needed.
2025-01-09 10:49:51 +02:00
a63bba4558 fixes in gitea
Co-authored-by: omda <mahmmoud.hassanein@gmail.com>
2025-01-08 21:22:49 +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
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
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
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
e13931112d ... 2024-12-31 20:51:18 +01:00
7b601295f5 hwoto 2024-12-31 17:17:00 +01:00
849e1f1f2f add delete script for vm_caddy && fixes 2024-12-31 18:06:24 +02:00
694def6336 fixes in vm_caddy example 2024-12-31 17:37:58 +02:00
4233f9c3d1 fix imports 2024-12-31 15:11:57 +02:00
808c7646bf add example for deploying vm with caddy 2024-12-31 15:10:50 +02:00
92335f8828 fixes for formatting 2024-12-31 11:00:02 +01:00
8400bfc4ee Merge branch 'main_openai_fixes' into development_actions
* main_openai_fixes:
  wip: add tests for openai client
  fix crystallib imports
  fixes in openai client

# Conflicts:
#	examples/hero/generation/openapi_generation/example_actor/actor.v
#	examples/hero/openapi/actor.vsh
#	examples/hero/openapi/server.vsh
2024-12-31 10:23:20 +01:00
5151dfde49 Merge branch 'development_doctree_fixes' into development_actions
* development_doctree_fixes:
  wip: fix doctree example
  wip: fix doctree example
2024-12-31 10:21:53 +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
a59a66dd71 ... 2024-12-31 05:39:23 +01:00
f0fdf146a8 formatting 2024-12-30 17:36:22 +02:00
67132dcda8 wip: fix doctree example 2024-12-30 13:55:29 +02:00
e34a770cc6 wip: fix doctree example 2024-12-30 12:22:36 +02:00
523a58cfec ... 2024-12-30 08:39:45 +01:00
7894f7d420 ... 2024-12-30 08:01:17 +01:00
df63231db5 fix crystallib imports 2024-12-29 18:00:58 +02:00
84d3aaade7 ... 2024-12-27 17:06:08 +01:00
33eb743ba5 ... 2024-12-27 15:38:41 +01:00
4614c12819 the base 2024-12-25 12:27:58 +01:00
fbae8eeb2a the base 2024-12-25 11:44:17 +01:00