Line 296: |
Line 296: |
| ==Koozai SME v10== | | ==Koozai SME v10== |
| | | |
− | See above for contrib that is being developed. The following are old notes. | + | We have a contrib to aid setup in testing. |
| + | |
| + | ===Repo setup=== |
| + | |
| + | db yum_repositories set docker-ce-stable repository \ |
| + | BaseURL 'https://download.docker.com/linux/centos/7/$basearch/stable' \ |
| + | EnableGroups no \ |
| + | GPGCheck yes \ |
| + | GPGKey https://download.docker.com/linux/centos/gpg \ |
| + | Name 'Docker Stable' \ |
| + | Visible yes \ |
| + | status enabled |
| + | |
| + | signal-event yum-modify |
| + | |
| + | ===Installation via contrib=== |
| + | |
| + | yum --enablerepo=extras,smetest install smeserver-docker |
| + | signal-event post-upgrade;signal-event reboot |
| + | |
| + | Uses config entries |
| + | |
| + | docker iptables false/true - default false |
| + | |
| + | docker DNS [192,168.10.1,8.8.8.8] - defaults to LocalIP |
| + | |
| + | docker DockerNetwork [IP range eg 192.168.100.0/24] - defaults to dockers own choice. Range is not yet checked for validity. |
| + | |
| + | There is an action smeserver-docker-update but this needs a reboot after initial install. |
| + | |
| + | Probably needs quotes around "false" for iptables |
| + | |
| + | See if it works: |
| + | |
| + | systemctl status docker |
| + | |
| + | And test: |
| + | |
| + | docker run hello-world |
| + | |
| + | We can also use docker-compose: |
| + | |
| + | curl -L https://github.com/docker/compose/releases/download/1.29.2/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose |
| + | chmod +x /usr/local/bin/docker-compose |
| + | chgrp docker /usr/local/bin/docker-compose |
| + | |
| + | A test compose file is installed. |
| + | |
| + | docker-compose up -d hello_world |
| + | |
| + | Add your own templates to: |
| + | |
| + | /etc/e-smith/templates/home/e-smith/files/docker/configs/docker-compose.yml |
| + | |
| + | or: |
| + | |
| + | /etc/e-smith/templates-custom/home/e-smith/files/docker/configs/docker-compose.yml |
| + | |
| + | signal-event smeserver-docker-compose-update |
| + | cd /home/e-smith/files/docker/configs |
| + | docker-compose up -d my_hello |
| + | |
| + | |
| + | ==Old notes== |
| + | |
| + | |
| + | The following are old notes. |
| | | |
| https://docs.docker.com/engine/install/centos/ | | https://docs.docker.com/engine/install/centos/ |
Line 322: |
Line 388: |
| | | |
| yum --enablerepo=extras,smetest install smeserver-docker | | yum --enablerepo=extras,smetest install smeserver-docker |
| + | |
| | | |
| So we get a service in /etc/systemd/system-preset/49-koozali.preset | | So we get a service in /etc/systemd/system-preset/49-koozali.preset |