mirror of
https://github.com/veggiemonk/awesome-docker.git
synced 2025-01-02 19:21:12 -05:00
Merge pull request #960 from veggiemonk/netlify-plugins
This commit is contained in:
commit
6592eb1de2
33
.eslintrc.js
33
.eslintrc.js
@ -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',
|
||||
},
|
||||
],
|
||||
},
|
||||
};
|
@ -1,7 +0,0 @@
|
||||
{
|
||||
"bracketSpacing": true,
|
||||
"tabWidth": 4,
|
||||
"semi": true,
|
||||
"trailingComma": "all",
|
||||
"singleQuote": true
|
||||
}
|
@ -1,2 +0,0 @@
|
||||
language: node_js
|
||||
cache: npm
|
@ -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.
|
||||
|
38
build.js
38
build.js
@ -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();
|
||||
|
8273
package-lock.json
generated
8273
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
27
package.json
27
package.json
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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,
|
@ -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"
|
||||
]
|
||||
|
@ -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,
|
@ -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`);
|
Loading…
Reference in New Issue
Block a user