Developer Guide
The WebLogic Kubernetes Toolkit UI is a desktop application designed to help WebLogic users move their applications to run in a Kubernetes environment.
Setting up your development environment
-
Download and install the latest LTS version of
node.jsfrom https://nodejs.org/en/download/ . -
If you rely on a proxy server to reach the Internet, set these five environment variables to configure the proxy correctly:
-
Open a command line and run the following command to update the version of
npmto the latest: -
Set up your global git configuration by running the following commands:
This last command is critical if you are developing on either Windows or macOS. Yes, the macOS file system is, by default, case-insensitive!
-
Clone the git repository on GitHub at https://github.com/oracle/weblogic-toolkit-ui .
-
Open a command line in the
weblogic-toolkit-uidirectory and runnpm installto download and install the JavaScript dependencies required by the project. -
Open a command line in the
weblogic-toolkit-ui/electrondirectory and runnpm run install-tools. -
Open a command line in the
weblogic-toolkit-ui/webuidirectory and runnpm start. -
After the server from the previous step is fully running, open a command line in the
weblogic-toolkit-ui/electrondirectory and runnpm start.
Authenticating tool downloads
Set the optional WKTUI_GITHUB_TOKEN environment variable to a GitHub personal access token before running
npm run install-tools or npm run build to authenticate WDT and WIT downloads. Without it, developer
installations use unauthenticated GitHub requests. The application’s Help > Update WKT Tools command
continues to use the GitHub API Key saved in Preferences.
For Jenkins, set github_token_creds in the Jenkinsfile to the ID of a Secret text credential accessible to the build job.
The pipeline binds it to WKTUI_GITHUB_TOKEN only during tool installation, including the installation before
packaging on Linux, macOS, and Windows. The token is not written to application preferences or packaged files.
Updating Oracle JET
Use the
Oracle JET migration guide
and the target release’s JavaScript MVVM navdrawer template as references. Create the reference application
from a temporary directory outside this checkout. Compare its package, configuration, library mapping,
bootstrap, and hook files, then incorporate the required changes into the existing WKTUI files. Preserve
the Electron locale initialization, custom library mappings, application styling, and release-build hook.
Keep oraclejafconfig.json aligned with the target JET release and run npm run jet-audit from webui/.
Compare audit findings with the previous release; existing findings do not establish an upgrade regression.
Run the unit tests and lint, build both development and release assets, and verify the running Electron UI.
Keep build and audit tools in webui/package.json’s devDependencies. The CLI supplies its matching
oraclejet-tooling dependency. Installer web assets are selected by webui/src/js/path_mapping.json;
release mappings exclude development source maps, type declarations, WebDriver adapters, and Preact
debugging tools. The release hook replaces the complete electron/app/web tree so obsolete libraries
cannot survive from an earlier build.
Building a Windows or macOS installer
- Set up your development environment and verify that the application is working properly from it.
- Open a command line in the
weblogic-toolkit-ui/electrondirectory and runnpm run build. - Find the executable and installer(s) in the
weblogic-toolkit-ui/distdirectory.
Building a Linux installer
- Set up your development environment and verify that the application is working properly from it.
- Open a command line in the
weblogic-toolkit-ui/webuidirectory and runnpm run build:release. - From the command line in the
weblogic-toolkit-ui/scriptsdirectory, run./devBuildLinuxInstallers.sh. - Find the executable and installer(s) in the
weblogic-toolkit-ui/distdirectory.