Skip to content

sapianco/DoePhone

Repository files navigation

DoePhone

DoePhoneBanner

el Softphone WebRTC de DialBox Online Edition te permitira realizar y atender llamadas directamente desde un navegador, no necesitas hacer ninguna instalación ni actualización.

Test whit Docker local

docker run -v /home/arpagon/Workspace/DoePhone/DoePhone:/var/www/html/DoePhone --network host --rm us.gcr.io/ccoe-246623/sapian/doephone:latest

Test whit https

docker run --network host --rm -p 2020:2020 -v /home/arpagon/Workspace/DoePhone/config/caddy/Caddyfile:/etc/caddy/Caddyfile caddy:2-alpine

https://localhost:2020/DoePhone

Build

version=0.0.1; 
docker build \
    --build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
    --build-arg VCS_REF=$(git rev-parse --short HEAD) \
    --tag us.gcr.io/ccoe-246623/sapian/doephone:latest \
    --tag us.gcr.io/ccoe-246623/sapian/doephone:${version} \
    --build-arg VERSION=${version} .

Build helm package

helm package --destination release/ helm/ccagc/

Upload new Version of Chart

curl -u sapian:superpassword --data-binary "@release/doephone-7.9.2.tgz" https://chartmuseum.voe.sapian.cloud/api/charts

Publish doephone.dialbox.cloud

Gen Static site to $(pwd)/static

cd ~/Workspace/DoePhone/DoePhone
flutter build web
cp web/error.html build/web/

S3 Radosgw static file config

cd ~/Workspace/DoePhone/s3-ceph-rados-gw
s3cmd -c ~/.s3cfg.d/doephone setpolicy PublicGetObjet.json s3://doephone.dialbox.cloud

Upload Static Site to s3 ceph-radosgw

aws --profile=doephone --endpoint-url=https://ceph.sapian.cloud s3 sync ~/Workspace/DoePhone/DoePhone/build/web/ s3://doephone.dialbox.cloud/

Config Bucket as s3website

cd ~/Workspace/DoePhone/s3-ceph-rados-gw
aws --profile=doephone --endpoint-url=http://172.16.244.104 s3api put-bucket-website --bucket doephone.dialbox.cloud --website-configuration file://website.json

Creart DNS records.

doephone.dialbox.cloud.	300	IN	CNAME	doephone.dialbox.cloud.s3website-cur.sapian.cloud.