diff options
author | yangyan <yangyanyj@chinamobile.com> | 2020-03-12 17:00:46 +0800 |
---|---|---|
committer | yangyan <yangyanyj@chinamobile.com> | 2020-03-12 17:00:58 +0800 |
commit | 39a7c635ea2c92117d9a610f1d51ac21e0ed9588 (patch) | |
tree | f07b619f36cfb970b45dc8fe0d0932c160a2ca26 | |
parent | 950040018555c4eab18aff16bf1af3432c325121 (diff) |
Optimize docker file of VFC-vnfres
Change-Id: I17ef51706fa21cc5f9d722859deb35ed66bda6d6
Issue-ID: VFC-1647
Signed-off-by: yangyan <yangyanyj@chinamobile.com>
-rwxr-xr-x | res/docker/docker-env-conf.sh | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/res/docker/docker-env-conf.sh b/res/docker/docker-env-conf.sh index 5b5d961..2091b8e 100755 --- a/res/docker/docker-env-conf.sh +++ b/res/docker/docker-env-conf.sh @@ -17,22 +17,18 @@ install_sf(){ add_user(){ - apk --no-cache add sudo addgroup -g 1000 -S onap adduser onap -D -G onap -u 1000 - chmod u+w /etc/sudoers - sed -i '/User privilege/a\\onap ALL=(ALL:ALL) NOPASSWD:ALL' /etc/sudoers - chmod u-x /etc/sudoers - sudo chown onap:onap -R /service + chown onap:onap -R /service } config_logdir(){ if [ ! -d "/var/log/onap" ]; then - sudo mkdir /var/log/onap + mkdir /var/log/onap fi - sudo chown onap:onap -R /var/log/onap + chown onap:onap -R /var/log/onap chmod g+s /var/log/onap } |