Hi Team, I am logically creating a code in ansible-container with reference of a nodejs application container code written using docker. I am not able to find the exact syntax to change the below docker code. Could someone help me on this.
RUN npm config set registry http://registry.npmjs.org/ - Set npm RUN npm config set proxy http://prod-proxy-out.xxxx.com:8080 - set proxy using npm RUN tar -xzf *.tgz - untar a existing tar file I tried these options, but they are not working Approach 1: shell: npm config set registry "{{ nodejs_npm_registry }}" when: nodejs_npm_registry != "https://registry.npmjs.org/" Approach 2; - name: Set NPM registry command: 'npm config set registry http://registry.npmjs.org/' Approach used for Untar: unarchive: src: "{{ node_package_url }}" dest: "{{ app_home_path }}" copy: no mode: 0777 None of the above is working. please guide me with proper steps so that i can proceed and run the code by changing the docker file syntax. TIA! -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d6580456-1fe0-4621-b5f5-f46b6b621ed4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
