Docker is a tool designed to make it easier to create, deploy, and run applications by using containers. Containers allow a developer to package up an application with all of the parts it needs, such as libraries and other dependencies, and deploy it as one package.
The order-import-poc application requires several environment variables to be set up and these can be passed into the application using a .env
file. An example can be found in the repository root as .env.example
.
- Copy
.env.example
to.env
- Edit the
.env
file to use appropriate values for:baseOkapEndpoint
baseFolioUrl
okapi_username
okapi_password
tenant
- Edit other properties as needed
The docker-compose command is used to build the application image and deploy it to a container locally. The command reads the docker-compose.yaml
file and Dockerfile
to build the image, read the environment variables in the .env
file, and launch the application. It can all be done with the following command:
docker-compose up --build
This Dockerfile is configured to run the application on the localhost on port 8080. Enter the following URL into a browser:
http://localhost:8080/order-import-poc/import