Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

parana/web-xe-ubuntu

Oracle Java JDK 8 plus Oracle Express Edition 11g Release 2 on Ubuntu 14.04.1 LTS

This Dockerfile is a trusted build of Docker Registry.

Based on: wnameless/oracle-xe-11g

Installation

docker pull parana/web-xe-ubuntu

Define in your .bash_profile this utility function:

docker-ip() { 
  boot2docker ip 2> /dev/null 
}

Run as a daemon with 8080, 22 and 1521 ports opened, setting the hostname to db-server use the command:

docker run -d -h db-server -p 1443:8080 -p 49160:22 -p 1521:1521 --name myxe parana/web-xe-ubuntu

Connect database with following setting:

hostname: localhost
port: 1521
sid: xe
username: system
password: oracle

Password for SYS & SYSTEM is

oracle

From your MAC OSX terminal:

sqlplus system/oracle@$(docker-ip):1521/XE

Login by SSH

ssh root@$(docker-ip) -p 49160
password: admin

Connect via WebBrowser with following setting:

hostname: $(docker-ip)
port: 1443

open http://$(docker-ip):1443

To stop myxe container use:

docker stop myxe

To remove myxe container use:

docker rm myxe

To see myxe container details use:

docker ps | grep myxe

Another usefull shell.

Save this on your ~/bin/ directory as docker-clean file:

#!/bin/sh                                                                                                                                                                            

remove_dangling() {
  echo "Removing dangling images ..."
  docker rmi $(docker images -f dangling=true -q)
}


remove_stopped_containers() {
   echo "Removing stopped containers ..."
   docker rm $(docker ps -qa)
}

case $1 in
   images)
       remove_dangling
       ;;
   containers)
       read -p "Are you sure you want to remove all stopped containers?" -n 1 -r
       echo  #
       if [[ $REPLY =~ ^[Yy]$ ]]
       then
           remove_stopped_containers
       fi
       ;;
   *)
       echo "usage: docker-clean containers|images   -  containers - removes all stopped containers it can.   images - removes dangling (un-needed) image layers - images you no longer need"
       ;;

esac
Docker Pull Command
Owner
parana
Source Repository

Comments (0)