-
-
Save 85degree/240dac22a1bdb30d05caab68569b48eb to your computer and use it in GitHub Desktop.
Setting up JFrog artifactory for NPM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker pull docker.bintray.io/jfrog/artifactory-oss:latest | |
docker run --name artifactory -d -p 8081:8081 docker.bintray.io/jfrog/artifactory-oss | |
# In browser open http://localhost:8081 and follow basic steps | |
# Add new remote repository: http://localhost:8081/artifactory/webapp/#/admin/repositories/remote | |
# URL: https://registry.npmjs.org | |
# RepositoryLayout: NPM default | |
# Add new virtual repository of type "Generic" using remote repository above | |
# URL: http://localhost:8081/artifactory/webapp/#/admin/repositories/virtual | |
# Repository Key: npmjs | |
# Create mini npm app to test | |
mkdir /tmp/mytest; cd /tmp/mytest | |
echo "registry=http://localhost:8081/artifactory/npmjs" .npmrc | |
npm install react |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment