Site icon Embarcadero RAD Studio, Delphi, & C++Builder Blogs

How To Deploy RAD Server With An InterBase DB To Docker

docker deployment overview deploy with rad server engine interbase database and paserver

Docker enables you to simplify the deployment process effectively. It allows you to quickly deploy and scale applications into any environment. It is widely being used by development teams around the world. In this blog post, you will get an overview of docker deployment using RAD Server Engine, InterBase database, and PAServer. Let’s dive in.

What is Docker?

Docker is a tool that enables you to easily pack, ship, and run any application as a lightweight container. It makes your app portable. You can modify and update the program easily. Also, you can run the application virtually anywhere.

Why should you use Docker?

How do I deploy an application to a Docker container?

There are several ways to deploy an application to a Docker container. You will find them right here.

Docker Deployment With RAD Server Engine

With Pa-radserver, you can test, debug, and deploy Linux applications and custom RAD Server endpoints easily. Also, you can deploy RAD Server in a production environment.

Configure the Project File:

1. Create a file, called RADServerDockerDeploy.dpr. It will have the source code of the main file in the project.

2. Then start adding the code. First, you have to specify the program.

[crayon-6741c22d3ba10117262550/]

3. Now, you have to use different units, like System.Classes, System.Types, and System.SysUtil.

[crayon-6741c22d3ba15216172289/]

4. Next, you have to specify server packages, server module path, and target settings path.

[crayon-6741c22d3ba16829971776/]

5. Now, you have to define ResStream, IniFile, and LCommand variables.

[crayon-6741c22d3ba17254716824/]

6. Finally, you have to add these lines:

[crayon-6741c22d3ba18997958266/]

How does the finished Delphi .Dproj file look like?

You can view the finished Delphi .Dproj file right here.

Source Code:

You can find the source code on GitHub.

Docker Deployment with InterBase Database

The pa-radserver-ib Docker image contains the functionalities of InterBase, which is the RAD Server database. You can configure pa-radserver-ib Dockerfile to accept a RAD Server license SLIP file. It will enable you to create a fully licensed Docker container.

Configure the Project File:

1. Create a file, called RADServerDockerDeploy.dpr.

2. Next, you need to specify the program.

[crayon-6741c22d3ba19405628448/]

3. Then add these lines:

[crayon-6741c22d3ba1a716742078/]

4. Then you have to use different units and libraries, like System.SysUtils and Posix.Stdlib.

[crayon-6741c22d3ba1b022221492/]

5. Now, you have to define server packages, target module path and target settings path.

[crayon-6741c22d3ba1c537552799/]

6. Next, you can specify ResStream, IniFile, and LCommand variables.

[crayon-6741c22d3ba1d094345832/]

7. Finally, you have to insert this code (between the “program” and “end.” lines)

[crayon-6741c22d3ba1e141352011/]

How does the finished Delphi .Dproj file look like?

You can see the finished Delphi .Dproj file on GitHub.

Source Code:

You can find the source code right here.

Docker Deployment Via PAServer

The PAserver Docker image contains PAServer and BoradwayD. PAServer enables you to deploy console and GUI based applications easily. On the other hand, the BroadwayD server allows you to view the GUI applications through a web browser.

Configure the Docker File

1. First, you have to create a file, called Dockerfile.

2. Then add this code:

[crayon-6741c22d3ba1f698349385/]

3. Now, you can set PA Server password.

[crayon-6741c22d3ba20984355523/]

4. Then add paserver.tar.gz file.

[crayon-6741c22d3ba21599587799/]

5. Finally, add these lines:

[crayon-6741c22d3ba22046981532/]

Source Code:

You can get the source code at GitHub.

Should I use Docker for deployment?

Docker allows you to deploy the applications quickly and efficiently. It enables you to easily pack and run any app as a lightweight and portable container, which can run virtually anywhere. So, you should definitely consider using it.

Interested to deploy your server? Rapidly build and deploy services-based applications with the Rad Server’s IDE Software.

Exit mobile version