update docker openstack vim

This commit is contained in:
light jiang 2018-12-27 15:39:57 +08:00
parent 9aed47964e
commit e45e80c419
5 changed files with 53 additions and 46 deletions

View File

@ -53,3 +53,13 @@ reboot # or relogin
```
```bash
sudo apt install docker.io
sudo systemctl start docker
sudo systemctl enable docker
sudo adduser $USER docker
```

8
docker/gitlite.md Normal file
View File

@ -0,0 +1,8 @@
# normal
## add git user
```bash
useradd -ms /bin/bash git
```

7
openstack/docker.md Normal file
View File

@ -0,0 +1,7 @@
# deploy with docker
```bash
docker run -dit --privileged --cap-add=ALL --network=host --name=controller -h controller -v /lib/modules:/lib/modules openstack_base:rocky_ovs
docker run -dit --privileged --cap-add=ALL --network=host --name=compute -h compute -v /lib/modules:/lib/modules openstack_compute:rocky_ovs
```

21
openstack/ovs.md Normal file
View File

@ -0,0 +1,21 @@
# open vswitch
## install
```bash
git clone https://github.com/openvswitch/ovs.git
cd ovs
git checkout v2.7.0
sudo apt-get install git autoconf automake libtool openssl libssl-dev make python-six -y
./boot.sh
./configure
make
sudo make install
sudo modprobe openvswitch
```

View File

@ -34,9 +34,9 @@ import os
import subprocess
import ycm_core
project_path = os.path.abspath(os.path.dirname(__file__))
DIR_OF_THIS_SCRIPT = "/home/light/.vim/bundle/YouCompleteMe"
DIR_OF_THIRD_PARTY = os.path.join(DIR_OF_THIS_SCRIPT, 'third_party')
# DIR_OF_THIS_SCRIPT = "/home/light/.vim/bundle/YouCompleteMe/third_party/ycmd"
# DIR_OF_THIRD_PARTY = os.path.join(DIR_OF_THIS_SCRIPT, 'third_party')
DIR_OF_THIS_SCRIPT = os.path.abspath(os.path.dirname(__file__))
SOURCE_EXTENSIONS = ['.cpp', '.cxx', '.cc', '.c', '.m', '.mm']
# These are the compilation flags that will be used in case there's no
@ -60,34 +60,12 @@ flags = [
# For a C project, you would set this to 'c' instead of 'c++'.
'-x',
'c++',
'-isystem',
'cpp/pybind11',
'-isystem',
'cpp/BoostParts',
'-isystem',
get_python_inc(),
'-isystem',
'cpp/llvm/include',
'-isystem',
'cpp/llvm/tools/clang/include',
'-I',
'cpp/ycm',
'/usr/include',
'-isystem',
'includes',
'-I',
'cpp/ycm/ClangCompleter',
'-isystem',
'cpp/ycm/tests/gmock/gtest',
'-isystem',
'cpp/ycm/tests/gmock/gtest/include',
'-isystem',
'cpp/ycm/tests/gmock',
'-isystem',
'cpp/ycm/tests/gmock/include',
'-isystem',
'cpp/ycm/benchmarks/benchmark/include',
'-isystem',
project_path + '/includes',
'-I',
project_path + '/src',
'src',
]
# Clang automatically sets the '-std=' flag to 'c++14' for MSVC 2015 or later,
@ -202,21 +180,4 @@ def PythonSysPath(**kwargs):
sys_path.insert(0, DIR_OF_THIS_SCRIPT)
for folder in os.listdir(DIR_OF_THIRD_PARTY):
if folder == 'python-future':
folder = os.path.join(folder, 'src')
sys_path.insert(GetStandardLibraryIndexInSysPath(sys_path) + 1,
os.path.realpath(os.path.join(DIR_OF_THIRD_PARTY,
folder)))
continue
if folder == 'cregex':
interpreter_path = kwargs['interpreter_path']
major_version = subprocess.check_output([
interpreter_path, '-c', 'import sys; print( sys.version_info[ 0 ] )']
).rstrip().decode('utf8')
folder = os.path.join(folder, 'regex_{}'.format(major_version))
sys_path.insert(0, os.path.realpath(os.path.join(DIR_OF_THIRD_PARTY,
folder)))
return sys_path