Running your application locally in a container (Windows)
Use a container for testing locally on a Windows server, to run the application in an environment that is similar to the production environment. The SDK creates a base image, which is identical to the base image that will run on the Guardium production environment.
Before you begin
Verify that Docker is running.
- After you create and run your application locally (Running your application locally), open the Docker Quickstart terminal.
Run the application locally using a Docker CentOS container by entering the command
grd_sdk.bat run -d -w <path to app> in the Docker Quickstart Terminal.
Write the workspace path in Linux bash style (../My Documents/app) or in
Windows style, but surrounded with quotes ("C:\My Documents\app").
The system prompts you for authentication details.
Enter your Guardium appliance IP, using the CLI password and credentials of the admin GUI user.
The terminal responds with Running on http://0.0.0.0:5000/ (Press CTRL+C to quit)
- Open the application URL in the browser to see the sample application output: ”Hello World!”. Use the container instance internal IP address in the URL that appears in the top row of the container Quick Start Terminal (when the terminal is started). The internal IP in the example below is 192.168.99.100. The application URL is http://192.168.99.100:5000
- To stop your application, press Ctrl+C Ctrl+C (twice).