Skip to content

Commit

Permalink
Merge pull request #155 from gefyrahq/#154
Browse files Browse the repository at this point in the history
fix(#154): pin docker release
  • Loading branch information
SteinRobert committed Aug 19, 2022
2 parents 59b9776 + d1115de commit 94ad1cf
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/python-tester.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ jobs:
working-directory: ./client
run: |
poetry run coverage run -a -m gefyra check
- name: Run gefyra version
working-directory: ./client
run: |
poetry run coverage run -a -m gefyra version
- name: Run gefyra up with invalid kubeconfig path
working-directory: ./client
shell: bash --noprofile --norc -o pipefail {0}
Expand Down
13 changes: 8 additions & 5 deletions client/gefyra/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,16 +263,22 @@ def get_client_configuration(args) -> ClientConfiguration:

def main():
try:
from gefyra import configuration
from gefyra import configuration as configuration_package
from gefyra.api import bridge, down, run, unbridge, unbridge_all, up
from gefyra.local.check import probe_kubernetes, probe_docker

args = parser.parse_args()

if args.action == "version":
check = not args.no_check
version(configuration_package, check)
exit(0)

if args.debug:
logger.setLevel(logging.DEBUG)
else:
logger.setLevel(logging.INFO)
logger.addHandler(configuration.console)
logger.addHandler(configuration_package.console)

configuration = get_client_configuration(args)

Expand Down Expand Up @@ -323,9 +329,6 @@ def main():
elif args.action == "check":
probe_docker()
probe_kubernetes(config=configuration)
elif args.action == "version":
check = not args.no_check
version(configuration, check)
elif args.action == "telemetry":
telemetry_command(on=args.on, off=args.off)
else:
Expand Down
4 changes: 2 additions & 2 deletions client/pyoxidizer.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def make_exe():

# linux, mac
exe.add_python_resources(exe.read_package_root(CWD, ["gefyra"]))
exe.add_python_resources(exe.pip_install(["--no-deps", "docker"]))
exe.add_python_resources(exe.pip_install(["--no-deps", "docker==5.0.3"]))
exe.add_python_resources(exe.pip_install(["kubernetes"]))
exe.add_python_resources(exe.pip_install(["tabulate"]))
exe.add_python_resources(exe.pip_install(["cli-tracker"]))
Expand Down Expand Up @@ -73,7 +73,7 @@ def make_win_exe():

# windows
exe.add_python_resources(exe.read_package_root(CWD, ["gefyra"]))
exe.add_python_resources(exe.pip_install(["--no-deps", "docker"]))
exe.add_python_resources(exe.pip_install(["--no-deps", "docker==5.0.3"]))
exe.add_python_resources(exe.pip_install(["kubernetes"]))
exe.add_python_resources(exe.pip_install(["pywin32"]))
exe.add_python_resources(exe.pip_install(["tabulate"]))
Expand Down

0 comments on commit 94ad1cf

Please sign in to comment.