In the past week I have been experimenting with installing Oracle Stream Explorer into a Docker container, in order to simplify provisioning development/show case environments with a single docker run command.
Docker is an open platform for developers and sysadmins to build, ship, and run distributed applications. Consisting of Docker Engine, a portable, lightweight runtime and packaging tool, and Docker Hub, a cloud service for sharing applications and automating workflows, Docker enables apps to be quickly assembled from components and eliminates the friction between development, QA, and production environments. As a result, IT can ship faster and run the same app, unchanged, on laptops, data center VMs, and any cloud.
You can find the corresponding docker project on my GitHub: https://github.com/gschmutz/docker-oracle-sx
Due to the Oracle licensing agreement, the Oracle software itself can not be provided in the GitHub project. So you first have to download the Java 7 SDK as well as Stream Explorer Runtime and the Stream Explorer User Experience using your own OTN login. Download the 3 artefacts into the downloads subfolder.
- Java 7 SDK: jdk-7u75-linux-x64.rpm
- Stream Explorer Runtime: ofm_sx_generic_22.214.171.124.0_disk1_1of2.zip
- Stream Explorer User Experience: ofm_sx_generic_126.96.36.199.0_disk1_2of2.zip
After downloading these files into the downloads folder, you are ready to build the Docker image:
docker build -t gschmutz/docker-oracle-sx:12.1.3 .
This will take a while if run for the first time, as it downloads the oracle-linux base image first. At the end you should see a “Successfully build xxxxxxxx” message, indicating that the docker image has been built successfully.
Unfortunately the domain creation wizard cannot be run automatically, therefore the domain has been pre-created and is provided by the docker-oracle-sx project. This domain is named sx_domain and is copied into the docker image when building the container.
Now let’s run the container:
docker run -d -p 9002:9002 gschmutz/docker-oracle-sx:12.1.3
With the -p option we are exposing the port 9002 from the docker container to the host machine. With that Oracle Stream Explorer is available under http://docker-host-ip:9002/sx. Connect with user wlevs and password welcome1.
The Oracle Event Processing Console is available under http://docker-host-ip:9002/wlevs.
Happy stream exploring 🙂