Last active
March 28, 2019 20:14
-
-
Save jin/19c9b2971c832d17c131fcda23b840bd to your computer and use it in GitHub Desktop.
Set up local private Artifactory instance in Docker
This file contains hidden or 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:latest | |
# Go to http://localhost:8081, set up admin password, skip proxy setup. | |
# Add a new remote Maven repo for Google Maven. URL: https://maven.google.com | |
# In rules_jvm_external, | |
maven_install( | |
artifacts = [ | |
"androidx.appcompat:appcompat:1.0.2", | |
"androidx.annotation:annotation:1.0.2", | |
"androidx.test.ext:junit:1.1.0", | |
"org.robolectric:robolectric:4.1", | |
"org.assertj:assertj-core:3.12.1" | |
], | |
repositories = [ | |
"http://admin:password@localhost:8081/artifactory/jcenter", | |
"http://admin:password@localhost:8081/artifactory/google", | |
], | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment