forked from gmoon/s3proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
82 lines (82 loc) · 4.37 KB
/
package.json
File metadata and controls
82 lines (82 loc) · 4.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
"name": "s3proxy",
"version": "1.6.3",
"description": "Streaming web proxy for AWS S3",
"main": "index.js",
"devDependencies": {
"artillery": "^1.7.9",
"artillery-plugin-expect": "^1.5.0",
"benchmark": "^2.1.4",
"chai": "^4.3.4",
"chai-http": "^4.3.0",
"eslint": "^8.6.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.25.4",
"express": "^4.17.2",
"express-request-id": "^1.4.1",
"helmet": "^5.0.1",
"microtime": "^3.0.0",
"mocha": "^9.1.3",
"mocha-junit-reporter": "^2.0.2",
"morgan": "^1.10.0",
"nock": "^13.2.1",
"npm-check-updates": "^12.1.0",
"nyc": "^15.1.0",
"sinon": "^12.0.1",
"start-server-and-test": "^1.14.0",
"wait-on": "^6.0.0"
},
"dependencies": {
"aws-sdk": "^2.1049.0",
"url": "^0.11.0"
},
"scripts": {
"eslint": "eslint *.js examples/*.js",
"start": "PORT=3000 node examples/express-basic.js",
"test": "npm run eslint && npm run nyc-coverage mocha && npm run artillery-ci && npm run package && npm run artillery-docker",
"nyc-coverage": "MOCHA_FILE=test-results/mocha-junit.xml nyc --reporter=html --reporter=text mocha --reporter mocha-junit-reporter",
"mocha": "mocha --reporter mocha-junit-reporter",
"artillery-local-3000": "artillery run --target http://localhost:3000 --config test/artillery-config-quick.yml test/artillery.yml",
"artillery-local-8080": "artillery run --target http://localhost:8080 --config test/artillery-config-quick.yml test/artillery.yml",
"artillery-ecs": "artillery run --target https://s3proxy.forkzero.com --config test/artillery-config-quick.yml test/artillery.yml",
"artillery-ci": "start-server-and-test start :3000 artillery-local-3000",
"artillery-docker": "npm run credentials && docker run -v $PWD/credentials.json:/src/credentials.json:ro --rm --name s3proxy-test -d -p 8080:8080 -e BUCKET=s3proxy-public -e PORT=8080 -t s3proxy:test && wait-on http://localhost:8080/index.html && npm run artillery-local-8080; docker kill s3proxy-test",
"artillery-perf-ecs": "artillery run --config test/artillery-config-perf-ecs.yml test/artillery.yml",
"artillery-perf-apigw": "artillery run --config test/artillery-config-perf-apigw.yml test/artillery.yml",
"package": "npm pack && mv s3proxy-*.tgz examples/docker/",
"credentials": "aws sts get-session-token --duration 900 > credentials.json",
"docker": "echo running s3proxy:test && npm run credentials && docker run -v $PWD/credentials.json:/src/credentials.json:ro -p 8080:8080 -e BUCKET=s3proxy-public -t s3proxy:test; rm credentials.json",
"dockerize-for-test": "npm run package && cd examples/docker && docker buildx build --progress plain --build-arg VERSION=$npm_package_version --target test --load -t s3proxy:test .",
"dockerize-for-prod-aws": "cd examples/docker && docker buildx build --build-arg VERSION=$npm_package_version --push --target production -t ${AWS_ACCOUNT}.dkr.ecr.us-east-1.amazonaws.com/s3proxy:latest -t ${AWS_ACCOUNT}.dkr.ecr.us-east-1.amazonaws.com/s3proxy:$npm_package_version --platform=linux/amd64,linux/arm64 .",
"dockerize-for-prod-dockerhub": "cd examples/docker && docker buildx build --build-arg VERSION=$npm_package_version --push --target production -t forkzero/s3proxy:$npm_package_version --platform=linux/amd64,linux/arm64 .",
"software-bill-of-materials": "cd examples/docker && docker buildx build --build-arg VERSION=$npm_package_version --load --target production -t forkzero/s3proxy:$npm_package_version . && syft forkzero/s3proxy:$npm_package_version",
"docker-login-aws": "aws ecr get-login-password --region us-east-1 | docker login --username AWS --password-stdin ${AWS_ACCOUNT}.dkr.ecr.us-east-1.amazonaws.com",
"docker-login-dockerhub": "docker login --username ${DOCKERHUB_USER} --password ${DOCKERHUB_ACCESS_TOKEN}",
"cleanup": "rm -fv s3proxy*.tgz; rm -fv examples/docker/s3proxy*.tgz",
"ncu-upgrade": "ncu --upgrade"
},
"repository": {
"type": "git",
"url": "git+https://github.com/gmoon/s3proxy.git"
},
"files": [
"README.md",
"LICENSE",
"*.js"
],
"keywords": [
"aws",
"s3",
"proxy",
"node",
"nodejs",
"http",
"express"
],
"author": "George Moon <george.moon@gmail.com>",
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/gmoon/s3proxy/issues"
},
"homepage": "https://github.com/gmoon/s3proxy#readme"
}