#229 remove private registry

This commit is contained in:
Mario Romano
2016-06-29 18:22:20 +01:00
parent 81d13e4195
commit 13288199fb
24 changed files with 2 additions and 116 deletions

View File

@@ -87,20 +87,4 @@ $ node -v
v5.12.0 v5.12.0
``` ```
## Installing npm
The npm package manager is included with Node.js, however it is not usually the latest version as npm is updated more frequently than node.js.
Update npm as follows:
`$ npm install npm -g`
## Configure Alfresco Private npm repository
All the distribution packages for the application development framework components are stored in Alfresco's private npm repository,
which is visible only from the internal Alfresco LAN (or through VPN). We need to tell npm about this repository.
Set up Alfresco's private npm repository as follows:
`$ npm set registry http://devproducts.alfresco.me:4873`

View File

@@ -1,20 +0,0 @@
FROM node:5
# Create src directory
RUN mkdir -p /usr/src
WORKDIR /usr/src
# Copy source and install app dependencies
COPY app /usr/src/app/
COPY assets /usr/src/assets/
COPY i18n /usr/src/i18n/
COPY app /usr/src/app/
COPY package.json index.html systemjs.config.js *.json LICENSE README.md /usr/src/
RUN npm install material-design-lite material-design-icons
RUN npm set registry http://devproducts.alfresco.me:4873/
RUN npm install
EXPOSE 3000
CMD [ "npm", "start" ]

View File

@@ -13,34 +13,6 @@
### Node ### Node
To correctly use this demo check that on your machine is running Node version 5.0.0 or higher. To correctly use this demo check that on your machine is running Node version 5.0.0 or higher.
## Prerequisites
Docker machine with latest `platform-distribution:api-latest` image.
```
# docker-login is only needed the first time; after this your credentials will be cached
docker login dockerreg.alfresco.com
docker pull dockerreg.alfresco.com/platform-distribution:api-latest
docker-compose up
```
**Note:** for complete installation on Windows please review the instructions here: [Windows installation](WINDOWS.md)
to clean up afterwards
```
docker-compose rm
```
If you are using the local build you must also have configured your npm to use our private registry, where the
components are published. Currently the registry can only be accessed from Alfresco's London and Maidenhead offices.
npm set registry http://devproducts.alfresco.me:4873
Note this is a global setting which will apply to all your npm projects. You can use `npm config delete registry` to
remove the setting once you no longer need it, or you can temporarily comment out the line in your `.npmrc` file.
### Building and running
#### Local build #### Local build
1 Install dependencies 1 Install dependencies

View File

@@ -1,4 +0,0 @@
alfresco:
image: dockerreg.alfresco.com/platform-distribution:api-latest
ports:
- "8080:8080"

View File

@@ -108,8 +108,5 @@
"blocking": true, "blocking": true,
"logInfo": false, "logInfo": false,
"logError": true "logError": true
},
"publishConfig": {
"registry": "http://devproducts.alfresco.me:4873/"
} }
} }

View File

@@ -34,7 +34,6 @@ To correctly use this component check that on your machine is running Node versi
## Install ## Install
```sh ```sh
npm set registry http://devproducts.alfresco.me:4873
npm install --save ng2-alfresco-core npm install --save ng2-alfresco-core
``` ```

View File

@@ -111,8 +111,5 @@
"blocking": true, "blocking": true,
"logInfo": false, "logInfo": false,
"logError": true "logError": true
},
"publishConfig": {
"registry": "http://devproducts.alfresco.me:4873/"
} }
} }

View File

@@ -31,7 +31,6 @@ To correctly use this component check that on your machine is running Node versi
## Install ## Install
```sh ```sh
npm set registry http://devproducts.alfresco.me:4873
npm install --save ng2-alfresco-datatable material-design-lite material-design-icons npm install --save ng2-alfresco-datatable material-design-lite material-design-icons
``` ```

View File

@@ -72,8 +72,5 @@
"blocking": true, "blocking": true,
"logInfo": false, "logInfo": false,
"logError": true "logError": true
},
"publishConfig": {
"registry": "http://devproducts.alfresco.me:4873/"
} }
} }

View File

