- Clone official dockerfiles:
git clone https://github.com/oracle/docker-images oracle-docker-images
cd oracle-docker-images/OracleDatabase/SingleInstance/dockerfiles
require: | |
- standard | |
- rubocop-rspec | |
inherit_gem: | |
# First check this: https://github.com/testdouble/standard#how-do-i-run-standard-in-my-editor | |
# If your editor invokes 'rubocop' directly and knows nothing about 'standard' gem, | |
# it can be useful to inherit 'standard' set of rules | |
standard: config/base.yml | |
// Just an example, for Rails config better use embedded ERB | |
final DATABASE_YAML_TEMPLATE = ''' | |
test: | |
adapter: oracle_enhanced | |
database: app_db | |
username: ${user} | |
password: ${password} | |
''' | |
final CFG_PATH = 'config/database.yml' |
artifactoryUrl=https://your.repo/artifactory |
If you are a software developer, most probably you already have both components already installed:
scoop install 7zip
)docker run --rm \ | |
--network host \ | |
-e SONAR_HOST_URL="http://localhost:9000" \ | |
-e SONAR_LOGIN=$SONAR_LOGIN \ | |
-v $HOME/.sonar/cache:/opt/sonar-scanner/.sonar/cache \ | |
-v `pwd`:/usr/src \ | |
sonarsource/sonar-scanner-cli:4 |
If you develop against of containerized mongo instance using the official Docker Mongo image and make attempt to use transactions, you will most probably face the following error:
com.mongodb.MongoCommandException: Command failed with error 20 (IllegalOperation): 'Transaction numbers are only allowed on a replica set member or mongos' on server localhost:28017. The full response is {"ok": 0.0, "errmsg": "Transaction numbers are only allowed on a replica set member or mongos", "code": 20, "codeName": "IllegalOperation"}
This single docker-compose.yaml
will solve the problem by creating replica set out of single node.
You may face the need to migrate your data, because legacy format was a default choice for a long time in Spring Boot/Data MongoDB and the official MongoDB driver itself (more details here).
So, here is the Java solution based on utilitites from Mongo's org.bson:bson
to perform the migration.
// The Gradle's test-report-aggregation collects only html reports in a single place and ignores XML reports | |
// Here is the custom task to collect all jUnit xml reports in a single place | |
tasks.register<Copy>("testCollectjUnitXmlReports") { | |
val allTestTasks = rootProject | |
.subprojects | |
.flatMap { it.tasks.withType<Test>() } | |
val allJunitXmlLocations = allTestTasks | |
.map { it.reports.junitXml.outputLocation.asFile.get() } | |
from(*allJunitXmlLocations.toTypedArray()) | |
into(rootProject.layout.buildDirectory.dir("test-results/test")) |
const https = require('https') | |
const { spawn } = require('child_process') | |
const url = | |
'https://raw.githubusercontent.com/obsidianmd/obsidian-releases/master/community-plugins.json' | |
https.get(url, (res) => { | |
let data = [] | |
res.on('data', (chunk) => { | |
data.push(chunk) |