V
V
Vadim2020-06-21 22:45:51
Amazon Web Services
Vadim, 2020-06-21 22:45:51

What is the best way to run a node.js script in Teamcity?

Hello everyone,

I don't know how correct this is in terms of architecture. There is a node.js script that uses the aws sdk for JavaScript in Node.js. The script should send messages to the sns topic and then check if they are written to the DynamoDB table... among other things.

I want to score all this in the TeamCity Build configuration, I just don’t understand if it’s possible to pull the script and dependencies into the image of docker container and run everything through docker? The fact is that if there is an error in the script, then it will return a non-zero number ... the question is how to do it so that it can be seen as a failed build in Teamcity? And in general, does Teamcity see docker container logs or something like that?

Good week everyone,
Vadim

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Shumov, 2020-06-21
@inoise

Why not stupidly take AWS Lambda? and for docker there is AWS ECS. Well, no one bothers to use npm in docker and install software)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question