@@ -106,8 +106,5 @@
"blocking": true, "blocking": true,
"logInfo": false, "logInfo": false,
"logError": true "logError": true
},
"publishConfig": {
"registry": "http://devproducts.alfresco.me:4873/"
} }
} }

View File

@@ -31,7 +31,6 @@ To correctly use this component check that on your machine is running Node versi
## Install ## Install
```sh ```sh
npm set registry http://devproducts.alfresco.me:4873
npm install --save ng2-alfresco-documentlist npm install --save ng2-alfresco-documentlist
``` ```

View File

@@ -53,8 +53,5 @@
"keywords": [ "keywords": [
"angular2", "angular2",
"typescript" "typescript"
], ]
"publishConfig": {
"registry": "http://devproducts.alfresco.me:4873/"
}
} }

View File

@@ -114,8 +114,5 @@
"blocking": true, "blocking": true,
"logInfo": false, "logInfo": false,
"logError": true "logError": true
},
"publishConfig": {
"registry": "http://devproducts.alfresco.me:4873/"
} }
} }

View File

@@ -30,7 +30,6 @@ To correctly use this component check that on your machine is running Node versi
## Install ## Install
```sh ```sh
npm set registry http://devproducts.alfresco.me:4873
npm install --save ng2-alfresco-login npm install --save ng2-alfresco-login
``` ```

View File

@@ -78,8 +78,5 @@
"tslint": "^3.8.1", "tslint": "^3.8.1",
"typescript": "^1.8.10", "typescript": "^1.8.10",
"typings": "^1.0.4" "typings": "^1.0.4"
},
"publishConfig": {
"registry": "http://devproducts.alfresco.me:4873/"
} }
} }

View File

@@ -121,8 +121,5 @@
"blocking": true, "blocking": true,
"logInfo": false, "logInfo": false,
"logError": true "logError": true
},
"publishConfig": {
"registry": "http://devproducts.alfresco.me:4873/"
} }
} }

View File

@@ -31,7 +31,6 @@ To correctly use this component check that on your machine is running Node versi
## Install ## Install
```sh ```sh
npm set registry http://devproducts.alfresco.me:4873
npm install --save ng2-alfresco-core ng2-alfresco-search npm install --save ng2-alfresco-core ng2-alfresco-search
``` ```

View File

@@ -78,8 +78,5 @@
"tslint": "3.8.1", "tslint": "3.8.1",
"typescript": "1.8.10", "typescript": "1.8.10",
"typings": "1.0.4" "typings": "1.0.4"
},
"publishConfig": {
"registry": "http://devproducts.alfresco.me:4873/"
} }
} }

View File

@@ -116,8 +116,5 @@
"blocking": true, "blocking": true,
"logInfo": false, "logInfo": false,
"logError": true "logError": true
},
"publishConfig": {
"registry": "http://devproducts.alfresco.me:4873/"
} }
} }

View File

@@ -30,7 +30,6 @@ To correctly use this component check that on your machine is running Node versi
## Install ## Install
```sh ```sh
npm set registry http://devproducts.alfresco.me:4873
npm install --save ng2-alfresco-upload npm install --save ng2-alfresco-upload
``` ```

View File

@@ -78,8 +78,5 @@
"tslint": "3.8.1", "tslint": "3.8.1",
"typescript": "1.8.10", "typescript": "1.8.10",
"typings": "1.0.4" "typings": "1.0.4"
},
"publishConfig": {
"registry": "http://devproducts.alfresco.me:4873/"
} }
} }

View File

@@ -120,8 +120,5 @@
"blocking": true, "blocking": true,
"logInfo": false, "logInfo": false,
"logError": true "logError": true
},
"publishConfig": {
"registry": "http://devproducts.alfresco.me:4873/"
} }
} }

View File

@@ -30,7 +30,6 @@ To correctly use this component check that on your machine is running Node versi
## Install ## Install
```sh ```sh
npm set registry http://devproducts.alfresco.me:4873
npm install --save ng2-alfresco-viewer npm install --save ng2-alfresco-viewer
``` ```

View File

@@ -113,8 +113,5 @@
"logInfo": false, "logInfo": false,
"logError": true "logError": true
}, },
"license": "Apache-2.0", "license": "Apache-2.0"
"publishConfig": {
"registry": "http://devproducts.alfresco.me:4873/"
}
} }