what's docker
# general
j
what's docker
a
Docker is a Containerization Application. Very useful for CI/CD but completely irrelevant to Netsuite.
e
Irrelevant is probably strong; I've helped set up docker containers that run automated unit testing and leverage SDF for deployment to NS accounts. Extremely rare that you would need it for NS dev? Yes, definitely that.
👍 1
a
@erictgrubaugh I haven’t even considered using docker for automated testing/deploying to NS accounts. That’s brilliant! Do you have an example you could share?
e
Sadly I can't share that setup, NDAs and such, and I don't have examples on hand, but happy to talk about the setup.
specifically we used mocha for testing in a BDD style. In order to avoid a ridiculous amount of Mocking, we had to be pretty diligent about separating NetSuite APIs and business logic into their own modules.
sort of an Imperative Shell-Functional Core approach mostly
a
Very interesting. Do you recommend using this for all script types or do you have a recommended scenario in which this is a good way to approach testing? Overall not too sure how relevant for my specific use cases, but I’ll keep this in mind for future development.
n
We're right now looking at setting up Docker to automate deployment in an easy way, would say it's usable but can of course be unnecessarily complex if you don't really need to do CI/CD. I guess there are also other ways to do CI/CD so this is just one way 🙂
e
@Alex Hirota I would really only recommend it when you have really critical business logic - e.g. complex financial calculations - that you really want to put through the ringer and make sure it's correct. It seems like overkill for what many customization teams do.
👍 2
c
Hopefully not intruding but there is the Assertology product if testing is needed...