[英]Artifactory oss install with Docker
I'm trying to install Artifactory oss
using docker
.我正在尝试使用docker
安装Artifactory oss
。
I'm running ubuntu 18.04
and docker 19.03.8
我正在运行ubuntu 18.04
和docker 19.03.8
I followed the JFrog installation guide https://www.jfrog.com/confluence/display/JFROG/Installing+Artifactory#InstallingArtifactory-DockerInstallation我遵循了 JFrog 安装指南https://www.jfrog.com/confluence/display/JFROG/Installing+Artifactory#InstallingArtifactory-DockerInstallation
I did all the steps.我做了所有的步骤。 Except that chown -R 1030:1030 $JFROG_HOME/artifactory/var
must be run with sudo.除了chown -R 1030:1030 $JFROG_HOME/artifactory/var
必须使用 sudo 运行。
The container start.容器启动。 But when I'm going to http://myhost:8082/ui/ I only see a page with the JFrog logo displaying with a zoomin/zoomout effect.但是当我访问http://myhost:8082/ui/ 时,我只看到一个带有 JFrog 标志的页面,并带有放大/缩小效果。
I the logs I see我看到的日志
################################################################
### All services started successfully in 116.053 seconds ###
################################################################
2020-03-26T07:27:05.070Z [jfrou] [INFO ] [ ] [server_configuration.go:61 ] [main] - Server configuration reloaded on localhost:8046
2020-03-26T07:27:05.070Z [jfrou] [INFO ] [ ] [server_configuration.go:61 ] [main ] - Server configuration reloaded on localhost:8049
2020-03-26T07:27:05.071Z [jfrou] [INFO ] [ ] [server_configuration.go:61 ] [main ] - Server configuration reloaded on :8082
2020-03-26T07:27:05.109Z [jfac ] [INFO ] [ ] [alConfigurationServiceBase:182] [c-default-executor-1] - Loading configuration from db finished successfully
2020-03-26T07:27:07.104Z [jfrou] [INFO ] [ ] [server_configuration.go:61 ] [main ] - Server configuration reloaded on :8082
2020-03-26T07:27:07.105Z [jfrou] [INFO ] [ ] [server_configuration.go:61 ] [main ] - Server configuration reloaded on localhost:8046
2020-03-26T07:27:07.105Z [jfrou] [INFO ] [ ] [server_configuration.go:61 ] [main ] - Server configuration reloaded on localhost:8049
2020-03-26T07:27:10.084Z [jfrou] [WARN ] [6ec6165e7fec2711] [ternal_topology_verifier.go:92] [main ] - failed pinging external node 'f461d2eebfe3' at address 'http://172.17.0.2:8082': Get http://172.17.0.2:8082/router/api/v1/system/ping: context deadline exceeded
The last line appears when I request the url in the browser.当我在浏览器中请求 url 时,会出现最后一行。
What can I do ?我能做什么 ?
Edit:编辑:
I also tried with docker-compose
also following the jfrog guide
.我也按照jfrog guide
尝试使用jfrog guide
docker-compose
。
First run : artifactory is not starting !首次运行:神器未启动!
After editing the .jfrog/artifactory/var/etc/system.yaml
and chaning the 127.0.0.1
by my host name
followed again with the config.sh
artifactory is starting.在编辑.jfrog/artifactory/var/etc/system.yaml
并通过我的host name
.jfrog/artifactory/var/etc/system.yaml
127.0.0.1
之后, config.sh
artifactory 正在启动。
But same problem when accessing http://myhost:8082/ui/但是访问http://myhost:8082/ui/时同样的问题
I don't understand what's happening and why it is not working following the jfrog guides...我不明白发生了什么以及为什么它不能按照 jfrog 指南工作......
In my case, it turns out to be that my proxy settings are blocking the http client from contacting the local endpoint.就我而言,事实证明我的代理设置阻止了 http 客户端联系本地端点。 I updated docker-compose.yml to include no_proxy and noproxy environment variables and Artifactory runs without any complaint.我更新了 docker-compose.yml 以包含no_proxy和noproxy环境变量,并且 Artifactory 运行时没有任何抱怨。
services:
artifactory:
environment:
- http_proxy=*********
- https_proxy=*********
- no_proxy=*********
- noproxy=172.16.0.0/12
image: docker.bintray.io/jfrog/artifactory-oss:latest
The solution was quite simple : try another browser !解决办法很简单:换个浏览器试试!
With Edge it's not working.使用 Edge 它不起作用。 With Firefox it's working ....使用 Firefox,它可以正常工作....
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.