snapctl 1.0.2__tar.gz → 1.0.4__tar.gz
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.
Potentially problematic release.
This version of snapctl might be problematic. Click here for more details.
- {snapctl-1.0.2 → snapctl-1.0.4}/PKG-INFO +1 -1
- {snapctl-1.0.2 → snapctl-1.0.4}/pyproject.toml +1 -1
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/commands/byogs.py +2 -2
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/commands/byosnap.py +2 -2
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/commands/byows.py +6 -4
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/config/constants.py +1 -1
- snapctl-1.0.4/snapctl/data/releases/1.0.2.mdx +5 -0
- snapctl-1.0.4/snapctl/data/releases/1.0.3.mdx +4 -0
- snapctl-1.0.4/snapctl/data/releases/1.0.4.mdx +5 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/LICENSE +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/README.md +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/__init__.py +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/__main__.py +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/commands/__init__.py +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/commands/game.py +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/commands/generate.py +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/commands/release_notes.py +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/commands/snapend.py +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/config/__init__.py +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/config/app.py +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/config/endpoints.py +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/config/hashes.py +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/__init__.py +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/profiles/__init__.py +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/profiles/snapser-byosnap-profile.json +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/profiles/snapser-byosnap-profile.yaml +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/profiles/snapser-byosnap-profile.yml +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/releases/1.0.0.mdx +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/releases/__init__.py +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/releases/beta-0.46.0.mdx +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/releases/beta-0.46.4.mdx +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/releases/beta-0.47.0.mdx +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/releases/beta-0.47.1.mdx +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/releases/beta-0.47.2.mdx +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/releases/beta-0.48.0.mdx +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/releases/beta-0.49.0.mdx +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/releases/beta-0.49.1.mdx +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/releases/beta-0.49.2.mdx +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/releases/beta-0.49.3.mdx +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/releases/beta-0.50.0.mdx +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/releases/beta-0.51.0.mdx +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/data/releases/beta-0.53.1.mdx +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/main.py +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/types/__init__.py +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/types/definitions.py +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/utils/__init__.py +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/utils/echo.py +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/utils/helper.py +0 -0
- {snapctl-1.0.2 → snapctl-1.0.4}/snapctl/utils/telemetry.py +0 -0
|
@@ -229,14 +229,14 @@ class ByoGs:
|
|
|
229
229
|
if platform == "win32":
|
|
230
230
|
response = subprocess.run([
|
|
231
231
|
# f"docker build --no-cache -t {tag} {path}"
|
|
232
|
-
'docker', 'build', '--platform', build_platform, '-t', self.tag,
|
|
232
|
+
'docker', 'build', '--load', '--platform', build_platform, '-t', self.tag,
|
|
233
233
|
'-f', self.docker_path_filename, self.path
|
|
234
234
|
], shell=True, check=False, env=env)
|
|
235
235
|
# stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT)
|
|
236
236
|
else:
|
|
237
237
|
response = subprocess.run([
|
|
238
238
|
# f"docker build --no-cache -t {tag} {path}"
|
|
239
|
-
"docker build --platform " +
|
|
239
|
+
"docker build --load --platform " +
|
|
240
240
|
f"{build_platform} -t {self.tag} " +
|
|
241
241
|
f"-f {self.docker_path_filename} {self.path}"
|
|
242
242
|
], shell=True, check=False, env=env)
|
|
@@ -748,14 +748,14 @@ class ByoSnap:
|
|
|
748
748
|
if platform == "win32":
|
|
749
749
|
response = subprocess.run([
|
|
750
750
|
# f"docker build --no-cache -t {remote_tag} {path}"
|
|
751
|
-
'docker', 'build', '--platform', build_platform, '-t', self.remote_tag,
|
|
751
|
+
'docker', 'build', '--load', '--platform', build_platform, '-t', self.remote_tag,
|
|
752
752
|
'-f', self.docker_path_filename, self.path
|
|
753
753
|
], shell=True, check=False, env=env)
|
|
754
754
|
# stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT)
|
|
755
755
|
else:
|
|
756
756
|
response = subprocess.run([
|
|
757
757
|
# f"docker build --no-cache -t {remote_tag} {path}"
|
|
758
|
-
"docker build --platform " +
|
|
758
|
+
"docker build --load --platform " +
|
|
759
759
|
f"{build_platform} -t {self.remote_tag} " +
|
|
760
760
|
f"-f {self.docker_path_filename} {self.path}"
|
|
761
761
|
], shell=True, check=False, env=env)
|
|
@@ -20,6 +20,7 @@ from snapctl.config.constants import SERVER_CALL_TIMEOUT, SNAPCTL_INPUT_ERROR, \
|
|
|
20
20
|
from snapctl.utils.helper import snapctl_error, snapctl_success, get_dot_snapser_dir
|
|
21
21
|
from snapctl.utils.echo import info, warning
|
|
22
22
|
|
|
23
|
+
|
|
23
24
|
class Byows:
|
|
24
25
|
"""
|
|
25
26
|
CLI commands exposed for a Bring your own Workstation
|
|
@@ -106,7 +107,7 @@ class Byows:
|
|
|
106
107
|
env_vars = []
|
|
107
108
|
|
|
108
109
|
for snap_id in snap_ids:
|
|
109
|
-
upper_id = snap_id.upper()
|
|
110
|
+
upper_id = snap_id.upper().replace("-", "_")
|
|
110
111
|
env_vars.append(f"SNAPEND_{upper_id}_GRPC_URL=localhost:{port}")
|
|
111
112
|
env_vars.append(
|
|
112
113
|
f"SNAPEND_{upper_id}_HTTP_URL=http://localhost:{port}")
|
|
@@ -128,7 +129,7 @@ class Byows:
|
|
|
128
129
|
env_lines = []
|
|
129
130
|
|
|
130
131
|
for snap_id in snap_ids:
|
|
131
|
-
upper_id = snap_id.upper()
|
|
132
|
+
upper_id = snap_id.upper().replace("-", "_")
|
|
132
133
|
env_lines.append(
|
|
133
134
|
f"export SNAPEND_{upper_id}_GRPC_URL=localhost:{port}")
|
|
134
135
|
env_lines.append(
|
|
@@ -393,7 +394,7 @@ class Byows:
|
|
|
393
394
|
self._handle_signal))
|
|
394
395
|
if hasattr(signal, "SIGBREAK"):
|
|
395
396
|
signal.signal(signal.SIGBREAK,
|
|
396
|
-
|
|
397
|
+
functools.partial(self._handle_signal))
|
|
397
398
|
# Set up port forward
|
|
398
399
|
self._setup_port_forward(
|
|
399
400
|
response_json['proxyPrivateKey'],
|
|
@@ -416,7 +417,8 @@ class Byows:
|
|
|
416
417
|
code=SNAPCTL_BYOWS_ATTACH_ERROR, progress=progress)
|
|
417
418
|
except HTTPError as http_err:
|
|
418
419
|
snapctl_error(
|
|
419
|
-
message=Byows._format_portal_http_error(
|
|
420
|
+
message=Byows._format_portal_http_error(
|
|
421
|
+
"Attach failed.", http_err, res),
|
|
420
422
|
code=SNAPCTL_BYOWS_ATTACH_ERROR, progress=progress)
|
|
421
423
|
except RequestException as e:
|
|
422
424
|
snapctl_error(
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|