Differences between revisions 1 and 2
Revision 1 as of 2019-05-05 18:19:24
Size: 524
Editor: Praveen A
Comment:
Revision 2 as of 2019-05-05 18:21:27
Size: 633
Editor: Praveen A
Comment:
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,

  1. Enable contrib section in /etc/apt/sources.list. apt update && apt install gitlab

  2. During installation, choose gitlab.lxc as the hostname

  3. Disable https in debconf wizard
  4. 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

  5. Visit http://gitlab.lxc on host browser