By Timo Selvaraj
Docker is the new container based technology that allows you build and distribute applications very easily. You can run multiple applications using docker on the same machine allowing you to manage the system administration in a clean manner. SearchBlox provides a war file or a fully packaged server which can be deployed on docker.
You can build your own SearchBlox docker image and run on major cloud providers like Amazon, Digital Ocean, Azure or Rackspace.
Once you setup the docker installation for your OS, you can create your own SearchBlox docker image.
Create a SearchBlox Dockerfile like this:
# Install Tomcat
RUN sudo apt-get update && sudo apt-get -y install tomcat7
# Add your webapp file into your docker image into Tomcat’s webapps directory
# Your webapp file must be at the same location as your Dockerfile
ADD searchblox.war /var/lib/tomcat7/webapps/
# Expose TCP port 8080
# Start Tomcat server
CMD sudo service tomcat7 start && tail -f /var/log/tomcat7/catalina.out
Build the SearchBlox image like this:
docker build -t searchblox <Dockerfile's path>
Run the SearchBlox Server:
docker run -d -p 8080:8080 searchblox
Now you can access SearchBlox at the following location:
username : admin
password : admin