Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update .version #23

Merged
merged 2 commits into from
Apr 23, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Update provision.py
  • Loading branch information
raiyanyahya committed Apr 23, 2022
commit 19edb021d4be46bd0ff37e9cc3bf7d38a0b01ff6
6 changes: 3 additions & 3 deletions freshenv/provision.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
client: APIClient = None
current_directory = getcwd()
folder = path.basename(current_directory)
local_mount_binds = [f"{current_directory}:/home/devuser/{folder}:delegated"]
local_mount_binds = [f"{current_directory}:/home/{folder}:delegated"]
google_dns = ["8.8.8.8"]

def get_port_bindings(ports: List[str]) -> Dict:
Expand All @@ -32,9 +32,9 @@ def create_environment(flavour: str, command: str, ports: List[str], name: str,
stdin_open=stdin_open,
tty=tty,
command=command,
volumes=["/home/devuser"],
volumes=["/home"],
ports=ports,
use_config_proxy=False,
use_config_proxy=True,
host_config=client.create_host_config(port_bindings=get_port_bindings(ports),userns_mode="host",privileged=True,dns=google_dns,binds=local_mount_binds))
return container

Expand Down