opavlova/db-derby
OS: ubuntu:14.04.4
Java version: 1.7
Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre
Apache Derby version: 10.12.1.1
Apache Derby home: /db-derby-10.12.1.1-bin/
Folder with databases: /dbs
Install docker https://docs.docker.com/engine/installation/ https://docs.docker.com/engine/userguide/
Add Docker support https://www.jetbrains.com/help/idea/docker.html
Create a Dockerfile with the following content in IntelliJ IDEA:
FROM opavlova/db-derby
Create and run a New Run Configuration
click on the "Run on Docker' gutter (near "FROM" in the Editor) -> choose "New Run Configuration"
enter "-p 1527:1527" into the "Run options" field
Run ( results are in the Services View )
Create a connection to the database in the Database View:
go to the Database View, add new Derby Data Source
add URL: jdbc:derby://localhost:1527/DOCKERDB
add user=DOCKERDB, password = DOCKERDB
Connect.
Go to the Services View
Connect to Docker
Pull the image
Select "Images" item
Enter "opavlova/db-derby"
Press ctrl+click to pull the image
Run a container Select the pulled image in the list of images->Call context menu->Create Container Enter "-p 1527:1527" into the "Run options" field in the opened Docker Run Configuration (where port binding: "-p :") Run
Create a connection to the database in the Database View:
go to the Database View, add new Data Source
add URL: jdbc:derby://localhost:1527/DOCKERDB
user=DOCKERDB, password = DOCKERDB
Connect.
Dockerfile for opavlova/db-derby image: https://github.com/IdeaUJetBrains/DockerFiles/blob/master/docker-dir/db/Derby
Content type
Image
Digest
Size
259.3 MB
Last updated
almost 10 years ago
docker pull opavlova/db-derby