Bobcares

ThingWorx Docker | All about

PDF Header PDF Footer

ThingWorx Docker is a collection of Dockerfiles and supporting scripts for creating ThingWorx Platform Docker Images.

As part of our Docker Hosting support service, Bobcares responds to all inquiries, no matter how big or small.

Let’s look at ThingWorx Docker in more detail.

What is ThingWorx Docker

thingworx docker

 

We can use the Docker images for the ThingWorx Platform locally on a developer machine or in a container orchestration platform like Kubernetes.

Perform the following steps to quickly get up and running with Dockerfiles:

  1. Firstly, download Java and save it to the staging directory.

    Replace the downloaded Java version in build.env.

  2. Then, download and place ThingWorx in the staging folder.

    Rename the ThingWorx artefact Thingworx-Platform-[H2|Postgres|Mssql|Azuresql]-version.zip. Rename the file as needed, and include the version number in build.env under PLATFORM_VERSION.

  3. Then, execute the stage command ./build.sh.
  4. Enter ./build.sh for the persistence provider we want to use.

    The value type can be any of the following:

    – h2
    – postgres
    – mssql
    – azuresql

  5. Then, for the desired persistence provider, update the docker-compose-type.yml file.

    We should specify THINGWORX_INITIAL_ADMIN_PASSWORD for h2.

    TWX_DATABASE_USERNAME, TWX_DATABASE_PASSWORD, and TWX_DATABASE_SCHEMA must be specified in both the postgresql and platform sections, and THINGWORX_INITIAL_ADMIN_PASSWORD must be specified in the platform section. For the environment to start, we must define the variables identically in both the postgresql and platform sections.

    In the platform section, specify TWX_DATABASE_PASSWORD and THINGWORX_INITIAL_ADMIN_PASSWORD for mssql.

  6. Finally, execute the command docker-compose -f docker-compose-type.yml up -d.

Setting up HTTP Secure (HTTPS) and HTTP

HTTP is enabled by default, and HTTPS is disabled in the ThingWorx images provided. This is suitable for testing and development but not for production use. If we intend to use HTTPS in a production scenario, we strongly advise enabling it in order to properly secure our ThingWorx Platform.

To configure HTTPS for Docker images, follow these steps:
  1. Copy the HTTPS certificate keystore file to the Docker-mounted ThingworxPlatform folder. The volume mounts are relative to the files created by docker-compose. This is where it stores the logs and configuration files to enable container persistence. For the keystore we must name keystore.jks by default. We can override this with the SSL_KEYSTORE_FILENAME environment variables.
  2. Then, make sure the Docker Compose file has the environment variable SSL_KEYSTORE_PASSWORD set to the keystore’s encryption password and HTTPS_ENABLED set to true.
  3. Finally, make sure port 8443:8443 is in the Docker Compose file’s ports section.
To enable HTTP:
  1. Firstly, Make sure the environment variable HTTP_ENABLED is set to true or false in the Docker Compose file, depending on the requirements. The default value is true.
  2. Finally, check that port 8080:8080 is included in the ports section of the Docker Compose file.

[Looking for a solution to another query? We are just a click away.]

Conclusion

To sum up, our Support team went over ThingWorx Docker details.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Docker Support

Spend time on your business, not on your servers.

Managing a server is time consuming. Whether you are an expert or a newbie, that is time you could use to focus on your product or service. Leave your server management to us, and use that time to focus on the growth and success of your business.

TALK TO US Or click here to learn more.

Speed issues driving customers away?
We’ve got your back!

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF