Merge pull request #960 from veggiemonk/netlify-plugins

This commit is contained in:
Julien Bisconti 2021-10-23 23:48:13 +02:00 committed by GitHub
commit 6592eb1de2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 775 additions and 7644 deletions

View File

@ -1,33 +0,0 @@
module.exports = {
env: {
browser: true,
node: true,
},
extends: [
'airbnb-base',
'plugin:import/errors',
'plugin:import/warnings',
'prettier',
'eslint:recommended',
],
plugins: ['import', 'prettier'],
rules: {
camelcase: 0,
'import/order': [
'error',
{
groups: ['builtin', 'external', 'parent', 'sibling', 'index'],
'newlines-between': 'never',
},
],
'no-console': 0,
'prefer-template': 2,
'prettier/prettier': [
'error',
{
singleQuote: true,
trailingComma: 'all',
},
],
},
};

2
.nvmrc
View File

@ -1 +1 @@
14.13.0
14.18.1

View File

@ -1,7 +0,0 @@
{
"bracketSpacing": true,
"tabWidth": 4,
"semi": true,
"trailingComma": "all",
"singleQuote": true
}

View File

@ -1,2 +0,0 @@
language: node_js
cache: npm

View File

@ -306,7 +306,6 @@ _Source:_ [What is Docker](https://www.docker.com/why-docker)
- [KICS](https://github.com/checkmarx/kics) - an infrastructure-as-code scanning tool, find security vulnerabilities, compliance issues, and infrastructure misconfigurations early in the development cycle. Can be extended for additional policies. By [Checkmarx](https://github.com/Checkmarx)
- [notary](https://github.com/theupdateframework/notary) - a server and a client for running and interacting with trusted collections. By [@TUF](https://github.com/theupdateframework)
- [oscap-docker](https://github.com/OpenSCAP/openscap) - OpenSCAP provides oscap-docker tool which is used to scan Docker containers and images. By [OpenSCAP](https://github.com/OpenSCAP)
- [Phonito Security](https://phonito.io/?b=b) :heavy_dollar_sign: - a Docker vulnerability scanner with constant Kubernetes monitoring and pipeline integration.
- [Prisma Cloud](https://www.paloaltonetworks.com/prisma/cloud) :heavy_dollar_sign: - (previously Twistlock Security Suite) detects vulnerabilities, hardens container images, and enforces security policies across the lifecycle of applications.
- [Sysdig Falco](https://github.com/falcosecurity/falco) - Sysdig Falco is an open source container security monitor. It can monitor application, container, host, and network activity and alert on unauthorized activity.
- [Sysdig Secure](https://sysdig.com/products/secure/runtime-security/) :heavy_dollar_sign: - Sysdig Secure addresses run-time security through behavioral monitoring and defense, and provides deep forensics based on open source Sysdig for incident response.
@ -362,7 +361,7 @@ Native desktop applications for managing and montoring docker hosts and clusters
- [ctop (1)](https://github.com/yadutaf/ctop) - A command line / text based Linux Containers monitoring tool that works just like you expect (Python) by [@yadutaf](https://github.com/yadutaf)
- [ctop (2)](https://github.com/bcicen/ctop) - Top-like interface for container metrics (Golang) by [@bcicen](https://github.com/bcicen/)
- [dive](https://github.com/wagoodman/dive) - A tool for exploring each layer in a docker image. By [wagoodman](https://github.com/wagoodman).
- [dockdash](https://github.com/byrnedo/dockdash) detailed stats. By [@byrnedo]
- [dockdash](https://github.com/byrnedo/dockdash) detailed stats. By [@byrnedo]
- [Docker-mon](https://github.com/icecrime/docker-mon) :skull: - Console-based Docker monitoring by [@icecrime](https://github.com/icecrime)
- [dockly](https://github.com/lirantal/dockly) - An interactive shell UI for managing Docker containers by [@lirantal](https://github.com/lirantal)
- [DockSTARTer](https://github.com/GhostWriters/DockSTARTer) - DockSTARTer helps you get started with home server apps running in Docker by [GhostWriters](https://github.com/GhostWriters)
@ -828,7 +827,7 @@ Services to securely store your Docker images.
## Contributor over time
[![Contributor over time](https://contributor-graph-api.apiseven.com/contributors-svg?chart=contributorOverTime&repo=veggiemonk/awesome-docker)](https://www.apiseven.com/en/contributor-graph?chart=contributorOverTime&repo=veggiemonk/awesome-docker)
[contributing]: https://github.com/veggiemonk/awesome-docker/blob/master/.github/CONTRIBUTING.md
[calico]: https://github.com/projectcalico/calicoctl

View File

@ -1,8 +1,6 @@
const fs = require('fs-extra');
const cheerio = require('cheerio');
const showdown = require('showdown');
const Parcel = require('parcel-bundler');
const { SitemapStream, streamToPromise } = require('sitemap');
process.env.NODE_ENV = 'production';
@ -46,44 +44,8 @@ async function processIndex() {
}
}
const bundle = () => {
LOG.debug('---');
LOG.debug('📦 Bundling with Parcel.js');
LOG.debug('---');
new Parcel(indexDestination, {
name: 'build',
publicURL: '/',
})
.bundle()
.then(() => {
const smStream = new SitemapStream({
hostname: 'https://awesome-docker.netlify.com/',
});
smStream.write({
url: '/',
changefreq: 'daily',
priority: 0.8,
lastmodrealtime: true,
lastmodfile: 'dist/index.html',
});
smStream.end();
return streamToPromise(smStream);
})
.then((sm) =>
// Creates a sitemap object given the input configuration with URLs
fs.outputFile(
'dist/sitemap.xml',
// sm.createSitemap(sitemapOpts).toString(),
sm.toString(),
),
);
};
async function main() {
await processIndex();
await bundle();
}
main();

8283
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -5,8 +5,8 @@
"main": "build.js",
"scripts": {
"build": "rimraf ./dist/ && node build.js",
"test-pr": "node tests/pull_request.js",
"test": "node tests/test_all.js"
"test-pr": "node tests/pull_request.mjs",
"test": "node tests/test_all.mjs"
},
"repository": {
"type": "git",
@ -19,24 +19,11 @@
},
"homepage": "https://github.com/veggiemonk/awesome-docker#readme",
"dependencies": {
"cheerio": "1.0.0-rc.3",
"draftlog": "1.0.12",
"fs-extra": "9.0.1",
"node-fetch": "2.6.1",
"parcel-bundler": "1.12.4",
"cheerio": "1.0.0-rc.10",
"draftlog": "1.0.13",
"fs-extra": "10.0.0",
"node-fetch": "3.0.0",
"rimraf": "3.0.2",
"showdown": "1.9.1",
"sitemap": "6.3.2"
},
"devDependencies": {
"babel-eslint": "10.1.0",
"eslint": "7.10.0",
"eslint-config-airbnb-base": "14.2.0",
"eslint-config-prettier": "6.12.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jsx-a11y": "6.3.1",
"eslint-plugin-prettier": "3.1.4",
"minimist": "1.2.5",
"prettier": "2.1.2"
"showdown": "^1.9.0"
}
}

View File

@ -1,5 +1,5 @@
const fetch = require('node-fetch');
const exclude = require('./exclude_in_test.json');
import fetch from 'node-fetch';
import {readFileSync} from 'fs';
const LINKS_OPTIONS = {
redirect: 'error',
@ -78,6 +78,8 @@ async function batch_fetch({ arr, get, post_filter_func, BATCH_SIZE = 8 }) {
return result;
}
const data = readFileSync('./tests/exclude_in_test.json')
const exclude = JSON.parse(data)
const exclude_length = exclude.length;
const exclude_from_list = (link) => {
let is_excluded = false;
@ -90,7 +92,7 @@ const exclude_from_list = (link) => {
return is_excluded;
};
module.exports = {
export default {
LOG,
handleFailure,
extract_all_links,

View File

@ -4,5 +4,7 @@
"https://github.com/apps/",
"https://cycle.io/",
"https://www.manning.com/",
"https://deepfence.io"
"https://deepfence.io",
"https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg",
"https://www.se-radio.net/2017/05/se-radio-episode-290-diogo-monica-on-docker-security"
]

View File

@ -1,5 +1,5 @@
const fs = require('fs-extra');
const helper = require('./common');
import fs from 'fs-extra';
import helper from './common.mjs';
console.log({
DEBUG: process.env.DEBUG || false,

View File

@ -1,6 +1,6 @@
const fs = require('fs-extra');
const fetch = require('node-fetch');
const helper = require('./common');
import fs from 'fs-extra';
import fetch from 'node-fetch';
import helper from './common.mjs';
function envvar_undefined(variable_name) {
throw new Error(`${variable_name} must be defined`);