snapctl 0.26.0__tar.gz → 0.26.1__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: snapctl
3
- Version: 0.26.0
3
+ Version: 0.26.1
4
4
  Summary: Snapser CLI Tool
5
5
  Author: Ajinkya Apte
6
6
  Author-email: aj@snapser.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "snapctl"
3
- version = "0.26.0"
3
+ version = "0.26.1"
4
4
  description = "Snapser CLI Tool"
5
5
  authors = ["Ajinkya Apte <aj@snapser.com>"]
6
6
  readme = "README.md"
@@ -161,16 +161,18 @@ class ByoGs:
161
161
  ) as progress:
162
162
  progress.add_task(
163
163
  description='Building your snap...', total=None)
164
+ docker_file_path = f"{self.path}/{self.dockerfile}"
164
165
  if platform == "win32":
165
166
  response = subprocess.run([
166
167
  # f"docker build --no-cache -t {tag} {path}"
167
- 'docker', 'build', '--platform', build_platform, '-t', image_tag, self.path
168
+ 'docker', 'build', '--platform', build_platform, '-t', image_tag,
169
+ '-f', docker_file_path, self.path
168
170
  ], shell=True, check=False)
169
171
  # stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT)
170
172
  else:
171
173
  response = subprocess.run([
172
174
  # f"docker build --no-cache -t {tag} {path}"
173
- f"docker build --platform {build_platform} -t {image_tag} {self.path}"
175
+ f"docker build --platform {build_platform} -t {image_tag} -f {docker_file_path} {self.path}"
174
176
  ], shell=True, check=False)
175
177
  # stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT)
176
178
  if response.returncode:
@@ -169,16 +169,18 @@ class ByoSnap:
169
169
  ) as progress:
170
170
  progress.add_task(
171
171
  description='Building your snap...', total=None)
172
+ docker_file_path = f"{self.path}/{self.dockerfile}"
172
173
  if platform == "win32":
173
174
  response = subprocess.run([
174
175
  # f"docker build --no-cache -t {tag} {path}"
175
- 'docker', 'build', '--platform', build_platform, '-t', image_tag, self.path
176
+ 'docker', 'build', '--platform', build_platform, '-t', image_tag,
177
+ '-f', docker_file_path, self.path
176
178
  ], shell=True, check=False)
177
179
  # stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT)
178
180
  else:
179
181
  response = subprocess.run([
180
182
  # f"docker build --no-cache -t {tag} {path}"
181
- f"docker build --platform {build_platform} -t {image_tag} {self.path}"
183
+ f"docker build --platform {build_platform} -t {image_tag} -f {docker_file_path} {self.path}"
182
184
  ], shell=True, check=False)
183
185
  # stdout=subprocess.DEVNULL, stderr=subprocess.STDOUT)
184
186
  if response.returncode:
@@ -2,7 +2,7 @@
2
2
  Constants used by snapctl
3
3
  """
4
4
  COMPANY_NAME = 'Snapser'
5
- VERSION = '0.26.0'
5
+ VERSION = '0.26.1'
6
6
  CONFIG_FILE_MAC = '~/.snapser/config'
7
7
  CONFIG_FILE_WIN = '%homepath%\\.snapser\\config'
8
8
 
File without changes
File without changes
File without changes
File without changes
File without changes