diff options
author | 2020-09-18 11:19:28 +0530 | |
---|---|---|
committer | 2020-09-18 11:19:28 +0530 | |
commit | 5f9e18ca0a4994236f53f2ceaf1fb357ee4afea3 (patch) | |
tree | e5504ed299a5deadf90d79c79316161e823e900f /huawei/vnfmadapter/VnfmadapterService/docker/docker-env-config.sh | |
parent | d16511bf572d1e319e10243d4258dd5904f2e340 (diff) |
Two main process in vfc huawei vnfm pod
Issue-ID: VFC-1692
Signed-off-by: sekharhuawei <reddi.shekhar@huawei.com>
Change-Id: I366431f40b203246d9b4b436c8f3ca2bf8bc9532
Diffstat (limited to 'huawei/vnfmadapter/VnfmadapterService/docker/docker-env-config.sh')
-rw-r--r-- | huawei/vnfmadapter/VnfmadapterService/docker/docker-env-config.sh | 31 |
1 files changed, 1 insertions, 30 deletions
diff --git a/huawei/vnfmadapter/VnfmadapterService/docker/docker-env-config.sh b/huawei/vnfmadapter/VnfmadapterService/docker/docker-env-config.sh index 7c4d235a..3ae4f986 100644 --- a/huawei/vnfmadapter/VnfmadapterService/docker/docker-env-config.sh +++ b/huawei/vnfmadapter/VnfmadapterService/docker/docker-env-config.sh @@ -2,33 +2,7 @@ add_user(){ useradd onap -} - -set_up_mysql_jdk(){ - - sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf - sed -i 's|#baseurl=http://mirror.centos.org/centos|baseurl=http://mirrors.ocf.berkeley.edu/centos|' /etc/yum.repos.d/*.repo - yum -y update - - yum -y install wget unzip socat java-11-openjdk-headless - sed -i 's|#networkaddress.cache.ttl=-1|networkaddress.cache.ttl=10|' /usr/lib/jvm/jre/lib/security/java.security - - # Set up mysql - wget -q http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm && \ - rpm -ivh mysql-community-release-el7-5.noarch.rpm && \ - rm -f mysql-community-release-el7-5.noarch.rpm - yum -y update - yum -y install mysql-server - mysql_install_db --user=onap --datadir=/var/lib/mysql - chown onap:onap -R /var/run/mysqld - chmod g+s /var/run/mysqld - setfacl -d --set u:onap:rwx /var/run/mysqld - chown onap:onap /var/log/mysqld.log - chmod g+s /var/log/mysqld.log - chown onap:onap -R /var/lib/mysql-files - chmod g+s /var/lib/mysql-files - setfacl -d --set u:onap:rwx /var/lib/mysql-files - chown onap:onap /etc/my.cnf + chown onap:onap -R /service } set_up_tomcat(){ @@ -61,9 +35,6 @@ clean_sf_cache(){ yum clean all } -add_user -set_up_mysql_jdk -wait set_up_tomcat wait clean_sf_cache |