- 浏览: 2564607 次
- 性别:
- 来自: 成都
-
最新评论
-
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 Docker Registry Harbor(2)Jenkins with Harbor
Add the self private registry
> sudo vi /etc/docker/daemon.json
{
"insecure-registries": [“52.13.xx.xxx:49002"]
}
Try to docker login there
Error saving credentials: error storing credentials - err: exit status 1, out: `Cann ...
Java Wait and Blocking and Callback
Java Memory
> java -XX:+PrintFlagsFinal -version | grep MaxHeapSize
References:
https://github.com/awaitility/awaitility
https://blog.csdn.net/hj7jay/article/details/55094639
https://grokonez.com/java-integration/work-spring-callable-controller
https://www.by ...
Private Docker Registry Harbor(1)Installation and Configuration
Docker register 2
https://docs.docker.com/registry/deploying/
https://hub.docker.com/r/konradkleine/docker-registry-frontend/
https://docs.docker.com/registry/
Harbor is using registry v2 under line.
http://www.ywnds.com/?p=7958
Install ...
SpringBoot 2 and CXF Happy Hour
First of all, the based core configuration pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=& ...
SpringBoot 2 and Spring WS Happy Hour
We can always generate a project from here https://start.spring.io/
Generate Source Command
> mvn generate-sources
Annotation @SpringBootApplication is convenience annotation that adds:
@Configuration, @EnableAutoConfiguration and @ComponentScan
I set up an ...
SpringBoot 2 and Axis 2 Happy Together
Here is my JAVA HOME directory
> /Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/jre/lib
Here is the JAVA HOME directory for ubuntu
> /usr/lib/jvm/java-8-openjdk-amd64/jre/lib
Here is the content I put there
> cat jaxp.properties
java ...
Jenkins Pipeline Deployment
Command to download the binary to directory
> wget --user yiyikang --password xxxxxxx http://webapi-dev.sillycat.com:49001/artifactory/libs-snapshot-local/com/sillycat/netsuiteconnector/1.0/netsuiteconnector-1.0.1-bundle.tar.gz
Unzip the file to target directory
> s ...
Jfroge Artifactory 2018 and Docker
Here is the Makefile to show us how to run the docker application
PORT=8081
IMAGE=docker.bintray.io/jfrog/artifactory-oss
TAG=latest
NAME=artifactory-$(PORT)
run:
docker run \
-d \
-p $(PORT):8081 \
-v $(shell pwd)/artifactory-data:/var/opt/jfrog/a ...
SpringBoot and Maven Release Package
Here is how the project release a tar.gz file for me including the scripts
Here is the important pom.xml parts
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven ...
DNS Resolver on Server
DNS - Domain Name System
Resolver Service can translate domain names to IP address. Usually ISP (Internet Service Provider) provides these settings automatically.
Famous public DNS
CloudFlare 1.1.1.1
Google. 8.8.8.8
Cisco. 208.67.222.222
Check my configuration file on MAC
> ...
Limit the SFTP User to One Directory
Modify the configuration
> sudo vi /etc/ssh/sshd_config
#Subsystem sftp /usr/lib/openssh/sftp-server
Subsystem sftp internal-sftp
#UsePAM yes
#PasswordAuthentication yes
Match Group movie
ChrootDirectory /opt/public
ForceCommand internal-sftp
X11Forwarding no
A ...
ActiveMQ and Java Consumer
Start My Local Server from Console
> bin/activemq console
We can visit the Web Console then
http://127.0.0.1:8161/admin/
Default username/password is admin/admin. We can view and check the Queues.
The project name is activemq-consumer
The pom.xml is as follow:
<?xml ...
Enable HTTP2 in HAProxy
HTTP2
Request/response multiplexing.
Binary framing
Stream prioritization
Server push
Header compression
HTTP1.1 issues
Head-Of-Line Blocking: if we have a lot of resources(css, js, jpg), we will get one by one, and the fast one may be queued up waiting for the slow one.
Some ...
Jenkins 2019 in Docker(3)Blue Ocean and Pipeline
Enable Blue Ocean
‘Manage Jenkins’ -> ‘Manage Plugins’ -> ‘Available’ -> Check ‘Blue Ocean’ and ‘Download now and install after restart'
Restart Jenkins when installation is complete and no jobs are running.
Click the Button ‘Open Blue Ocean’ ...
Jenkins 2019 in Docker(2)Set Up Some Tools and Projects
Set Up User
Go to ‘Manage Jenkins’ —> ‘Configure Global Security’ —> enable sign up and give the user permissions one by one
Set Up Tools
Go to ‘Manage Jenkins’ —> ‘Global Tool Configuration’
I found I may need JDK 10 for Jenkins to su ...