Brendan Boyd
12/17/2021, 1:41 PMSelcuk Dogru
12/17/2021, 3:24 PMmichoel
12/18/2021, 10:28 PMBrendan Boyd
12/18/2021, 10:32 PMmichoel
12/18/2021, 10:35 PMmichoel
12/18/2021, 10:40 PM# Set up SuiteCloud authentication IDs for NetSuite environments
# The TBA need to be created in NetSuite, and set as enviroment variables in GitPod dashboard (<https://gitpod.io/variables|https://gitpod.io/variables>)
# You can have multiple enviroments named as per below
# NETSUITE_ACCOUNT_ID_#, NETSUITE_AUTH_ID_#, NETSUITE_TOKEN_ID_#, NETSUITE_TOKEN_ID_#
import os
for i in [x.split('_')[-1] for x in os.environ if x.startswith("NETSUITE_ACCOUNT_ID_")]:
command = f"suitecloud account:savetoken --account $NETSUITE_ACCOUNT_ID_{i} --authid $NETSUITE_AUTH_ID_{i} --tokenid $NETSUITE_TOKEN_ID_{i} --tokensecret $NETSUITE_TOKEN_SECRET_{i}"
os.system(command)
Brendan Boyd
12/18/2021, 10:42 PMmichoel
12/18/2021, 10:45 PMBrendan Boyd
12/18/2021, 10:45 PMBrendan Boyd
12/18/2021, 10:45 PMmichoel
12/18/2021, 10:46 PMimage:
file: .gitpod.Dockerfile
vscode:
extensions:
- <https://github.com/michoelchaikin/suitecloud-vsix/releases/latest/download/oracle.suitecloud-vscode-extension.vsix>
- <https://github.com/michoelchaikin/suitecloud-vsix/releases/latest/download/egomobile.vscode-powertools-0.66.0.vsix>
- sonarsource.sonarlint-vscode
- dbaeumer.vscode-eslint
- esbenp.prettier-vscode
- eamodio.gitlens
- xyz.local-history
- ionutvmi.path-autocomplete
- streetsidesoftware.code-spell-checker
tasks:
- name: Install NPM dependencies
command: npm install
- name: Set Up NetSuite Accounts
command: python ./scripts/init_accounts.py
michoel
12/18/2021, 10:46 PMFROM gitpod/workspace-full
RUN npm install -g @oracle/suitecloud-cli
# SuiteCloud Extension for VS Code requires Java 11
RUN bash -c ". /home/gitpod/.sdkman/bin/sdkman-init.sh && sdk install java 11.0.11.j9-adpt"
Brendan Boyd
12/18/2021, 10:47 PMBrendan Boyd
12/18/2021, 10:48 PMSim Greenbaum
12/20/2021, 7:22 AMdarrenhillconsulting
12/20/2021, 5:35 PMSim Greenbaum
12/20/2021, 5:46 PMLJ
12/20/2021, 9:44 PM