⇤ ← Revision 1 as of 2019-05-05 18:19:24
524
Comment:
|
633
|
Deletions are marked like this. | Additions are marked like this. |
Line 11: | Line 11: |
1. Enable `contrib` section in `/etc/apt/sources.list` 1. Choose gitlab.lxc as the hostname 1. Disable https 1. Add ip address of container (`ip a` will list the ip address) in host machine's `/etc/hosts` to resolve gitlab.lxc. `192.168.122.104 gitlab.lxc # Change ip address` |
1. Enable `contrib` section in `/etc/apt/sources.list`. `apt update && apt install gitlab` 1. During installation, choose `gitlab.lxc` as the hostname 1. Disable https in debconf wizard 1. After installation is complete, add ip address of container (`ip a` will list the ip address) in host machine's `/etc/hosts` to resolve gitlab.lxc. `192.168.122.104 gitlab.lxc # Change ip address` |
# lxc-create -n gitlab -t debian -- -r unstable # lxc-start -n gitlab # lxc-attach -n gitlab
See LXC for more details on managing a container.
Now inside the container,
Enable contrib section in /etc/apt/sources.list. apt update && apt install gitlab
During installation, choose gitlab.lxc as the hostname
- Disable https in debconf wizard
After installation is complete, add ip address of container (ip a will list the ip address) in host machine's /etc/hosts to resolve gitlab.lxc. 192.168.122.104 gitlab.lxc # Change ip address
Visit http://gitlab.lxc on host browser