Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI 环境新加入4台厂内阡陌机器, 需要修改CI build配置 #10784

Closed
guochaorong opened this issue May 19, 2018 · 2 comments
Closed
Assignees

Comments

@guochaorong
Copy link
Contributor

guochaorong commented May 19, 2018

主要有三个地方需要修改:
1. 需要设置http代理
厂内机器访问github以及其他国外网站很慢,90分钟还未完成docker build ,并且丢包。
需要设置代理。
计划这样修改
目前:

 if [[ "%WITH_UBUNTU_MIRROR%" == "ON" ]]; then
        docker build -t ${PADDLE_DEV_NAME} --build-arg UBUNTU_MIRROR=mirror://mirrors.ubuntu.com/mirrors.txt .
 else
        docker build -t ${PADDLE_DEV_NAME} .

改成:

    if [[ "%WITH_UBUNTU_MIRROR%" == "ON" ]]; then
        if [[ %system.teamcity.agent.hostname% =~ yq01-gpu-88 ]]; then
            docker build -t ${PADDLE_DEV_NAME} --build-arg UBUNTU_MIRROR=mirror://mirrors.ubuntu.com/mirrors.txt --build-arg https_proxy=http://xxxx:xx --build-arg http_proxy=http://xxxx:xx .
        else
            docker build -t ${PADDLE_DEV_NAME} --build-arg UBUNTU_MIRROR=mirror://mirrors.ubuntu.com/mirrors.txt .
        fi
    else
        docker build -t ${PADDLE_DEV_NAME} .
    fi

以及在docker run时,指定http_proxy和 https_proxy

2. 需要修改的docker 命令
docker images paddlepaddle/paddle-dev:6e29fd7ace5d6cb4b88d4af864f14128 -q(老一点的docker版本不支持)
修改为 docker images -q paddlepaddle/paddle-dev:6e29fd7ace5d6cb4b88d4af864f14128

3. cases适配
在docker run时, 设置no_proxy=127.0.0.1 (在本地时用该代理,以防止case test_send_recv出错, 该case会在本地启动一个代理)

@guochaorong
Copy link
Contributor Author

请帮忙review下~

@guochaorong guochaorong changed the title CI 环境新加入4台厂内阡陌机器, 需要在CI build配置中加入http(s) proxy代理 CI 环境新加入4台厂内阡陌机器, 需要修改目前CI build配置 May 23, 2018
@guochaorong guochaorong changed the title CI 环境新加入4台厂内阡陌机器, 需要修改目前CI build配置 CI 环境新加入4台厂内阡陌机器, 需要修改CI build配置 May 23, 2018
@guochaorong guochaorong self-assigned this May 23, 2018
@guochaorong
Copy link
Contributor Author

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants