How to Install Jenkins With Docker Compose

How to install Jenkins with docker compose Create Dockerfile With office jenkins docker images.change the jenkins mirrors and change alpine linux soure list to aliyun #DockerfileFROM jenkins/jenkins:alpineUSER rootENV JENKINS_MIRROR JENKINS_UC_DOWNLOAD=""RUN sed -i 's/' /etc/apk/repositories \&&apk update \&&apk add docker nodejs nodejs-npm yarnCreate docker-compose.yaml # docker-compose.yamlversion:"2.4"services:jenkins:build:./#image: jenkins/jenkins:alpinecontainer_name:jenkinsports:- "80:8080"- "50000:50000"environment:#- JAVA_OPTS=-Xmx1500m -Duser.timezone=GMT+8- JAVA_OPTS=-Duser.timezone=GMT+8- JENKINS_UC_DOWNLOAD= ./data/jenkins:/var/jenkins_home- /var/run/docker.sock:/var/run/docker.sock- /root/.ssh/:/root/.ssh- /etc/localtime:/etc/localtime:ro# cpus: 3.5# mem_limit: 1800muser:rootrestart:alwaysInstall Jenkins with Check initial Admin Password by run command

How to Install Gitlab With Docker-Compose

How to Install gitlab with docer-compose version:"3.5"services:gitlab:image:gitlab/gitlab-ce:latestcontainer_name:gitlabrestart:alwayshostname:'xa-gitlab'environment:GITLAB_OMNIBUS_CONFIG:|external_url 'http://xa-gitlab' gitlab_rails['backup_keep_time'] = 604800 gitlab_rails['time_zone'] = 'Asia/Shanghai' gitlab_rails['gitlab_shell_ssh_port'] = 1022 #gitlab_rails['ldap_enabled'] = true #gitlab_rails['ldap_servers'] = YAML.load <<-EOS #main: # label: 'LDAP' # host: '' # port: 389 # uid: 'uid' # bind_dn: 'CN=admin,DC=lotbrick,DC=com' # password: 'admin' # user_filter: 'objectclass=person' # base: 'ou=People,dc=xxxxx,dc=com' # active_directory: false # method: 'plain' # attributes: # username: ["cn"] # email: ['email'] # name: 'displayName' # first_name: 'givenName' #

How to Change Settings After Clone Debian 10 With Cloudinit Enable on Proxmox Ve

How to Change Settings After Clone Debian 10 With Cloudinit Enable on Proxmox VE Issue I found an issue about create a linux vm as a template with cloudinit enabled. Seem like after cloned the virtual machine, the cloud-init cd rom didn’t be created automatically. We need to delete it,then change setings again to apply the apt source. solution #!/usr/bin/env sh mv /etc/apt/sources.list /etc/apt/sources.list.backup wget -O /etc/apt/sources.list apt update && apt -y dist-upgrade apt install -y openssh-server git vim cloud-init apt-transport-https sed -i 's/http/https/g' /etc/apt/sources.

How to Install Elasticflow

How to install Elasticflow Today, i found a good software that is Elasticflow. It is so perfect for us to monitor status of our networking. So I tried to install it will docker-compose way. You know what, after servial hours, fixed a lot bugs it works. Download and modified docker-compose.yml for elasticflow # Download `docker-compose.yml` for elasticflow wget # version 3.5.2 is now existed. So we need change it to `3.

How to Deploy Cloud Images on Pve

How to Deploy Cloud Images on PVE To deploy cloud images on pve has a lot of benifit, for example, auto expand disk capicity, auto update and auto deploy virtual machine. How to deploy debian 10 colud image on pve I perfer to debian as my first choice between all of the linux distributes. since it has light footprinting and more stable.


Some tips for management proxmxo VE Force shutdown a vm #List all vm in pve qm list # qm unlock the specific vm qm unlock <vmid> # qm stop the specific vm qm stop <vmid> # qm shutdown the specific vm qm shutdown <vmid> # Check vm status qm list | grep <vmid>

How to Install and Configure Freeradius With Active Directory Allow Allow Specific Group of Users to Authenticate in Debian 10

How to install and configure FreeRADIUS with Active Directory allow specific group of users to authenticate in Debian 10 serval years ago,I built freeradius server in centos 6 work with active directory. It works perfect with wifi authortication and ikev2 vpn authortication. But recently days, I found a bug that the radius server can not limit user access to a group in AD. So I’m trying to build a new

How to Change Default Swap Settings for Proxmox Ve

