anyone had any luck getting the node cli working w...
# sdf
c
anyone had any luck getting the node cli working with bitbucket pipelines
b
Are you running the node cli from a container image? Have you tried using this container? https://github.com/oracle/netsuite-suitecloud-sdk/blob/4f9d58c42703723fa339feaecf3fdad32f97c7da/Dockerfile
It's not officially generally available yet, but I plan on testing our gitlab CI/CD with it soon...
c
bitbucket has their own node backend that you setup a .yml file to specify what it does
you dont have access to the backend only the .yml files unless I am just doing it wrong
b
Ya, that may be part of the problem because of the suitecloud cli dependence on java 11 and the sdfcli jar. You can set your own public or private image to execute tasks in: https://confluence.atlassian.com/bitbucket/configure-bitbucket-pipelines-yml-792298910.html & https://confluence.atlassian.com/bitbucket/use-docker-images-as-build-environments-792298897.html
You just need to build and push the dockerfile linked above into your own registry to pull from in your pipeline
I would expect that to work whether it's bitbucket or a gitlab pipeline
cc: @darrenhillconsulting
c
ill check it out ive never used docker yet... thanks for the info for sure
👍 1
b
If it's any help, this is how I'm doing it in gitlab: https://gitlab.com/tolaeon/sdf-docker/-/blob/master/.gitlab-ci.yml
c
yeah there's no registry for pipelines so its a little different
should be able to store the file in the root of the repo and run it though just gonna try to get it working first
def worked in bitbucket pipelines.. everything installed so just need to setup some minor sdf project
b
If you don't have a registry, you can setup a free account on docker hub to push images to
c
is there a reason to do that vs keeping it local to the repo?
I am not familiar w/ using docker at all i just know what it is as an image
for me, i'd expect to just see the .yml file in the root (and maybe the docker image) and pipelines will just do its thing according to the scripting
b
The benefit would be in the pipeline processing usage. If it's in the root of your project, I think you'll have to build the image every build run. Whereas pulling the image, it's already built, and it may even be able to be cached.
c
gotcha so potentially reducing your build times/usage if its priced like that
b
ya