Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
This guide applies to a clean installation of the CentOS 7 Minimal distribution. This is labeled as "Minimal ISO" on the CentOS.org website and the filename of the iso image used to install the operating system will resemble "CentOS-7-x86_64-Minimal-1611.iso." The machine used in this guide was a virtual machine created using Oracle VirtualBox but the same steps should apply to any machine with a clean CentOS 7 Minimal install. It is however possible that some installations may encounter slight variations due to hardware configurations.
Unzip the downloaded "MED-..._ThingWorx-Analytics-Server-Linux-Standalone-8-0-0.zip". Inside the unzipped directory you will find a file called "ThingWorxAnalyticsServer-8.0.0-linux-x64-installer.run". Before running step number 10, upload that file to your CentOS machine using a SFTP SCP tool of your choice.
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum makecache fast
yum -y install docker-ce
groupadd docker
usermod -aG docker thingworx
systemctl start docker
systemctl enable docker
docker ps
"CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES"
setenforce 0
sed -i -e 's/SELINUX=enforcing/SELINUX=disabled/' /etc/sysconfig/selinux
hostname centos
echo "centos" > /etc/hostname
systemctl disable firewalld
systemctl stop firewalld
cd /home/thingworx
chmod +x ThingWorxAnalyticsServer-8.0.0-linux-x64-installer.run
./ThingWorxAnalyticsServer-8.0.0-linux-x64-installer.run
curl http://127.0.0.1:8080/analytics/1.0/about/versioninfo
NOTE: The response from the above command should resemble the following: {"implementationVersion":"8.0.0"}
Great document.
But when I restart the VM, the containers don't run automatically, i.e. I have to run
docker start community_postgres zookeeper gridworker1 analytics
manually.
How would I run this automatically on machine restart?
Roman,
You can set the auto start using the following command:
sudo /opt/ThingWorxAnalyticsServer/launcher/launcher -option=start -label=TAS
You can confirm that the label TAS is the correct one with the command:
sudo docker ps -a --format="table {{.ID}}\t{{.Labels}}\t{{.Image}}"
For reference, we have an article on the knowledge base that contains this information, that can be found here
Regards,
Neel
There is an installer for Docker CE on AWS that sets up a Managed Docker env on AWS.
Neel, could you help me run the Foundation Docker installer in AWS? We are a big TWX partner and could use your help if you work for TWX.
Eric,
I am with the Analytics group, but they have a technical blog similar to mine for a Foundation installation, which can be viewed here
Regards,
Neel