S
S
Sabrjkee2018-08-28 21:57:27
Python
Sabrjkee, 2018-08-28 21:57:27

Problem with running code from github on Jankins + docker?

Hello! I have a task to run 2 services/scripts in jenkins (xs what is it called), which are on github.
1. https://github.com/Sabrjkee/docker-qrcode-generator.git
2. https://github.com/Sabrjkee/lorem_web.git
I picked up AWS free on Amazon, installed Jankins on it., installed all the plugins and wrote Jankinsfiles (available in folders on github), also installed docker and updated java. I run the first script by default first (should go up to localhost port 8000) I try telnet to it, Connection refused in response to me, I tried to specify the SP in the config that Amazon selected, the same thing, I tried changing the port also does not help, turned off the firewall, that's all the ports in the amazon settings are forwarded, but it still does not work, although the docker checked that he raised it. So here's what I can do wrong or what I haven't done yet, maybe someone here can tell. And when I run the second code, I get an error in the pipeline console:

+ python3 app.py
Error handling request
Traceback (most recent call last):
File "/usr/local/lib64/python3.6/site-packages/aiohttp/web_protocol.py", line 390, in start
resp = await self._request_handler(request)
File "/usr/local/lib64/python3.6/site-packages/aiohttp/web_app.py", line 352, in _handle
resp = await handler(request)
File "app.py", line 17, in hello
url = '/'.join([BASE_URL, 'api', 'lorem', 'h1', f'{words -1}-{words +1}'])
TypeError: sequence item 0: expected str instance, NoneType found

5b859addee6d7538161379.png5b859af218ee7044184373.png5b859afb25f87853221787.png
all the code is on github, if you need additions, I will try to add.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2018-08-28
@Sabrjkee

In the docker-compose of the first turnip, try to remove - SERVER_HOST=127.0.0.1
the non-working code from the second url.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question