Closed Gribbs closed 4 months ago
Try adding...
RUN yum install dbus-daemon -y
Try adding...
RUN yum install dbus-daemon -y
Thanks @karl-anthony-ng that has worked!
This is my (now working) Docker file:
FROM public.ecr.aws/amazonlinux/amazonlinux:2023
USER root
# Install wget, tar, and gzip
RUN dnf update -y && \
dnf install -y wget tar gzip xz dbus-daemon which findutils && \
dnf clean all
# Download and extract Amazon Corretto 17
RUN yum install -y java-17-amazon-corretto-headless && \
yum install -y java-17-amazon-corretto-devel && \
yum install -y java-17-amazon-corretto-jmods && \
export JAVA_HOME=/usr/lib/jvm/java-17-amazon-corretto && \
export PATH=$JAVA_HOME/bin:$PATH
RUN dbus-uuidgen --ensure
# Install Node.js, dbus and netsuite CLI
RUN curl -fsSL https://nodejs.org/dist/v18.14.2/node-v18.14.2-linux-x64.tar.xz | tar -xJv -C /usr/local --strip-components=1 && \
npm install -g --acceptSuiteCloudSDKLicense @oracle/suitecloud-cli
WORKDIR /app
Select the SuiteCloud tool where you encountered the issue
SuiteCloud CLI
Version of the SuiteCloud Tool
SuiteCloud CLI for Node.js 1.9.0
Operating system
Locally - macOS 14.4.1 (23E224), Docker: Amazon Linux 2023
Node Version / VSCode Version
v18.14.2
JAVA Version
openjdk version "17.0.11" 2024-04-16 LTS
Bug description
Trying to run suitecloud
account:savetoken
on a Bitbucket pipeline step which is running a docker image based on amazonlinux:2023 but getting the error:"Something went wrong when trying to save credentials. Contact support."
I am running this command:
suitecloud account:savetoken --account ${NS_ACCOUNT_ID_SANDBOX} --authid BitbucketPipelines-sandbox --tokenid ${NS_TOKEN_ID_SANDBOX} --tokensecret ${NS_TOKEN_SECRET_SANDBOX}
The command works fine locally on mac using the exact same credentials and suitecloud-cli version.
Essentially I'm trying to perform CICD deployment on a bitbucket pipeline, following the methods recommended in these blog posts:
Steps To Reproduce
bitbucket-pipelines.yml
file with the following contents:image:/netsuite-docker:latest
pipelines: branches: main:
USER root
Install wget, tar, and gzip
RUN dnf update -y && \ dnf install -y wget tar gzip xz dbus which findutils && \ dnf clean all
Download and extract Amazon Corretto 17
RUN yum install -y java-17-amazon-corretto-headless && \ yum install -y java-17-amazon-corretto-devel && \ yum install -y java-17-amazon-corretto-jmods && \ export JAVA_HOME=/usr/lib/jvm/java-17-amazon-corretto && \ export PATH=$JAVA_HOME/bin:$PATH
Install Node.js and netsuite CLI
RUN curl -fsSL https://nodejs.org/dist/v18.14.2/node-v18.14.2-linux-x64.tar.xz | tar -xJv -C /usr/local --strip-components=1 && \ npm install -g --acceptSuiteCloudSDKLicense @oracle/suitecloud-cli
WORKDIR /app