canonical / canonical/maas-dev-setup

Installing on a machine behind a proxy

Open
#7 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
12
Forks
16
PR merge metrics
No merged PRs in 30d

Description

i ran into a few issue i had installing this project when run from behind a proxy:

the machine needed the following proxy settings:
```shell
sudo snap set system proxy.http="${HTTP_PROXY}"
sudo snap set system proxy.https="${HTTPS_PROXY}"
sudo lxc config set core.proxy_http="${HTTP_PROXY}"
sudo lxc config set core.proxy_https="${HTTPS_PROXY}"
git config --global http.proxy "${HTTP_PROXY}"
git config --global https.proxy "${HTTPS_PROXY}"
```

the script needed to be run like this:
```shell
http_proxy=${HTTP_PROXY} https_proxy=${HTTPS_PROXY} maas-dev-setup/setup-dev-env.sh --ok
```

and even `setup-region-via-ssh.bash` failed eventually when it got to setting-up the maas-dev container. I'm not sure which, but one of [these](https://github.com/maas/maas-dev-setup/blob/main/setup-region-via-ssh.bash#L61-L62) required:

```shell
http_proxy=${HTTP_PROXY} https_proxy=${HTTPS_PROXY} make
http_proxy=${HTTP_PROXY}} https_proxy=${HTTPS_PROXY} make snap-tree-sync
```

because without it -- it could not run the pip setup environment and likely the rest of the build process within them.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.