# Difference between kibana github and kibana docker oss

**URL:** <https://discuss.elastic.co/t/difference-between-kibana-github-and-kibana-docker-oss/200001>\
**Category:** Kibana\
**Created:** [September 18, 2019, 12:11pm UTC](https://discuss.elastic.co/t/difference-between-kibana-github-and-kibana-docker-oss/200001 "2019-09-18T12:11:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![oranciog](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@oranciog](https://discuss.elastic.co/u/oranciog)\
**Post date:** [September 18, 2019, 12:11pm UTC](https://discuss.elastic.co/t/difference-between-kibana-github-and-kibana-docker-oss/200001/1 "2019-09-18T12:11:50Z")

</div>

Hello!

I've noticed that there are differences between the code from github and the code inside docker oss images.

For examples:

- The files: [https://github.com/elastic/kibana/blob/v6.2.3/src/cli\_plugin/install/install.js](https://github.com/elastic/kibana/blob/v6.2.3/src/cli_plugin/install/install.js) and /usr/share/kibana/src/cli\_plugin/install/install.js from [docker.elastic.co/elasticsearch/elasticsearch-oss:6.2.3](http://docker.elastic.co/elasticsearch/elasticsearch-oss:6.2.3) are completely different. (This is valid for all 6.2.X tags)

---

<div class="post-metadata">

**Author:** ![Larry\_Gregory](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/larry_gregory/32/34969_2.png) [@Larry\_Gregory](https://discuss.elastic.co/u/Larry_Gregory)\
**Post date:** [September 18, 2019, 1:25pm UTC](https://discuss.elastic.co/t/difference-between-kibana-github-and-kibana-docker-oss/200001/2 "2019-09-18T13:25:40Z")

</div>

Here's the version I pulled from the `kibana-oss:6.2.4` image:

```auto
'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _download = require('./download');

var _bluebird = require('bluebird');

var _bluebird2 = _interopRequireDefault(_bluebird);

var _path = require('path');

var _path2 = _interopRequireDefault(_path);

var _cleanup = require('./cleanup');

var _pack = require('./pack');

var _rename = require('./rename');

var _rimraf = require('rimraf');

var _kibana = require('./kibana');

var _mkdirp = require('mkdirp');

var _mkdirp2 = _interopRequireDefault(_mkdirp);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new _bluebird2.default(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return _bluebird2.default.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }

const mkdir = _bluebird2.default.promisify(_mkdirp2.default);

exports.default = (() => {
  var _ref = _asyncToGenerator(function* (settings, logger) {
    try {
      yield (0, _cleanup.cleanPrevious)(settings, logger);

      yield mkdir(settings.workingPath);

      yield (0, _download.download)(settings, logger);

      yield (0, _pack.getPackData)(settings, logger);

      yield (0, _pack.extract)(settings, logger);

      (0, _rimraf.sync)(settings.tempArchiveFile);

      (0, _kibana.existingInstall)(settings, logger);

      (0, _kibana.assertVersion)(settings);

      yield (0, _rename.renamePlugin)(settings.workingPath, _path2.default.join(settings.pluginDir, settings.plugins[0].name));

      yield (0, _kibana.rebuildCache)(settings, logger);

      logger.log('Plugin installation complete');
    } catch (err) {
      logger.error(`Plugin installation was unsuccessful due to error "${err.message}"`);
      (0, _cleanup.cleanArtifacts)(settings);
      process.exit(70); // eslint-disable-line no-process-exit
    }
  });

  function install(_x, _x2) {
    return _ref.apply(this, arguments);
  }

  return install;
})();

module.exports = exports['default'];

```

Is that what you're seeing too? The reason it differs from what you see on GitHub is due to Kibana's build process. All of our source files are transpiled using [Babel](https://babeljs.io/) to ensure compatibility across different environments.

---

<div class="post-metadata">

**Author:** ![oranciog](https://avatars.discourse-cdn.com/v4/letter/o/e19b73/32.png) [@oranciog](https://discuss.elastic.co/u/oranciog)\
**Post date:** [September 18, 2019, 1:51pm UTC](https://discuss.elastic.co/t/difference-between-kibana-github-and-kibana-docker-oss/200001/3 "2019-09-18T13:51:28Z")

</div>

Yes, this is what I see in files.

The problem with this difference is that the files can't be patched. (For example, I needed the pull request from [https://github.com/elastic/kibana/pull/16302](https://github.com/elastic/kibana/pull/16302) to be applied on docker files, and using a simple diff doesn't work).

---

<div class="post-metadata">

**Author:** ![Larry\_Gregory](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/larry_gregory/32/34969_2.png) [@Larry\_Gregory](https://discuss.elastic.co/u/Larry_Gregory)\
**Post date:** [September 18, 2019, 4:37pm UTC](https://discuss.elastic.co/t/difference-between-kibana-github-and-kibana-docker-oss/200001/4 "2019-09-18T16:37:50Z")

</div>

> [@oranciog](#):
>
> The problem with this difference is that the files can't be patched. (For example, I needed the pull request from [https://github.com/elastic/kibana/pull/16302](https://github.com/elastic/kibana/pull/16302) to be applied on docker files, and using a simple diff doesn't work).

Correct, you can't patch source files into the distributable like that. If you're not able/willing to upgrade, then your only option is to create a fork Kibana, and merge the patch yourself. Once merged in your version, you can build your own OSS distribution with the patch applied.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 16, 2019, 4:38pm UTC](https://discuss.elastic.co/t/difference-between-kibana-github-and-kibana-docker-oss/200001/5 "2019-10-16T16:38:18Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
