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

ibmcloud上部署的网址能自定义吗? #6

Open
ymcoming opened this issue Jul 25, 2020 · 7 comments
Open

ibmcloud上部署的网址能自定义吗? #6

ymcoming opened this issue Jul 25, 2020 · 7 comments

Comments

@ymcoming
Copy link

现在好像是随机生成的,例如楼下这种:v2ws-comedic-dingo-ka.mybluemix.net

能通过命令在部署时自定义一个网址吗?

@tvision08
Copy link

大佬能否给个示例?谢谢啦!

@tlmoe
Copy link
Owner

tlmoe commented Jul 25, 2020

@tvision08

        cat > manifest-ibm.yml << EOF
        ---
        applications:
        - name: v2fly
          memory: 128M
          disk_quota: 128M
          routes:
          - route: v2fly.mybluemix.net
          command: ./v2ray
          buildpacks:
          - binary_buildpack
        EOF
    
    - uses: citizen-of-planet-earth/cf-cli-action@v1
      with:
        cf_api: https://api.us-south.cf.cloud.ibm.com
        cf_username: ${{ secrets.CF_USER_IBM }}
        cf_password: ${{ secrets.CF_PASSWORD_IBM }}
        cf_org: ${{ secrets.CF_ORG_IBM }}
        cf_space: ${{ secrets.CF_SPACE_IBM }}
        command: >
          push v2fly -f manifest-ibm.yml
@tvision08
Copy link

谢谢啦!搞定了。

@tvision08
Copy link

tvision08 commented Jul 30, 2020

大佬问下,如果想一次性部署4个相同的APP例如:v2flya、v2flyb、v2flyc、v2flyd,配置文件要怎么写?谢谢!

@tlmoe
Copy link
Owner

tlmoe commented Jul 30, 2020

大佬问下,如果想一次性部署4个相同的APP例如:v2flya、v2flyb、v2flyc、v2flyd,配置文件要怎么写?谢谢!

@tvision08 完全相同的可以用instance
https://docs.cloudfoundry.org/devguide/deploy-apps/manifest-attributes.html#instances

memory:  256M
instances: 4

不一样的可以参考
https://docs.cloudfoundry.org/devguide/deploy-apps/manifest.html#multi-apps

@tvision08
Copy link

好的,谢谢啦!

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