mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 17:51:21 +00:00
Added S3 release script
This commit is contained in:
1
client/.gitignore
vendored
1
client/.gitignore
vendored
@@ -2,3 +2,4 @@ node_modules
|
||||
build/
|
||||
coverage/
|
||||
test/*png
|
||||
*.tgz
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
FROM node:6.9.0
|
||||
WORKDIR /home/weave
|
||||
COPY package.json /home/weave/
|
||||
COPY package.json post-install /home/weave/
|
||||
ENV NPM_CONFIG_LOGLEVEL=warn NPM_CONFIG_PROGRESS=false
|
||||
RUN npm install
|
||||
COPY webpack.local.config.js webpack.production.config.js server.js .babelrc .eslintrc .eslintignore /home/weave/
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
"build": "webpack --config webpack.production.config.js",
|
||||
"build-external": "EXTERNAL=true webpack --config webpack.production.config.js",
|
||||
"build-pkg": "babel app/scripts --ignore __tests__ --out-dir dist && cp -R app/styles dist/styles",
|
||||
"install": "./post-install.sh",
|
||||
"install": "./post-install",
|
||||
"start": "node server.js",
|
||||
"start-production": "NODE_ENV=production node server.js",
|
||||
"test": "jest",
|
||||
@@ -99,7 +99,8 @@
|
||||
"lint": "eslint app",
|
||||
"clean": "rm build/app.js",
|
||||
"noprobe": "../scope stop && ../scope launch --no-probe --app.window 8760h",
|
||||
"loadreport": "npm run noprobe && sleep 1 && curl -X POST -H \"Content-Type: application/json\" http://$BACKEND_HOST/api/report -d"
|
||||
"loadreport": "npm run noprobe && sleep 1 && curl -X POST -H \"Content-Type: application/json\" http://$BACKEND_HOST/api/report -d",
|
||||
"s3-publish" : "npm pack && aws s3 cp weave-scope-*.tgz s3://weaveworks-npm-modules/weave-scope/ --acl public-read"
|
||||
},
|
||||
"jest": {
|
||||
"transform": {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
#!/bin/bash
|
||||
pwd=$(pwd)
|
||||
if [[ $pwd == *"node_modules"* ]]; then
|
||||
echo "Installed as Node module. Building package..."
|
||||
2
scope
Normal file → Executable file
2
scope
Normal file → Executable file
@@ -74,7 +74,7 @@ check_docker_access() {
|
||||
}
|
||||
|
||||
# - The image embeds the weave script & Docker 1.3.1 client
|
||||
# - Docker versions prior to 1.5.0 do not support --pid=host
|
||||
# - Docker versions prior to 1.5.0 do not support --pid=host
|
||||
# - Weave needs 1.6.0 now (image pulling changes)
|
||||
MIN_DOCKER_VERSION=1.6.0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user