diff options
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/is-docker')
6 files changed, 0 insertions, 127 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/is-docker/cli.js b/sandbox/testAppNevena/Front/node_modules/is-docker/cli.js deleted file mode 100644 index 58f2861f..00000000 --- a/sandbox/testAppNevena/Front/node_modules/is-docker/cli.js +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env node -'use strict'; -const isDocker = require('.'); - -process.exitCode = isDocker() ? 0 : 2; diff --git a/sandbox/testAppNevena/Front/node_modules/is-docker/index.d.ts b/sandbox/testAppNevena/Front/node_modules/is-docker/index.d.ts deleted file mode 100644 index c801881d..00000000 --- a/sandbox/testAppNevena/Front/node_modules/is-docker/index.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** -Check if the process is running inside a Docker container. - -@example -``` -import isDocker = require('is-docker'); - -if (isDocker()) { - console.log('Running inside a Docker container'); -} -``` -*/ -declare function isDocker(): boolean; - -export = isDocker; diff --git a/sandbox/testAppNevena/Front/node_modules/is-docker/index.js b/sandbox/testAppNevena/Front/node_modules/is-docker/index.js deleted file mode 100644 index cbb7b6f7..00000000 --- a/sandbox/testAppNevena/Front/node_modules/is-docker/index.js +++ /dev/null @@ -1,29 +0,0 @@ -'use strict'; -const fs = require('fs'); - -let isDocker; - -function hasDockerEnv() { - try { - fs.statSync('/.dockerenv'); - return true; - } catch (_) { - return false; - } -} - -function hasDockerCGroup() { - try { - return fs.readFileSync('/proc/self/cgroup', 'utf8').includes('docker'); - } catch (_) { - return false; - } -} - -module.exports = () => { - if (isDocker === undefined) { - isDocker = hasDockerEnv() || hasDockerCGroup(); - } - - return isDocker; -}; diff --git a/sandbox/testAppNevena/Front/node_modules/is-docker/license b/sandbox/testAppNevena/Front/node_modules/is-docker/license deleted file mode 100644 index fa7ceba3..00000000 --- a/sandbox/testAppNevena/Front/node_modules/is-docker/license +++ /dev/null @@ -1,9 +0,0 @@ -MIT License - -Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/sandbox/testAppNevena/Front/node_modules/is-docker/package.json b/sandbox/testAppNevena/Front/node_modules/is-docker/package.json deleted file mode 100644 index ae282258..00000000 --- a/sandbox/testAppNevena/Front/node_modules/is-docker/package.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "name": "is-docker", - "version": "2.2.1", - "description": "Check if the process is running inside a Docker container", - "license": "MIT", - "repository": "sindresorhus/is-docker", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "bin": "cli.js", - "engines": { - "node": ">=8" - }, - "scripts": { - "test": "xo && ava && tsd" - }, - "files": [ - "index.js", - "index.d.ts", - "cli.js" - ], - "keywords": [ - "detect", - "docker", - "dockerized", - "container", - "inside", - "is", - "env", - "environment", - "process" - ], - "devDependencies": { - "ava": "^1.4.1", - "sinon": "^7.3.2", - "tsd": "^0.7.2", - "xo": "^0.24.0" - } -} diff --git a/sandbox/testAppNevena/Front/node_modules/is-docker/readme.md b/sandbox/testAppNevena/Front/node_modules/is-docker/readme.md deleted file mode 100644 index f09b254f..00000000 --- a/sandbox/testAppNevena/Front/node_modules/is-docker/readme.md +++ /dev/null @@ -1,27 +0,0 @@ -# is-docker - -> Check if the process is running inside a Docker container - -## Install - -``` -$ npm install is-docker -``` - -## Usage - -```js -const isDocker = require('is-docker'); - -if (isDocker()) { - console.log('Running inside a Docker container'); -} -``` - -## CLI - -``` -$ is-docker -``` - -Exits with code 0 if inside a Docker container and 2 if not. |