{"id":15363826,"url":"https://github.com/javieraviles/docker-wildfly-oracle","last_synced_at":"2025-08-26T02:07:07.718Z","repository":{"id":82659566,"uuid":"166248016","full_name":"javieraviles/docker-wildfly-oracle","owner":"javieraviles","description":"Dockerized Wildfly with Oracle driver developing environment, setting up a data source (using credential store) and basic auth. Autodeployment and Debugging.","archived":false,"fork":false,"pushed_at":"2019-01-18T15:35:23.000Z","size":3171,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-03T00:37:47.794Z","etag":null,"topics":["basic-auth","credential-store","datasource","docker","docker-compose","java","oracle","oracle-driver","wildfly"],"latest_commit_sha":null,"homepage":"","language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/javieraviles.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-01-17T15:26:43.000Z","updated_at":"2022-07-20T02:07:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"131c3cbf-296d-40b8-ba10-460baf07aea6","html_url":"https://github.com/javieraviles/docker-wildfly-oracle","commit_stats":{"total_commits":3,"total_committers":1,"mean_commits":3.0,"dds":0.0,"last_synced_commit":"33499ea5a003e93ad2e6924dbc066fd751d6e726"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/javieraviles/docker-wildfly-oracle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javieraviles%2Fdocker-wildfly-oracle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javieraviles%2Fdocker-wildfly-oracle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javieraviles%2Fdocker-wildfly-oracle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javieraviles%2Fdocker-wildfly-oracle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/javieraviles","download_url":"https://codeload.github.com/javieraviles/docker-wildfly-oracle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/javieraviles%2Fdocker-wildfly-oracle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272160241,"owners_count":24883779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-26T02:00:07.904Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["basic-auth","credential-store","datasource","docker","docker-compose","java","oracle","oracle-driver","wildfly"],"created_at":"2024-10-01T13:08:39.048Z","updated_at":"2025-08-26T02:07:07.698Z","avatar_url":"https://github.com/javieraviles.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# docker-wildfly-oracle\nDockerized Wildfly with Oracle driver developing environment, setting up a data source (using credential store, keystore) and basic auth. Autodeployment and Debugging.\n\nThanks to [SleepingTalent github](https://github.com/SleepingTalent/wildfly-with-oracle-driver) for the oracle driver solution.\n\nTable of contents:\n\n- [docker-wildfly-oracle](#docker-wildfly-oracle)\n  - [Pre-reqs](#pre-reqs)\n  - [Configure environment](#configure-environment)\n  - [Database](#database)\n  - [Application server](#application-server)\n    - [BASIC AUTH](#basic-auth)\n    - [Deployment and logs](#deployment-and-logs)\n    - [Logging](#logging)\n    - [Self-signed certificates](#self-signed-certificates)\n    - [Remote debugging and admin console](#remote-debugging-and-admin-console)\n  - [Recommended tools](#recommended-tools)\n  - [Setup remote java application debugging](#setup-remote-java-application-debugging)\n\n## Pre-reqs\n - Install Docker for Windows\n\u003e **Note!** As Docker for Windows 7 is running under Boot2Docker (a lightweight linux VM), container's URLs will be accessible through `192.168.99.100` while for Windows 10 will just be `localhost` as it runs \"natively\". You can run `docker-machine ip` to figure the dockerhost out anyway.\n\n\n## Configure environment\nOpen bash in this project directory, then execute the following commands to create and run both containers `Oracle-XE` and `Wildfly` in Docker:\n\nCreate oracle-xe docker image:\n\n    cd oracle\n    docker build -t oracle-xe .\n    cd ..\n\nCreate Wildfly docker image:\n    \n    cd wildfly\n    docker build -t wildfly .\n    cd ..\n\nOnce the images are created, only this step will be necessary to bootstrap the whole environment in the future:\n\n    docker-compose up\n\n## Database\nOracle-XE should be already running:\n- host `localhost/192.168.99.100:1521`\n- SID `XE`\n- user `dockercrud`\n- password `password`\n\nSome example scripts (oracle/*.sql) to be executed at the creation time of the database are provided, have a look at them, they are self-explaining.\n\n\u003e **Note!** user and password + DB initialization configured in `oracle/00_create_database_schema.sql`.\n\u003e **Note 2!** a datasource has already been created in the wildfly image to access this database service in the file `oracle-driver-commands.cli`.\n\n## Application server\n`Wildfly` should also be running in 192.168.99.100:8080 (exposed in docker-compose). The most tricky part is probably in the `config-commands.cli` file, where both the ORACLE DATASOURCE (password added to a credential store, looks pretty okay) and the BASIC AUTH.\n\n### BASIC AUTH\nBasic auth, as well as the datasource, is configuered as an ELYTRON (new security framework for wildfly) subsystem; `config-commands.cli` file contains some comments to help you adapt it to your special needs. I point out there three different ways of getting basic auth users created (filesystem-realm, properties-realm or using wildfly's cli tool add-user.sh).\n\nEverything is thought to keep all the \"configurable values\" in the `cli.properties` file, so you can maybe use environment variables when deploying or something like that.\n\n### Deployment and logs\nVolume `~/webapp:/opt/jboss/wildfly/standalone/deployments/` has been created so built wars can be placed in `c:/users/\u003cuser\u003e/projects/docker-wildfly-oracle` locally and will be deployed in Wildfly container. The idea is you can point your IDE's target dir here so everything gets deployed as you build, zero effort.\n\nA second volume `~/webapp:/opt/jboss/wildfly/standalone/log/` has been created so the logs from wildfly will be placed in `c:/users/\u003cuser\u003e/projects/docker-wildfly-oracle/logs` locally and can be accessed. Some IDEs can configure directly this log into IDE's console.\n\n### Logging\nSome workaround for **logging** into the application-server is configuered as a `login module` in wildfly, have a look at line 29 in the `/wildfly/Dockerfile`. File `module.xml` (uncomment if necessary) defines it, which gets copied over, and added to the `standalone.xml` file in case you hae a `logging.jar` for example.\n\n### Self-signed certificates\nIn case you need self-signed certificates, add to the root of the project a `keystore.jks` with your certificates, then uncomment lines 25 and 26 in `wildfly/Dockerfile` and 34,35 and 36 in `standalone.xml`.\n\n### Remote debugging and admin console\n**Remote debugging** is using port 8787 (also exposed in docker-compose)\n\n**Admin console** will be served in 192.168.99.100:9990 (user `admin`, password `admin`)\n\n## Recommended tools\nIDE -\u003e Eclipse Oxygen/IntelliJ\nDB management -\u003e Oracle SQL developer, DBeaver\nGit management -\u003e Git Bash\n\n## Setup remote java application debugging\nIn your IDE, set the application as a remote java application.\n\nIn **Eclipse**, go to `Debug Configurations -\u003e Remote Java Application:`\n- Pick the project\n- host: localhost/192.168.99.100 (windows 10/windows 7 docker)\n- port: 8787\n\nIn **IntelliJ**, go to Run -\u003e Debug -\u003e Edit Configurations:\n- click on + icon and select Remote\n- specify a name\n- specify port 8787\n- in the Use module classpath drop down, select you application\n- click Apply and OK\n- select the Debug configuration and click on Debug icon.\n\nAt this point you should see in the console: Connected to the target VM, address: 'localhost:8787', transport: 'socket'\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavieraviles%2Fdocker-wildfly-oracle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjavieraviles%2Fdocker-wildfly-oracle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjavieraviles%2Fdocker-wildfly-oracle/lists"}