request-vm-on-golem 0.1.33__py3-none-any.whl → 0.1.34__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: request-vm-on-golem
3
- Version: 0.1.33
3
+ Version: 0.1.34
4
4
  Summary: VM on Golem Requestor CLI - Create and manage virtual machines on the Golem Network
5
5
  Keywords: golem,vm,cloud,decentralized,cli
6
6
  Author: Phillip Jensen
@@ -131,6 +131,34 @@ cd vm-on-golem/requestor-server
131
131
  pip install -e .
132
132
  ```
133
133
 
134
+ ## Development
135
+
136
+ To run the application in development mode, you need to set environment variables to configure development-specific settings. These are defined in the `.env.dev` file.
137
+
138
+ You can run the server in development mode using one of the following methods:
139
+
140
+ ### Using `source`
141
+
142
+ First, source the development environment variables:
143
+
144
+ ```bash
145
+ source .env.dev
146
+ ```
147
+
148
+ Then, run any `golem` command. For example:
149
+
150
+ ```bash
151
+ poetry run golem vm providers
152
+ ```
153
+
154
+ ### Prepending variables
155
+
156
+ Alternatively, you can prepend the environment variables directly to the command:
157
+
158
+ ```bash
159
+ GOLEM_REQUESTOR_ENVIRONMENT="development" GOLEM_REQUESTOR_FORCE_LOCALHOST="true" poetry run golem vm providers
160
+ ```
161
+
134
162
  ## Usage
135
163
 
136
164
  ### Provider Discovery
@@ -2,7 +2,7 @@ requestor/__init__.py,sha256=OqSUAh1uZBMx7GW0MoSMg967PVdmT8XdPJx3QYjwkak,116
2
2
  requestor/api/main.py,sha256=7utCzFNbh5Ol-vsBWeSwT4lXeHD7zdA-GFZuS3rHMWc,2180
3
3
  requestor/cli/__init__.py,sha256=e3E4oEGxmGj-STPtFkQwg_qIWhR0JAiAQdw3G1hXciU,37
4
4
  requestor/cli/commands.py,sha256=Ydq2xaM0RkDPiJmMQlV3PbwUCP7D1o-MeeSBkRoTf3U,24071
5
- requestor/config.py,sha256=l0nN3kqaUWPyPxlgth_dmU1icZRXxlAOBSFT9O7slk0,3575
5
+ requestor/config.py,sha256=6s95PFAu5aSk3JunWoPfYszFaZAgbYZtmXSKyqgOU2k,3590
6
6
  requestor/db/__init__.py,sha256=Gm5DfWls6uvCZZ3HGGnyRHswbUQdeA5OGN8yPwH0hc8,88
7
7
  requestor/db/sqlite.py,sha256=l5pWbx2qlHuar1N_a0B9tVnmumLJY1w5rp3yZ7jmsC0,4146
8
8
  requestor/errors.py,sha256=wVpHBuYgQx5pTe_SamugfK-k768noikY1RxvPOjQGko,665
@@ -18,7 +18,7 @@ requestor/ssh/__init__.py,sha256=hNgSqJ5s1_AwwxVRyFjUqh_LTBpI4Hmzq0F-f_wXN9g,119
18
18
  requestor/ssh/manager.py,sha256=XhZjz7_BRPnmpu-zxqnGHLCq0b2JZ8Xr8zc1OlMNDkc,9355
19
19
  requestor/utils/logging.py,sha256=oFNpO8pJboYM8Wp7g3HOU4HFyBTKypVdY15lUiz1a4I,3721
20
20
  requestor/utils/spinner.py,sha256=PUHJdTD9jpUHur__01_qxXy87WFfNmjQbD_sLG-KlGo,2459
21
- request_vm_on_golem-0.1.33.dist-info/METADATA,sha256=je2At7KF0YcvM2absJKZPnh6ocrP0lfJszwFihmomtA,9261
22
- request_vm_on_golem-0.1.33.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
23
- request_vm_on_golem-0.1.33.dist-info/entry_points.txt,sha256=Z-skRNpJ8aZcIl_En9mEm1ygkp9FKy0bzQoL3zO52-0,44
24
- request_vm_on_golem-0.1.33.dist-info/RECORD,,
21
+ request_vm_on_golem-0.1.34.dist-info/METADATA,sha256=poA0o0IgA20kYZDk--c34CHkN8pyp1v8FRCvdvU_480,9950
22
+ request_vm_on_golem-0.1.34.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
23
+ request_vm_on_golem-0.1.34.dist-info/entry_points.txt,sha256=Z-skRNpJ8aZcIl_En9mEm1ygkp9FKy0bzQoL3zO52-0,44
24
+ request_vm_on_golem-0.1.34.dist-info/RECORD,,
requestor/config.py CHANGED
@@ -102,8 +102,9 @@ class RequestorConfig(BaseSettings):
102
102
  Returns:
103
103
  The complete provider URL with protocol and port.
104
104
  """
105
- if self.environment == "development" and self.force_localhost:
106
- return "http://localhost:7466"
105
+ if self.environment == "development":
106
+ # In dev mode, we might still want to use the real IP
107
+ pass
107
108
  return f"http://{ip_address}:7466"
108
109
 
109
110
  config = RequestorConfig()