Skip to content

Commit 175d5a5

Browse files
committed
Adding fix for using private npm module
1 parent f26b4a7 commit 175d5a5

3 files changed

Lines changed: 9 additions & 0 deletions

File tree

ansible/eru.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
- hosts: mongodb
44
- hosts: redis
55
- hosts: rabbitmq
6+
- hosts: big-poppa
67
- hosts: socket-server-proxy
78

89
- hosts: eru

ansible/group_vars/alpha-big-poppa-http.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ npm_version: 2
1010
dockerfile_enviroment: [
1111
"NPM_TOKEN {{ npm_token }}"
1212
]
13+
14+
dockerfile_pre_install_commands: [
15+
"echo '//registry.npmjs.org/:_authToken=\${NPM_TOKEN}' > .npmrc"
16+
]
17+
1318
# for container settings
1419
container_envs: >
1520
-e DATADOG_HOST={{ datadog_host_address }}

ansible/group_vars/alpha-eru.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ has_shrinkwrap: true
1212
dockerfile_enviroment: [
1313
"NPM_TOKEN {{ npm_token }}"
1414
]
15+
dockerfile_pre_install_commands: [
16+
'echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" > .npmrc'
17+
]
1518

1619
dockerfile_post_install_commands:
1720
- apt-get update && apt-get install -y supervisor

0 commit comments

Comments
 (0)