Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Commit

Permalink
Trying to remove global angular cli install from travis build.
Browse files Browse the repository at this point in the history
  • Loading branch information
dessalines committed Sep 26, 2018
1 parent f55cfa1 commit 1bd6ec2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
before_install:
- psql -c "create user simplevote with password 'asdf'" -U postgres
- psql -c "create database simplevote with owner simplevote" -U postgres
- cd ui; npm i -g @angular/cli; yarn; yarn build --prod --aot --build-optimizer;
- cd ui; yarn; yarn build --prod --aot --build-optimizer;
- cp -R dist/ ../service/src/main/resources
- cd ../service
addons:
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
FROM node:8.11 as node-builder

# Hacky workaround for installing @angular/cli
RUN chmod a+w /usr/local/lib/node_modules && chmod a+w /usr/local/bin
USER node
RUN npm i -g @angular/cli@latest
# RUN chmod a+w /usr/local/lib/node_modules && chmod a+w /usr/local/bin
# USER node
# RUN npm i -g @angular/cli@latest

# Build front end resources
USER root
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Goto to http://localhost:4567
#### Requirements
- Java 8 + Maven
- Node + npm/yarn, [nvm](https://github.com/creationix/nvm) is the preferred installation method.
- angular-cli: `npm i -g @angular/cli@latest
- angular-cli: `npm i -g @angular/cli@latest`
- Postgres 9.3 or higher

#### Download SimpleVote
Expand Down
6 changes: 3 additions & 3 deletions docker_builds/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM node:9 as node-builder

# Hacky workaround for installing @angular/cli
RUN chmod a+w /usr/local/lib/node_modules && chmod a+w /usr/local/bin
USER node
RUN npm i -g @angular/cli@latest
# RUN chmod a+w /usr/local/lib/node_modules && chmod a+w /usr/local/bin
# USER node
# RUN npm i -g @angular/cli@latest

# Build front end resources
USER root
Expand Down

0 comments on commit 1bd6ec2

Please sign in to comment.