diff --git a/CentOS/Dockerfile b/CentOS/Dockerfile index 539936e..04f5818 100644 --- a/CentOS/Dockerfile +++ b/CentOS/Dockerfile @@ -47,6 +47,19 @@ systemctl enable ntpd.service; \ systemctl enable glusterd.service; \ systemctl enable gluster-setup.service; -EXPOSE 2222 111 245 443 24007 2049 8080 6010 6011 6012 38465 38466 38468 38469 49152 49153 49154 49156 49157 49158 49159 49160 49161 49162 +COPY tendrl/tendrl-release-epel-7.repo \ +tendrl/tendrl-dependencies-epel-7.repo \ +/etc/yum.repos.d/ + +RUN yum --setopt=tsflags=nodocs -y install epel-release; \ +yum --setopt=tsflags=nodocs -y install tendrl-node-agent tendrl-collectd-selinux tendrl-selinux; \ +yum --setopt=tsflags=nodocs -y install tendrl-gluster-integration.noarch; \ +yum clean all; \ +sed -i.bak '/^etcd_connection/s/:.*/:\ tendrlserver/' /etc/tendrl/node-agent/node-agent.conf.yaml; \ +sed -i.bak '/^graphite_host/s/:.*/:\ tendrlserver/' /etc/tendrl/node-agent/node-agent.conf.yaml; \ +sed -i.bak '/^SELINUX\b/s/=.*/=permissive/' /etc/selinux/config; \ +systemctl enable tendrl-node-agent + +EXPOSE 2222 111 245 443 24007 2049 8080 6010 6011 6012 38465 38466 38468 38469 49152 49153 49154 49156 49157 49158 49159 49160 49161 49162 2379 2003 CMD ["/usr/sbin/init"] diff --git a/CentOS/tendrl/tendrl-dependencies-epel-7.repo b/CentOS/tendrl/tendrl-dependencies-epel-7.repo new file mode 100644 index 0000000..689ca41 --- /dev/null +++ b/CentOS/tendrl/tendrl-dependencies-epel-7.repo @@ -0,0 +1,10 @@ +[tendrl-dependencies] +name=Copr repo for dependencies owned by tendrl +baseurl=https://copr-be.cloud.fedoraproject.org/results/tendrl/dependencies/epel-7-$basearch/ +type=rpm-md +skip_if_unavailable=True +gpgcheck=1 +gpgkey=https://copr-be.cloud.fedoraproject.org/results/tendrl/dependencies/pubkey.gpg +repo_gpgcheck=0 +enabled=1 +enabled_metadata=1 \ No newline at end of file diff --git a/CentOS/tendrl/tendrl-release-epel-7.repo b/CentOS/tendrl/tendrl-release-epel-7.repo new file mode 100644 index 0000000..10f7770 --- /dev/null +++ b/CentOS/tendrl/tendrl-release-epel-7.repo @@ -0,0 +1,10 @@ +[tendrl-release] +name=Copr repo for release owned by tendrl +baseurl=https://copr-be.cloud.fedoraproject.org/results/tendrl/release/epel-7-$basearch/ +type=rpm-md +skip_if_unavailable=True +gpgcheck=1 +gpgkey=https://copr-be.cloud.fedoraproject.org/results/tendrl/release/pubkey.gpg +repo_gpgcheck=0 +enabled=1 +enabled_metadata=1 \ No newline at end of file