summaryrefslogtreecommitdiffstats
path: root/testapi/docker/Dockerfile
AgeCommit message (Collapse)AuthorFilesLines
2021-03-30Chmod 777 config dirsHEADmasterCédric Ollivier1-1/+3
Else crudini fails when creating the tmp file in target dir. Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: I5d44a78758107b888f1e291c01a4c66898121cdd
2021-03-30Allow any user to run testapiCédric Ollivier1-1/+1
It enforces 777 in configs and logs. Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: I31ecbc7ef90f7a97819bcd1a459d0f8b93fc7750
2021-03-30Swith to USER ubuntuCédric Ollivier1-6/+3
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: I6f53f56935ebcfd3074be2ae0fda1c19f6cd75c5
2021-03-30[TESTAPI] Add chown to allow start in openshiftmorganrol1-0/+4
Some files of the testapi are located in system directories - /etc/opnfv_testapi - /usr/local/share/opnfv_testapi it requires some root priviledge to execute them properly especially in an openshift environment this patch force the user right for these directories another option could be to move these files in home directory but so fare we are just changing the dockerization and did not modify the code of the API. Signed-off-by: morganrol <morgan.richomme@orange.com> Change-Id: I7f9607f31e97d3bf8462ebe07fad0714aac47bdd
2021-03-29Properly manage contraints and requirementsCédric Ollivier1-2/+3
It leverages OpenStack's python librairy management. Ussuri is selected as OpenStack dropped py27 in the newer releases. Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: Iccfda223eb5c7013ec712beab9cd6f0c784f3fae
2021-03-29Refactor testapi's DockerfileCédric Ollivier1-32/+13
It cleans cache and useless packages at runtime. Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: Ifce2c49fe34e400368c111d7f4d9cd06dc6ac67e
2021-03-29Install python-wheel in testapi's DockerfileCédric Ollivier1-0/+1
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: Id58bf371c26292009f938bc67f9e244ef3a89825
2021-03-28[TESTAPI] Upgrade the docker without changing the python2.7 codemorganrol1-3/+11
migratio to python 3 is not a long flmeuve tranquille some libraries used are no more maintained this option considers updating the dockerfile without changing the original code it includes - a change of the baseline image (move from 14.04 to 18.04) - a better fix of python lib versions - the introduction of an ubuntu user (to be better used) Issue-ID: FUNCTEST-1026 Signed-off-by: morganrol <morgan.richomme@orange.com> Change-Id: I37c8262d1ec20151e2402e298751ca39c36d1a7e
2018-10-18Update Testapi DockerfileTrevor Bramwell1-0/+2
The Dockerfile for testapi was missing zlib and xslt dependencies needed by some python package compiling a module. Change-Id: Ieb6b9ae683ff9d3e6a19d5b93e9cb448789d302d Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
2018-06-17bugfix ssl issues induces by access to lfSerenaFeng1-0/+5
Change-Id: Iab166dc14982f7bfe0d26b60eb8ee537deedd613 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2018-04-27Temporary bugfix for testapi-automate jobSakala Venkata Krishna Rohit1-1/+1
New upgrade of pip 10 is causing the problem. Links - 1. https://github.com/docker/compose/issues/5883 2. https://bugs.launchpad.net/devstack/+bug/1763966 3. https://github.com/pypa/pip/issues/4805 Change-Id: I8d49dda2ae55569833075fff792d9ded0030f56b
2018-01-09update requests and delete useless sed opSerenaFeng1-6/+1
Change-Id: I0c865f097c08468adc66a519e065935a3b15f276 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2018-01-04bugfix sslerror why loginSerenaFeng1-0/+6
SSLError: hostname 'identity.linuxfoundation.org' doesn't match 'c.sni.fastly.net' Change-Id: I46028f35a6d871b445219335c093037d305a9e7b Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-11-21bugfix: docker build failed after leveraging new repoSerenaFeng1-2/+2
Change-Id: Idd2e5d1957bbd476e97be1d96dd8511d120ad5af Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-08-25leverage setup.py directly to install TestAPISerenaFeng1-1/+1
1. delete additional script install.sh 2. using 'python setup.py install' directly to install TestAPI, as traditional python project do Change-Id: Ifcdee7b2bae2553f523a722bff794c40d20f81cc Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-07-05bugfix: hardcoded testapi urlsSerenaFeng1-1/+1
testapi webportal's urls are fixed in configure files this patch aims to modify them according to base_url provided when bringing up container Change-Id: I29c461fc3b837e54d4ff5330dcaa520637590ff7 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-02-24fix internal port of TestAPISerenaFeng1-4/+3
There are too many parameters when starting TestAPI container, it will confuse the user. I learned that docker containers like Jenkins and mongo the internal port is fixed, the user only need to change the exposed port, so the same strategy is adopted here Change-Id: I59424f5a1f36945d906975a741b631019fcbd46d Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2017-01-17bugfix: fail to access testapi swaggerSerenaFeng1-1/+1
bugfix [Errno 2] No such file or directory: '/usr/local/lib/python2.7/dist-packages/opnfv_testapi/tornado_swagger/static/index.html' Change-Id: Id1cad9a34a3a0331a2f8a0c27c2fa54ca40c7bd6 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-10-18rename result_collection_api to testapiSerenaFeng1-0/+52
Change-Id: Iec4e3db23cd44f30831e17c127eda74e9d9b5d14 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>