Running your application locally in a container (Linux)
Use a container for testing locally on a Linux 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
If you didn't install the Docker Toolbox, install it now on your development machine, see Docker Windows Install on Windows process, and reinstall the SDK. See Installing the SDK.
Verify that Docker is running.
Procedure
-
After you create and run your application locally (Running your application locally), run the application locally using a Docker CentOS container by entering the command
grd_sdk run -d -w <path to app>, for example
grd_sdk run -d -w ./testapp.If your get permission errors, try
sudo grd_sdk run -d -w <path to app> -
Open your browser and test
https://127.0.0.1:5000/
. - To stop your application, press Ctrl+C.