containerizing node.js apps with docker and Oracle Autonomous Database
Build docker images configured to run node.js apps on Oracle autonomous Databases.
To build a docker image,
- Clone repository to your local machine
- Provision an Oracle Autonomous Transaction Processing (ATP) database in the Oracle Cloud. Download the credentials zip file
- Unzip the database credentials zip file wallet_XXXXX.zip in the same folder as your Dockerfile
- Create db user 'nodeuser' and grant create session
- Install docker on your local machine if it doesn't exist
- build Dockerfile - $docker build -t nodeapp .
- Launch container mapping local port to 3050 -- $docker run -i -p 3050:3050 -t nodeapp
- Launch browser on local m/c and check out app at http://localhost:3050