How to change default swap settings for Proxmox VE Check Default swap policy from value 60 to 0 cat /proc/sys/vm/swappiness #default value is 60 , it means when the memory remain 60, the swap will be enable Change swap policy # Temp to change default swap enable when memory remain 0. sysctl vm.swappiness=0 # Permanent to change swapp cat << EOF >> /etc/sysctl.conf vm.swappiness=0 #apply settings sysctl -p # check cat /proc/sys/vm/swappiness Vacuum swap swapoff -a swapon -a

How to Setup Vyos as a Firewall

How to Setup Vyos as a Firewall Setup interface Interface IP Address Description eth0 pppoe WAN eth1 / 24 DMZ eth2 / 24 LAN set interface ethernet eth0 pppoe 0 user-id '<pppoe accout>' set interface ethernet eth0 pppoe 0 password '<pppoe password>' set interface ethernet eth0 pppoe 0 name-server 'none' set interface ethernet eth0 description 'WAN' set interface ethernet eth1 address 192.

How to Deploy Bookstack With Docker Compose

How to Deploy Bookstack with Docker Compose Bookstack is a good opensource solution for enterprie document management with light footprinting. It support auth like ldap,active directory,google,azure,aws,slack etc. and it can export document as pdf file. Preparation Install docker and docker-compose on debian 10 Information for bookstack installation. Type Value Hostname mybookstack Domainame mydomain.local AD Auth User stevedong Domain Controller IP <domain contoller IP> Time Zone Asia/Shanghai How to fix export chinese pdf document with error Install chinese fonts on docker server host apt install fonts-wqy-microhei fonts-wqy-zenhei xfonts-wqy customized dockerfile with option: environments:# To let bookstack export pdf with chinese language supported.

How to Configure Debian 10 as a Docker Server

How to configure debian 10 as a docker server After try to install docker in LXC with proxmox ve, there will be some issues to make docker stop working. At last, I gave up and brance pure linux as docker sever. Install debian 10 in promxox ve Configure deiban 10 vm with ‘qemu-agent’ checked. After install deiban 10 Change source list mv /etc/apt/sources.list /etc/apt/sources.list.backup wget -O /etc/apt/sources.list apt update && apt -y dist-upgrade apt install -y openssh-server git vim cloud-init apt-transport-https sed -i 's/http/https/g' /etc/apt/sources.

How to Modify Template in Proxmox Ve

How to Modify Template im Proxox VE Sometime I wonder how to convert template back to vm and modify it and convert it back to vm? Here is the solution Convert Template to VM Delete template: 1 in vm config. sed -i 's/template:\ 1//g' /etc/pve/qemu-server/{vm-id}.conf Change access permission of VM disk cd /var/lib/vz/images/1{VM-ID}/ chattr -i * chmod 755 * Then covert it back to template

Install Proxmox VE 6.x

Install Proxmox VE 6.x After installed Proxmox VE 6.x, What we gone do ? Download Proxmox VE 6.x iSO file in Download iso images from here: Fixe Perl error waring export LANGUAGE=en_US.UTF-8 export LANG=en_US.UTF-8 export LC_ALL=en_US.UTF-8 #locale-gen en_US.UTF-8 cat >> /etc/environment <<EOF LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 EOF Disable subscription Warning Disable subscription warning via script below 6.3 sed -i.bak "s/data.status !== 'Active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service Manually disable subscription warning cd /usr/share/javascript/proxmox-widget-toolkit cp proxmoxlib.

How to upgrade RHEL6 with yum repo of centos

How to upgrade RHEL6 with yum repo of centos Today I will show you how to setup rhel6 at proxmox VE. After installed REHL6.8,We didn’t have RHEL subscription,but how to get update and install software via yum ? The right answer is to change yum repo. Fix perl error export LANGUAGE=en_US.UTF-8 export LANG=en_US.UTF-8 export LC_ALL=en_US.UTF-8 #locale-gen en_US.UTF-8 cat >> /etc/environment <<EOF LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 EOF Disable RHEL subsription subscription-manager config --rhsm.manage_repos=0 Chang yum repo to Centos 6 delete rhel yum software rpm -qa | grep yum rpm -qa | grep yum | xargs rpm -e --nodeps Download centos yum software mkdir -p /tmp/yum cd /tmp/yum wget http://mirrors.

How to Setup Cloud Init in Proxmoxve

How to setup cloud-init in prxmox ve Cloud-init can help us to deploy or change settings of linux virutal machine via api or manually by ourself. There are two ways to setup cloud-init: command line or change settings in GUI. Option 1: Download cloud-init image and setup with shell Please reference my blog Build Ubuntu 18.04 server with cloudinit support Option 2: Manually Setup cloud-init We can do this with 2 steps.