Added S3 release script

This commit is contained in:
jpellizzari
2017-01-20 12:04:19 -08:00
parent c1303e181e
commit 59ed9b8f3f
5 changed files with 7 additions and 4 deletions

1
client/.gitignore vendored
View File

@@ -2,3 +2,4 @@ node_modules
build/
coverage/
test/*png
*.tgz

View File

@@ -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/

View File

@@ -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": {

View File

@@ -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
View 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