mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-18 07:52:23 +01:00
(doc) installing behind a proxy
This commit is contained in:
parent
e51e736eb9
commit
4fe0d6ecba
@ -2,6 +2,7 @@
|
||||
|
||||
## next deploy
|
||||
|
||||
- Documentation for installing behind a proxy
|
||||
- Improved docker image building time
|
||||
- Use relative paths in mount scripts
|
||||
- Run the docker image with the system user
|
||||
|
@ -20,6 +20,8 @@ The following guide describes what you can do and how to use Fab-manager.
|
||||
The following guides are designed for the people that perform software maintenance.
|
||||
- [Setup and update a production environment](production_readme.md)
|
||||
|
||||
- [Installing behind a corporate proxy](proxy.md)
|
||||
|
||||
- [Configuring the environment variables](environment.md)
|
||||
|
||||
- [Known issues with Fab-Manager](known-issues.md)
|
||||
|
53
doc/proxy.md
Normal file
53
doc/proxy.md
Normal file
@ -0,0 +1,53 @@
|
||||
# Install Fab-manager behind a proxy
|
||||
|
||||
## Configure docker service
|
||||
|
||||
As root, create a service configuration file for docker:
|
||||
|
||||
```bash
|
||||
mkdir -p /etc/systemd/system/docker.service.d
|
||||
vi /etc/systemd/system/docker.service.d/http-proxy.conf
|
||||
```
|
||||
|
||||
```unit file (systemd)
|
||||
[Service]
|
||||
Environment="HTTP_PROXY=http://proxy.example.com:8080/"
|
||||
Environment="HTTPS_PROXY=https://proxy.example.com:8080/"
|
||||
Environment="NO_PROXY=localhost,example.com"
|
||||
```
|
||||
|
||||
```bash
|
||||
systemctl daemon-reload
|
||||
systemctl restart docker
|
||||
```
|
||||
|
||||
# Configure docker client
|
||||
|
||||
As root, create a configuration file for the docker client:
|
||||
|
||||
```bash
|
||||
mkdir -p /root/.docker
|
||||
vi /root/.docker/config.json
|
||||
```
|
||||
|
||||
```json
|
||||
{
|
||||
"proxies": {
|
||||
"default": {
|
||||
"httpProxy": "http://proxy.example.com:8080",
|
||||
"httpsProxy": "https://proxy.example.com:8080",
|
||||
"noProxy": "localhost,example.com"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
## Configure your terminal and run the installation
|
||||
|
||||
See the [production guide](production_readme.md) for more information and options about the setup command.
|
||||
|
||||
```bash
|
||||
export http_proxy="http://proxy.example.com:8080" https_proxy="https://proxy.example.com:8080" no_proxy="localhost,example.com"
|
||||
\curl -sSL setup.fab.mn | bash
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user