Skip to content

Instantly share code, notes, and snippets.

@fahrinh
Created February 10, 2014 06:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fahrinh/8911092 to your computer and use it in GitHub Desktop.
Save fahrinh/8911092 to your computer and use it in GitHub Desktop.

Persiapan Docker Container

  1. Download & unzip https://bitbucket.org/fahri_work/20140130_oracle_docker_builder/downloads/oracle_xe_builder.zip

  2. Jika menggunakan proxy, pada file oracle_xe_builder/Dockerfile, uncomment & set proxy bagian # ENV http_proxy "http://0.0.0.0:8080/"

  3. Host:

    $ cd oracle_xe_builder
    $ sudo docker build -t phai/oracle-xe .
    $ sudo docker run -d -p 0.0.0.0:1521:1521 -p 0.0.0.0:2202:22 -p 0.0.0.0:8082:8080 -t phai/oracle-xe /usr/bin/supervisord

Persiapan Database

  1. Host:

    $ ssh root@localhost -p 2202
  2. Container:

    # sqlplus SYS/oracle "AS SYSDBA"
    
    SQL> create user foodb identified by foodb;
    SQL> grant all privileges to foodb;
    SQL> @/home/ddl_foodb.sql

Jalankan Aplikasi

  • Host:

    $ hg clone https://bitbucket.org/fahri_work/foowebapp
    $ cd foowebapp
    $ mvn clean jetty:run

Testing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment