- 浏览: 2566548 次
- 性别:
- 来自: 成都
-
文章分类
最新评论
-
nation:
你好,在部署Mesos+Spark的运行环境时,出现一个现象, ...
Spark(4)Deal with Mesos -
sillycat:
AMAZON Relatedhttps://www.godad ...
AMAZON API Gateway(2)Client Side SSL with NGINX -
sillycat:
sudo usermod -aG docker ec2-use ...
Docker and VirtualBox(1)Set up Shared Disk for Virtual Box -
sillycat:
Every Half an Hour30 * * * * /u ...
Build Home NAS(3)Data Redundancy -
sillycat:
3 List the Cron Job I Have>c ...
Build Home NAS(3)Data Redundancy
Private Registry Harbor 2019(1)Version 1.9.0 and HA Solution
Check version
> docker --version
Docker version 19.03.2, build 6a30dfc
Install Docker Compose
> sudo yum install epel-release
> sudo yum install -y python-pip
> sudo pip install docker-compose
> sudo pip install --upgrade pip
> sudo yum upgrade python*
Check version
> docker-compose version
docker-compose version 1.24.1, build 4667896
docker-py version: 3.7.3
CPython version: 2.7.5
OpenSSL version: OpenSSL 1.0.2k-fips 26 Jan 2017
Find the offline release version from here https://github.com/goharbor/harbor/releases
> sudo yum install wget
> wget https://storage.googleapis.com/harbor-releases/release-1.9.0/harbor-offline-installer-v1.9.0.tgz
> tar -xf harbor-offline-installer-v1.9.0.tgz
> mv harbor ~/tool/harbor-1.9.0
> sudo ln -s /home/carl/tool/harbor-1.9.0 /opt/harbor-1.9.0
> sudo ln -s /opt/harbor-1.9.0 /opt/harbor
Prepare the configuration
> vi harbor.yml
hostname: 192.168.56.110
http:
# port for http, default is 80. If https enabled, this port will redirect to https port
port: 8088
harbor_admin_password: xxxxxxxx
This command will load the configuration, and prepare the images
> sudo ./prepare
Install the software
> sudo ./install.sh
Visit the page
http://192.168.56.110:8088
We can visit the admin page and add user there
Try login with Docker Command Line
> docker login 192.168.56.110
Username: sillycat
Password:
Error response from daemon: Get https://192.168.56.110/v2/: x509: certificate signed by unknown authority
Solution:
> sudo vi /etc/docker/daemon.json
{
"insecure-registries": ["192.168.56.110:8088"]
}
Restart Docker service
> sudo systemctl restart docker.service
Still exception:
https://github.com/goharbor/harbor/issues/2273
https://github.com/docker/for-mac/issues/1317
How to stop the Service
> sudo docker-compose down -v
How to start the Service
> sudo docker-compose up -d
Clean database
> rm -r /data/database
Clean the images
> rm -r /data/registry
How to Change Config
> sudo docker-compose down -v
Change configuration file
> vi harbor.yml
hostname: 192.168.56.110
> sudo ./prepare
> sudo docker-compose up -d
Success with this command
> docker login http://192.168.56.110:8088
Username: sillycat
Password:
WARNING! Your password will be stored unencrypted in /home/carl/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
Try that, pull latest ubuntu
> docker pull ubuntu
Tag the image
> docker tag ubuntu 192.168.56.110:8088/library/ubuntu:v1
Push to server
> docker push 192.168.56.110:8088/library/ubuntu:v1
We can login without prompt
> docker login 192.168.56.110:8088 -u=“sillycat" -p=“xxxxxxxx"
Here is how it release to Docker Registry
stage('Release to Docker Registry') {
steps {
withCredentials([usernamePassword(credentialsId: 'yiyi_harbor', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {
sh '''
docker build -f deployment/docker/Dockerfile -t 52.13.38.xxx:49002/connector/sillycat/netsuiteconnector:1.1 .
docker login 52.13.38.xxx:49002 -u="$USERNAME" -p="$PASSWORD"
docker push 52.13.38.xxx:49002/connector/sillycat/netsuiteconnector:1.1
'''
}
}
}
HA Solution
Master-Slave can solve the problems that a lot of clients want to fetch the images. But the master is still a single point of failures.
https://www.imooc.com/article/270050
Master-Master can solve the problem, Load balance to the Harbor master.
https://segmentfault.com/a/1190000020144752
Harbor-Harbor Share storage
How to Share the Storage: AWS S3, OpenStack Swift, Ceph and etc. We can directly use NFS.
How to share the session: Redis storage session
How to share database: Use other database instead of local file
References:
https://github.com/NaturalHistoryMuseum/scratchpads2/wiki/Install-Docker-and-Docker-Compose-(Centos-7)
https://github.com/goharbor/harbor/releases
https://github.com/goharbor/harbor
https://blog.51cto.com/coolsky/2343408
https://www.cnblogs.com/breezey/p/9444231.html
Check version
> docker --version
Docker version 19.03.2, build 6a30dfc
Install Docker Compose
> sudo yum install epel-release
> sudo yum install -y python-pip
> sudo pip install docker-compose
> sudo pip install --upgrade pip
> sudo yum upgrade python*
Check version
> docker-compose version
docker-compose version 1.24.1, build 4667896
docker-py version: 3.7.3
CPython version: 2.7.5
OpenSSL version: OpenSSL 1.0.2k-fips 26 Jan 2017
Find the offline release version from here https://github.com/goharbor/harbor/releases
> sudo yum install wget
> wget https://storage.googleapis.com/harbor-releases/release-1.9.0/harbor-offline-installer-v1.9.0.tgz
> tar -xf harbor-offline-installer-v1.9.0.tgz
> mv harbor ~/tool/harbor-1.9.0
> sudo ln -s /home/carl/tool/harbor-1.9.0 /opt/harbor-1.9.0
> sudo ln -s /opt/harbor-1.9.0 /opt/harbor
Prepare the configuration
> vi harbor.yml
hostname: 192.168.56.110
http:
# port for http, default is 80. If https enabled, this port will redirect to https port
port: 8088
harbor_admin_password: xxxxxxxx
This command will load the configuration, and prepare the images
> sudo ./prepare
Install the software
> sudo ./install.sh
Visit the page
http://192.168.56.110:8088
We can visit the admin page and add user there
Try login with Docker Command Line
> docker login 192.168.56.110
Username: sillycat
Password:
Error response from daemon: Get https://192.168.56.110/v2/: x509: certificate signed by unknown authority
Solution:
> sudo vi /etc/docker/daemon.json
{
"insecure-registries": ["192.168.56.110:8088"]
}
Restart Docker service
> sudo systemctl restart docker.service
Still exception:
https://github.com/goharbor/harbor/issues/2273
https://github.com/docker/for-mac/issues/1317
How to stop the Service
> sudo docker-compose down -v
How to start the Service
> sudo docker-compose up -d
Clean database
> rm -r /data/database
Clean the images
> rm -r /data/registry
How to Change Config
> sudo docker-compose down -v
Change configuration file
> vi harbor.yml
hostname: 192.168.56.110
> sudo ./prepare
> sudo docker-compose up -d
Success with this command
> docker login http://192.168.56.110:8088
Username: sillycat
Password:
WARNING! Your password will be stored unencrypted in /home/carl/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
Try that, pull latest ubuntu
> docker pull ubuntu
Tag the image
> docker tag ubuntu 192.168.56.110:8088/library/ubuntu:v1
Push to server
> docker push 192.168.56.110:8088/library/ubuntu:v1
We can login without prompt
> docker login 192.168.56.110:8088 -u=“sillycat" -p=“xxxxxxxx"
Here is how it release to Docker Registry
stage('Release to Docker Registry') {
steps {
withCredentials([usernamePassword(credentialsId: 'yiyi_harbor', usernameVariable: 'USERNAME', passwordVariable: 'PASSWORD')]) {
sh '''
docker build -f deployment/docker/Dockerfile -t 52.13.38.xxx:49002/connector/sillycat/netsuiteconnector:1.1 .
docker login 52.13.38.xxx:49002 -u="$USERNAME" -p="$PASSWORD"
docker push 52.13.38.xxx:49002/connector/sillycat/netsuiteconnector:1.1
'''
}
}
}
HA Solution
Master-Slave can solve the problems that a lot of clients want to fetch the images. But the master is still a single point of failures.
https://www.imooc.com/article/270050
Master-Master can solve the problem, Load balance to the Harbor master.
https://segmentfault.com/a/1190000020144752
Harbor-Harbor Share storage
How to Share the Storage: AWS S3, OpenStack Swift, Ceph and etc. We can directly use NFS.
How to share the session: Redis storage session
How to share database: Use other database instead of local file
References:
https://github.com/NaturalHistoryMuseum/scratchpads2/wiki/Install-Docker-and-Docker-Compose-(Centos-7)
https://github.com/goharbor/harbor/releases
https://github.com/goharbor/harbor
https://blog.51cto.com/coolsky/2343408
https://www.cnblogs.com/breezey/p/9444231.html
发表评论
-
Stop Update Here
2020-04-28 09:00 331I will stop update here, and mo ... -
NodeJS12 and Zlib
2020-04-01 07:44 491NodeJS12 and Zlib It works as ... -
Docker Swarm 2020(2)Docker Swarm and Portainer
2020-03-31 23:18 377Docker Swarm 2020(2)Docker Swar ... -
Docker Swarm 2020(1)Simply Install and Use Swarm
2020-03-31 07:58 381Docker Swarm 2020(1)Simply Inst ... -
Traefik 2020(1)Introduction and Installation
2020-03-29 13:52 351Traefik 2020(1)Introduction and ... -
Portainer 2020(4)Deploy Nginx and Others
2020-03-20 12:06 439Portainer 2020(4)Deploy Nginx a ... -
Private Registry 2020(1)No auth in registry Nginx AUTH for UI
2020-03-18 00:56 449Private Registry 2020(1)No auth ... -
Docker Compose 2020(1)Installation and Basic
2020-03-15 08:10 392Docker Compose 2020(1)Installat ... -
VPN Server 2020(2)Docker on CentOS in Ubuntu
2020-03-02 08:04 475VPN Server 2020(2)Docker on Cen ... -
Buffer in NodeJS 12 and NodeJS 8
2020-02-25 06:43 400Buffer in NodeJS 12 and NodeJS ... -
NodeJS ENV Similar to JENV and PyENV
2020-02-25 05:14 496NodeJS ENV Similar to JENV and ... -
Prometheus HA 2020(3)AlertManager Cluster
2020-02-24 01:47 438Prometheus HA 2020(3)AlertManag ... -
Serverless with NodeJS and TencentCloud 2020(5)CRON and Settings
2020-02-24 01:46 346Serverless with NodeJS and Tenc ... -
GraphQL 2019(3)Connect to MySQL
2020-02-24 01:48 262GraphQL 2019(3)Connect to MySQL ... -
GraphQL 2019(2)GraphQL and Deploy to Tencent Cloud
2020-02-24 01:48 463GraphQL 2019(2)GraphQL and Depl ... -
GraphQL 2019(1)Apollo Basic
2020-02-19 01:36 336GraphQL 2019(1)Apollo Basic Cl ... -
Serverless with NodeJS and TencentCloud 2020(4)Multiple Handlers and Running wit
2020-02-19 01:19 322Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(3)Build Tree and Traverse Tree
2020-02-19 01:19 330Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(2)Trigger SCF in SCF
2020-02-19 01:18 306Serverless with NodeJS and Tenc ... -
Serverless with NodeJS and TencentCloud 2020(1)Running with Component
2020-02-19 01:17 320Serverless with NodeJS and Tenc ...
相关推荐
内容概要:本文档详细介绍了基于 MATLAB 实现的 LSTM-AdaBoost 时间序列预测模型,涵盖项目背景、目标、挑战、特点、应用领域以及模型架构和代码示例。随着大数据和AI的发展,时间序列预测变得至关重要。传统方法如 ARIMA 在复杂非线性序列中表现欠佳,因此引入了 LSTM 来捕捉长期依赖性。但 LSTM 存在易陷局部最优、对噪声鲁棒性差的问题,故加入 AdaBoost 提高模型准确性和鲁棒性。两者结合能更好应对非线性和长期依赖的数据,提供更稳定的预测。项目还展示了如何在 MATLAB 中具体实现模型的各个环节。 适用人群:对时间序列预测感兴趣的开发者、研究人员及学生,特别是有一定 MATLAB 编程经验和熟悉深度学习或机器学习基础知识的人群。 使用场景及目标:①适用于金融市场价格预测、气象预报、工业生产故障检测等多种需要时间序列分析的场合;②帮助使用者理解并掌握将LSTM与AdaBoost结合的实现细节及其在提高预测精度和抗噪方面的优势。 其他说明:尽管该模型有诸多优点,但仍存在训练时间长、计算成本高等挑战。文中提及通过优化数据预处理、调整超参数等方式改进性能。同时给出了完整的MATLAB代码实现,便于学习与复现。
palkert_3ck_01_0918
pepeljugoski_01_1106
tatah_01_1107
AB PLC例程代码项目案例 【备注】 1、该资源内项目代码都经过测试运行成功,功能ok的情况下才上传的,请放心下载使用!有问题请及时沟通交流。 2、适用人群:计算机相关专业(如计科、信息安全、数据科学与大数据技术、人工智能、通信、物联网、自动化、电子信息等)在校学生、专业老师或者企业员工下载使用。 3、用途:项目具有较高的学习借鉴价值,不仅适用于小白学习入门进阶。也可作为毕设项目、课程设计、大作业、初期项目立项演示等。 4、如果基础还行,或热爱钻研,亦可在此项目代码基础上进行修改添加,实现其他不同功能。 欢迎下载!欢迎交流学习!不清楚的可以私信问我!
题目:基于单片机的步进电机控制系统 模块: 主控:AT89C52RC 步进电机(ULN2003驱动) 按键(3个) 蓝牙(虚拟终端模拟) 功能: 1、可以通过蓝牙远程控制步进电机转动 2、可以通过按键实现手动与自动控制模式切换。 3、自动模式下,步进电机正转一圈,反转一圈,循环 4、手动模式下可以通过按键控制步进电机转动(顺时针和逆时针)
AB PLC例程代码项目案例 【备注】 1、该资源内项目代码都经过测试运行成功,功能ok的情况下才上传的,请放心下载使用!有问题请及时沟通交流。 2、适用人群:计算机相关专业(如计科、信息安全、数据科学与大数据技术、人工智能、通信、物联网、自动化、电子信息等)在校学生、专业老师或者企业员工下载使用。 3、用途:项目具有较高的学习借鉴价值,不仅适用于小白学习入门进阶。也可作为毕设项目、课程设计、大作业、初期项目立项演示等。 4、如果基础还行,或热爱钻研,亦可在此项目代码基础上进行修改添加,实现其他不同功能。 欢迎下载!欢迎交流学习!不清楚的可以私信问我!
AB PLC例程代码项目案例 【备注】 1、该资源内项目代码都经过测试运行成功,功能ok的情况下才上传的,请放心下载使用!有问题请及时沟通交流。 2、适用人群:计算机相关专业(如计科、信息安全、数据科学与大数据技术、人工智能、通信、物联网、自动化、电子信息等)在校学生、专业老师或者企业员工下载使用。 3、用途:项目具有较高的学习借鉴价值,不仅适用于小白学习入门进阶。也可作为毕设项目、课程设计、大作业、初期项目立项演示等。 4、如果基础还行,或热爱钻研,亦可在此项目代码基础上进行修改添加,实现其他不同功能。 欢迎下载!欢迎交流学习!不清楚的可以私信问我!
内容概要:本文详细介绍了建设智慧校园平台所需的六个关键步骤。首先通过需求分析深入了解并确定校方和使用者的具体需求;其次是规划设计阶段,依据所得需求制定全面的建设方案。再者是对现有系统的整合——系统集成,确保新旧平台之间的互操作性和数据一致性。培训支持帮助全校教职工和学生快速熟悉新平台,提高效率。实施试点确保系统逐步稳定部署。最后,强调持续改进的重要性,以适应技术和环境变化。通过这一系列有序的工作,可以使智慧校园建设更为科学高效,减少失败风险。 适用人群:教育领域的决策者和技术人员,包括负责信息化建设和运维的团队成员。 使用场景及目标:用于指导高校和其他各级各类学校规划和发展自身的数字校园生态链;目的是建立更加便捷高效的现代化管理模式和服务机制。 其他说明:智慧校园不仅仅是简单的IT设施升级或软件安装,它涉及到全校范围内的流程再造和创新改革。
该文档系统梳理了人工智能技术在商业场景中的落地路径,聚焦内容生产、电商运营、智能客服、数据分析等12个高潜力领域,提炼出100个可操作性变现模型。内容涵盖AI工具开发、API服务收费、垂直场景解决方案、数据增值服务等多元商业模式,每个思路均配备应用场景拆解、技术实现路径及收益测算框架。重点呈现低代码工具应用、现有平台流量复用、细分领域自动化改造三类轻量化启动方案,为创业者提供从技术选型到盈利闭环的全流程参考。
palkert_3ck_02_0719
克鲁格曼专业化指数,最初是由Krugman于1991年提出,用于反映地区间产业结构的差异,也被用来衡量两个地区间的专业化水平,因而又称地区间专业化指数。该指数的计算公式及其含义可以因应用背景和具体需求的不同而有所调整,但核心都是衡量地区间的产业结构差异或专业化程度。 指标 年份、城市、第一产业人数(first_industry1)、第二产业人数(second_industry1)、第三产业人数(third_industry1)、专业化指数(ksi)。
AB PLC例程代码项目案例 【备注】 1、该资源内项目代码都经过测试运行成功,功能ok的情况下才上传的,请放心下载使用!有问题请及时沟通交流。 2、适用人群:计算机相关专业(如计科、信息安全、数据科学与大数据技术、人工智能、通信、物联网、自动化、电子信息等)在校学生、专业老师或者企业员工下载使用。 3、用途:项目具有较高的学习借鉴价值,不仅适用于小白学习入门进阶。也可作为毕设项目、课程设计、大作业、初期项目立项演示等。 4、如果基础还行,或热爱钻研,亦可在此项目代码基础上进行修改添加,实现其他不同功能。 欢迎下载!欢迎交流学习!不清楚的可以私信问我!
精品推荐,通信技术LTE干货资料合集,19份。 LTE PCI网络规划工具.xlsx LTE-S1切换占比专题优化分析报告.docx LTE_TDD问题定位指导书-吞吐量篇.docx LTE三大常见指标优化指导书.xlsx LTE互操作邻区配置核查原则.docx LTE信令流程详解指导书.docx LTE切换问题定位指导一(定位思路和问题现象).docx LTE劣化小区优化指导手册.docx LTE容量优化高负荷小区优化指导书.docx LTE小区搜索过程学习.docx LTE小区级与邻区级切换参数说明.docx LTE差小区处理思路和步骤.docx LTE干扰日常分析介绍.docx LTE异频同频切换.docx LTE弱覆盖问题分析与优化.docx LTE网优电话面试问题-应答技巧.docx LTE网络切换优化.docx LTE高负荷小区容量优化指导书.docx LTE高铁优化之多频组网优化提升“用户感知,网络价值”.docx
matlab程序代码项目案例 【备注】 1、该资源内项目代码都经过测试运行成功,功能ok的情况下才上传的,请放心下载使用!有问题请及时沟通交流。 2、适用人群:计算机相关专业(如计科、信息安全、数据科学与大数据技术、人工智能、通信、物联网、自动化、电子信息等)在校学生、专业老师或者企业员工下载使用。 3、用途:项目具有较高的学习借鉴价值,不仅适用于小白学习入门进阶。也可作为毕设项目、课程设计、大作业、初期项目立项演示等。 4、如果基础还行,或热爱钻研,亦可在此项目代码基础上进行修改添加,实现其他不同功能。 欢迎下载!欢迎交流学习!不清楚的可以私信问我!
pepeljugoski_01_0508
szczepanek_01_0308
oif2007.384.01_IEEE
stone_3ck_01_0119
oganessyan_01_1107