diff options
author | Areli Fuss <af732p@att.com> | 2017-10-24 10:58:20 +0300 |
---|---|---|
committer | Areli Fuss <af732p@att.com> | 2017-10-24 10:58:20 +0300 |
commit | cec9123e81b2c8fc0be59915757fbdb17c84f296 (patch) | |
tree | 45186306cf9c6b822c87d3abfd03ace25c134c85 | |
parent | 70b85dde11ead19c1bc45eee6f607cac596dbe5c (diff) |
Add user root for running commands
Add user root definition before run
command
Change-Id: I22548ac31a0028b0f7ff13597c25675eed96ccea
Issue-Id: SDC-525
Signed-off-by: Areli Fuss <af732p@att.com>
-rw-r--r-- | .gitignore | 207 | ||||
-rw-r--r-- | sdc-os-chef/sdc-backend/Dockerfile | 12 | ||||
-rw-r--r-- | sdc-os-chef/sdc-frontend/Dockerfile | 4 |
3 files changed, 103 insertions, 120 deletions
diff --git a/.gitignore b/.gitignore index 305018a168..a8e24a136c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,55 +1,74 @@ -# Eclipse -.classpath -.project -.settings/ +!catalog-fe/src/main/webapp/META-INF/ +!catalog-fe/src/main/webapp/WEB-INF/ +# Eclipse # Maven -log/ -target/ - # Package Files # -*.jar -*.war +## sdc-os-chef +*.class *.ear - -# Other +*.iml +*.jar *.kpf -*.class *.orig +*.war +.classpath +.delivery +.idea/* +.metadata/ +.metadata/* +.project +.settings/ +Vagrantfile +a4c/ +asdc-chef/cookbooks/Deploy-SDandC/attributes/version.rb +asdc-tests/ExtentReport/ASDC_CI_Extent_Report.html +asdc-tests/test-output/** +asdctool/tosca/* +bin/ +catalog-be/.pydevproject +catalog-be/.checkstyle +catalog-be/.pydevproject +catalog-be/bin/ +catalog-be/data/* +catalog-be/src/main/java/META-INF/MANIFEST.MF +catalog-be/test-output/* +catalog-builders/bin/ +catalog-dao/bin/ +catalog-fe/bin +catalog-fe/src/main/webapp/* +catalog-ui/*.tmp.txt catalog-ui/.* -catalog-ui/app/scripts/tsconfig.json -catalog-ui/app/scripts/references.ts -catalog-ui/app/scripts/**/*.js -catalog-ui/app/scripts/**/*.js.map - -# catalog-ui -catalog-ui/app/**/*.css catalog-ui/.editorconfig catalog-ui/.jshintrc catalog-ui/.yo-rc.json +catalog-ui/Chrome* +catalog-ui/PhantomJS_1.9.8_(Windows_7_0.0.0)/* +catalog-ui/app/**/*.css +catalog-ui/app/dist/* catalog-ui/app/robots.txt -catalog-ui/node_modules/ -catalog-ui/bower_components/ +catalog-ui/app/scripts/**/*.js +catalog-ui/app/scripts/**/*.js.map +catalog-ui/app/scripts/references.ts +catalog-ui/app/scripts/tsconfig.json catalog-ui/app/tsconfig.json - - -catalog-be/.checkstyle -catalog-be/bin/ -catalog-be/src/main/java/META-INF/MANIFEST.MF -a4c/ -catalog-ui/*.tmp.txt -catalog-dao/bin/ +catalog-ui/bower_components/ catalog-ui/dist -catalog-builders/bin/ +catalog-ui/node/* +catalog-ui/node_modules/ +catalog-ui/npm-debug.log +catalog-ui/tests/Coverage/* common-app-api/bin/ +common/openecomp-common-configuration-management/openecomp-configuration-management-cli/dependency-reduced-pom.xml +common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/logs/* data/compute.png data/loadbalancer.png data/mysql.png data/network.png +data/normative-types-DBMS.yml data/normative-types-blockStorage.yml data/normative-types-compute.yml data/normative-types-database.yml -data/normative-types-DBMS.yml data/normative-types-network.yml data/normative-types-objectStorage.yml data/normative-types-root.yml @@ -62,19 +81,6 @@ data/root.png data/router.png data/software.png data/volume.png -catalog-ui/app/dist/* -catalog-fe/src/main/webapp/* -catalog-fe/bin -!catalog-fe/src/main/webapp/WEB-INF/ -!catalog-fe/src/main/webapp/META-INF/ -ui-ci/.tern-project -catalog-be/data/* -.metadata/* -.metadata/* -.idea/* -*.iml -catalog-ui/npm-debug.log -sdnc-tests/logs/wordnik.log distribution-ci/logs/wordnik.log distribution-ci/logs/wordnik.log.1 distribution-ci/logs/wordnik.log.10 @@ -86,16 +92,45 @@ distribution-ci/logs/wordnik.log.6 distribution-ci/logs/wordnik.log.7 distribution-ci/logs/wordnik.log.8 distribution-ci/logs/wordnik.log.9 -vagrant-asdc-all-in-one/ -catalog-ui/tests/Coverage/* -catalog-ui/Chrome* -catalog-ui/PhantomJS_1.9.8_(Windows_7_0.0.0)/* - -.metadata/ -bin/ -Vagrantfile -sdnc-tests/test-output/* +dox-sequence-diagram-ui/node/* +log.home_IS_UNDEFINED/ASDC/ASDC-BE/Error.log +log.home_IS_UNDEFINED/ASDC/ASDC-BE/audit.log +log.home_IS_UNDEFINED/ASDC/ASDC-BE/debug.log +log.home_IS_UNDEFINED/ASDC/ASDC-BE/debug_by_package.log +log.home_IS_UNDEFINED/ASDC/ASDC-BE/transaction.log +log/ +node/* +openecomp-be/tools/swagger-ui/api-docs/api.html +openecomp-be/tools/swagger-ui/api-docs/api.json +openecomp-ui/node/* +sdc-os-chef/.idea/* +sdc-os-chef/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default/Artifact-Generator.properties +sdc-os-chef/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default/ecomp-error-configuration.yaml +sdc-os-chef/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default/error-configuration.yaml +sdc-os-chef/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default/logback.xml +sdc-os-chef/sdc-backend/chef-repo/cookbooks/sdc-normatives/files/default/normatives.tar.gz +sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/attributes/default.rb +sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/files/default +sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/files/default/SDC-*.zip +sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/files/default/sdctool.tar +sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/files/default/tools/* +sdc-os-chef/sdc-normatives/chef-repo/cookbooks/sdc-normatives/files/default/normatives.tar.gz +sdc-os-chef/sdc-sanity/chef-repo/cookbooks/sdc-sanity/files/default/testSuites/* sdnc-tests-new-frame-work/test-output/* +sdnc-tests-new-frame-work/test-output/** +sdnc-tests/logs/wordnik.log +sdnc-tests/test-output/* +target/ +test-apis-ci/ExtentReport/* +test-apis-ci/ExtentReport/ASDC_CI_Extent_Report.html +test-apis-ci/extent.html +test-apis-ci/logfile.log* +test-apis-ci/test-output/* +ui-ci/.tern-project +ui-ci/ExtentReport/* +ui-ci/logfile.log* +ui-ci/src/main/resources/Files/output/* +ui-ci/src/main/resources/Files/outputMainServiceTemplate/* ui-ci/test-output/* ui-ci/test-output/Default suite/Default test.html ui-ci/test-output/Default suite/Default test.xml @@ -103,72 +138,12 @@ ui-ci/test-output/Default suite/testng-failed.xml ui-ci/test-output/emailable-report.html ui-ci/test-output/index.html ui-ci/test-output/old/Default suite/classes.html -ui-ci/test-output/old/Default suite/methods.html ui-ci/test-output/old/Default suite/methods-alphabetical.html +ui-ci/test-output/old/Default suite/methods.html ui-ci/test-output/old/Default suite/testng.xml.html ui-ci/test-output/old/Default suite/toc.html ui-ci/test-output/old/index.html ui-ci/test-output/testng-failed.xml ui-ci/test-output/testng-results.xml -ui-ci/src/main/resources/Files/outputMainServiceTemplate/* -ui-ci/src/main/resources/Files/output/* - -sdnc-tests-new-frame-work/test-output/** -asdc-tests/test-output/** - -asdc-chef/cookbooks/Deploy-SDandC/attributes/version.rb -asdc-tests/ExtentReport/ASDC_CI_Extent_Report.html -*.orig -test-apis-ci/ExtentReport/* -test-apis-ci/test-output/* -test-apis-ci/test-output/* -test-apis-ci/ExtentReport/* -ui-ci/ExtentReport/* -test-apis-ci/test-output/* -test-apis-ci/ExtentReport/ASDC_CI_Extent_Report.html -test-apis-ci/extent.html -sdc-os-chef/sdc-backend/chef-repo/cookbooks/sdc-normatives/files/default/normatives.tar.gz -sdc-os-chef/sdc-normatives/chef-repo/cookbooks/sdc-normatives/files/default/normatives.tar.gz -catalog-be/test-output/* -test-apis-ci/logfile.log* -ui-ci/logfile.log* -catalog-ui/node/* -log.home_IS_UNDEFINED/ASDC/ASDC-BE/audit.log -log.home_IS_UNDEFINED/ASDC/ASDC-BE/debug.log -log.home_IS_UNDEFINED/ASDC/ASDC-BE/debug_by_package.log -log.home_IS_UNDEFINED/ASDC/ASDC-BE/Error.log -log.home_IS_UNDEFINED/ASDC/ASDC-BE/transaction.log -openecomp-be/tools/swagger-ui/api-docs/api.html -openecomp-be/tools/swagger-ui/api-docs/api.json -dox-sequence-diagram-ui/node/* -openecomp-ui/node/* -sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/files/default/SDC-*.zip -sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/files/default/sdctool.tar -sdc-os-chef/.idea/* -node/* - -# chef -.delivery - -common/openecomp-sdc-artifact-generator-lib/openecomp-sdc-artifact-generator-core/logs/* - -/asdctool/tosca/* - -/sdc-os-chef/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default/Artifact-Generator.properties -/sdc-os-chef/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default/ecomp-error-configuration.yaml -/sdc-os-chef/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default/error-configuration.yaml -/sdc-os-chef/sdc-backend/chef-repo/cookbooks/sdc-catalog-be/files/default/logback.xml - -/utils/webseal-simulator/sdc-simulator/chef-repo/cookbooks/sdc-simulator/files/default/logback.xml -sdc-os-chef/sdc-sanity/chef-repo/cookbooks/sdc-sanity/files/default/testSuites/* - -/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/attributes/default.rb - - -/common/openecomp-common-configuration-management/openecomp-configuration-management-cli/dependency-reduced-pom.xml - -/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/files/default/tools/* - -/sdc-os-chef/sdc-cassandra/chef-repo/cookbooks/cassandra-actions/attributes/default.rb - -/catalog-be/.pydevproject +utils/webseal-simulator/sdc-simulator/chef-repo/cookbooks/sdc-simulator/files/default/logback.xml +vagrant-asdc-all-in-one/ diff --git a/sdc-os-chef/sdc-backend/Dockerfile b/sdc-os-chef/sdc-backend/Dockerfile index dd38726be3..7c6d8bf723 100644 --- a/sdc-os-chef/sdc-backend/Dockerfile +++ b/sdc-os-chef/sdc-backend/Dockerfile @@ -4,16 +4,20 @@ COPY chef-solo /root/chef-solo/ COPY chef-repo/cookbooks/. /root/chef-solo/cookbooks/ -ADD onboarding-be-*.war ${JETTY_BASE}/webapps/ +ADD onboarding-be-*.war ${JETTY_BASE}/webapps/ -ADD catalog-be-*.war ${JETTY_BASE}/webapps/ +ADD catalog-be-*.war ${JETTY_BASE}/webapps/ -ADD api-docs.war ${JETTY_BASE}/webapps/ +ADD api-docs.war ${JETTY_BASE}/webapps/ -RUN chown -R jetty:jetty ${JETTY_BASE}/webapps +USER root + +RUN chown -R jetty:jetty ${JETTY_BASE}/webapps COPY startup.sh /root/ RUN chmod 770 /root/startup.sh +USER jetty + ENTRYPOINT [ "/root/startup.sh" ] diff --git a/sdc-os-chef/sdc-frontend/Dockerfile b/sdc-os-chef/sdc-frontend/Dockerfile index 7f9207d545..91980cc423 100644 --- a/sdc-os-chef/sdc-frontend/Dockerfile +++ b/sdc-os-chef/sdc-frontend/Dockerfile @@ -10,10 +10,14 @@ ADD onboarding*.war ${JETTY_BASE}/webapps/ ADD catalog-fe-*.war ${JETTY_BASE}/webapps/ +USER root + RUN chown -R jetty:jetty ${JETTY_BASE}/webapps COPY startup.sh /root/ RUN chmod 770 /root/startup.sh +USER jetty + ENTRYPOINT [ "/root/startup.sh" ] |