arukas 的 Endpoint
arukas 的 Endpoint
什么是端点 What is Endpoint
arukas.io 的实例几乎每周都自动重新启动,当实例重新启动时,其端口会更改。IP地址和端口的平均寿命是一周,有时它在一天内变化。
但是,端点URL始终相同。永远在线的连接应该是通过端点。
端点URL仅映射到实例的第一个端口。
例如:
端口#1:3456 <=映射到端点
端口#2:80
端口#3:443
端点需要在端点启用后打开所有端口。
EndPoint URL是HTTP后端支持,主要用于Web服务器和API服务器。
arukas 的 Endpoint 默认映射到第一个端口。如果建立的 app 中只开通了一个端口,如31098 (80/tcp),那 Endpoint 自然映射到这个端口;如果建立的 app 中只开通了多个端口,Endpoint 则不知道指向那个端口。
这时候自然用到端口转发,这里有个centos7的样例,测试成功。
/////////////////////////////////////////////////////////////////
https://arukas.io/en/tutorials-en/tutorials-python-en/
从 https://app.arukas.io/settings/api-keys 获取 Token 和 Secret
安装 docker : apt-get install docker.io
安装 arukasio_cli https://github.com/arukasio/cli
docker run --rm -e ARUKAS_JSON_API_TOKEN="账户的 TOKEN" -e ARUKAS_JSON_API_SECRET="账户的 SECRET" arukasio/arukas
在当前目录建立 .env 文件
ARUKAS_JSON_API_TOKEN=账户的 TOKEN
ARUKAS_JSON_API_SECRET=账户的 SECRET
ARUKAS_JSON_API_URL=
arukasio_cli 管理
Commands:
help [<command>...]
Show help.
ps [<flags>]
Show status of containers
rm <container_id>
Remove a container
run --instances=INSTANCES --mem=MEM --ports=PORTS [<flags>] <image>
Create and run a container. The container must run as a daemon.
start <container_id>
Start one stopped container
stop <container_id>
Stop one running container
Docker 管理
docker run --rm \
-e ARUKAS_JSON_API_TOKEN="应用的 TOKEN " \
-e ARUKAS_JSON_API_SECRET="应用的 SECRET" \
arukasio/arukas run \
--instances=1 \
--mem=512 \
--app-name="quickstart-php" \
--ports=80:tcp \
arukasio/quickstart-php
https://github.com/arukasio/docker-hub-images
arukas 的 Endpoint的更多相关文章
- Azure PowerShell (6) 设置单个Virtual Machine Endpoint
<Windows Azure Platform 系列文章目录> 请注意: - Azure不支持增加Endpoint Range - 最多可以增加Endpoint数量为150 http:// ...
- Azure PowerShell (7) 使用CSV文件批量设置Virtual Machine Endpoint
<Windows Azure Platform 系列文章目录> 请注意: - Azure不支持增加Endpoint Range - 最多可以增加Endpoint数量为150 http:// ...
- Dynamics AX 2012 R2 AIF No Endpoint Behavior Named 'clientEndpointBehavior'
最近,Reinhard在使用Http Adapter类型的AIF入站端口时,总是报以下错误: Server Error in '/MicrosoftDynamicsAXAif60' App ...
- FlASK中的endpoint问题
先贴一点有关的flask代码,时间有限,我慢慢扩充 以下是flask源码中app.py中add_url_rule的代码. 主要是view_func -- endpoint -- url 之间的对应关 ...
- [New Portal]Windows Azure Virtual Machine (22) 使用Azure PowerShell,设置Virtual Machine Endpoint
<Windows Azure Platform 系列文章目录> 我们可以通过Windows Azure Management Portal,打开Virtual Machine的Endpoi ...
- WCF :IIS寄宿方式的Web地址、BaseAddress和EndPoint Address的关系
对于在IIS中通过W3SVC或WAS寄宿的WCF Service,其在浏览器中显示的地址(Web地址),与其配置文件中的BaseAddress和EndPoint Address有什么关系呢?让我们来分 ...
- 深入SpringBoot:自定义Endpoint
前言 上一篇文章介绍了SpringBoot的PropertySourceLoader,自定义了Json格式的配置文件加载.这里再介绍下EndPoint,并通过自定EndPoint来介绍实现原理. En ...
- WCF初探-21:WCF终结点(endpoint)
WCF终结点概述 在之前文章的示例中,我们都是通过配置服务的终结点(endpoint)发布的服务,供客户端调用,这是因为WCF服务的所有通信都是通过该服务的终结点进行的.每个终结点(endpoint) ...
- EndPoint详解
EndPoint详解 EndPoint主要用于暴露一些SpringMvc内部运行的信息,通常是通过SpringMvc的请求地址获取相关信息.如/health获取健康检查信息. 简单单元测试 @Test ...
随机推荐
- 113.dynamic_cast 虚函数 通过子类初始化的父类转化为子类类型
#include <iostream> using namespace std; //子类同名函数覆盖父类 //父类指针存储子类地址,在有虚函数情况会调用子类方法,否则会调用父类方法 cl ...
- nginx大量TIME_WAIT的解决办法--转
原文地址:http://liuyieyer.iteye.com/blog/2214722?utm_source=tuicool&utm_medium=referral 由于网站使用nginx做 ...
- ASP.net Web API允许跨域访问解决办法
来源 http://blog.csdn.net/wxg_kingwolfmsncn/article/details/48545099 遇到此跨域访问问题,解决办法如下: 方法一: 1. 在we ...
- c# 读取导入的excel文件,循环批量处理数据
dt = FM_HR_ShiftMaintenanceManager.GetCsvToDataTable(strConn, excelName,"XJSQMonthlyImportExcel ...
- codeforces111D. Petya and Coloring(组合数学,计数问题)
传送门: 解题思路: 要求一条直线分割矩阵时左右颜色数一样,那么就说明一个问题.直线左右移动时是不会改变左右矩阵的颜色集合的.所以说明:2~m-1列的颜色集一定属于第一列与第m列颜色集的交集.而且第一 ...
- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-qvc66dfs/supervisor/
# 安装supervisor 出错 pip3 install supervisor # 解决 sudo pip3 install supervisor
- cache基本结构
下图为direct mapped set associative fully associative图示 direct mapped,相当于set number为1 fully ...
- 【Uva 10618】Tango Tango Insurrection
[Link]: [Description] 玩跳舞机. 有一定的约束. 归纳起来就是以下三点 1.两只脚不能同时踩一个位置 2.如果左脚踩在了右键上,那么下一次移动的一定要是左脚 3.如果右脚踩在了左 ...
- C# 操作Excel常见错误
1.未在本地注册 string strConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + FilePath + &qu ...
- HDU 5375 Gray code(DP)
题意:给一串字符串,里面可能出现0,1,?,当中问号可能为0或1,将这个二进制转换为格雷码后,格雷码的每位有一个权值,当格雷码位取1时.加上该位权值,求最大权值和为多少. 分析:比赛的时候愚了.竟然以 ...