docker top docker-compose top odoo docker inspect -f '{{.State.Pid}}' <container id> docker inspect -f '{{.State.Pid}}' gerner_odoo_1
the process run in a docker container is a child of a process named containerd-shim (in Docker v18.09.4)
docker top docker-compose top odoo docker inspect -f '{{.State.Pid}}' <container id> docker inspect -f '{{.State.Pid}}' gerner_odoo_1
the process run in a docker container is a child of a process named containerd-shim (in Docker v18.09.4)
sudo su cd /opt/ sudo wget https://www-us.apache.org/dist/maven/maven-3/3.5.4/binaries/apache-maven-3.5.4-bin.tar.gz tar -xvzf apache-maven-3.5.4-bin.tar.gz mv apache-maven-3.6.0 maven
# docker-compose aliases | |
### How to install/use it | |
1. `curl -ko $HOME/.bash_aliases-docker-compose https://gist.githubusercontent.com/jodumont/d8ade3ab173700e3369f04fbe0334fde/raw/ced78642a5682e7ec6ee7fc89367b929ef35f366/bash_aliases-docker-compose` | |
2. `echo -e "\nif [ -f ~/.bash_aliases-docker-compose ]; then \n. ~/.bash_aliases-docker-compose\nfi" >> $HOME/.bashrc` | |
3. `. $HOME/.bashrc` | |
## dcu == Docker-Compose Up | |
alias dcu="docker-compose up -d --remove-orphans" | |
## dcl == Docker-Compose Logs |
First things first, I want to use ag to search through my project files. Coming from fzf, I like to have two bindings for this -- one that respects my projects .gitignore
and one that does not. The latter is helpful if I want to examine a built file or look at a node_module dependency while working on my js project.
I use an alias for file_rec
source to toggle the -u
flag on ag
. Now, <C-P>
searches in my git files, and <C-O>
searches everything.
" denite file search (c-p uses gitignore, c-o looks at everything)
map <C-P> :DeniteProjectDir -buffer-name=git -direction=top file_rec/git<CR>
map :DeniteProjectDir -buffer-name=files -direction=top file_rec
[TOC]
docker run -d -e POSTGRES_USER=odoo -e POSTGRES_PASSWORD=odoo --name db-insurance postgres:9.5 docker run \ -e ODOO_MASTER_PASS=admin \ -v /home/ildar/10/addons-dev-insurance:/mnt/addons/it-projects-llc/misc-addons \ -p 12069:8069 \ -p 12072:8072 \ --name insurance \
server { | |
listen 80; | |
#rewrite ^/.*$ https://$host$request_uri? permanent; #Uncomment this line in case you want to use https only | |
server_name NGINX_SERVER_DOMAIN; | |
include odoo_params; | |
location /longpolling { | |
proxy_pass http://SERVER_HOST:8072; | |
} |
# | |
su | |
# ivann + general | |
mkdir /root/.ssh | |
curl --silent https://github.com/yelizariev.keys | xargs echo -n >> /root/.ssh/authorized_keys | |
echo -ne " [email protected]\n" >> /root/.ssh/authorized_keys | |
sed -i 's/PermitRootLogin no/PermitRootLogin without-password # changed by Ivan Yelizariev from value "no"/' /etc/ssh/sshd_config |
""" | |
Setup: | |
Assuming Odoo 8.0 sources at ~/odoo: | |
$ cp odoo-sh.py ~/odoo | |
$ cd ~/odoo | |
$ python -i odoo-sh.py | |
Usage example: | |
>>> env = connect('my-db-name') | |
>>> Users = env['res.users'] |
Use instruction in the following order: | |
1. postgresql_9.4_install_bdr_extension.rst | |
2. prepare_databases_for_odoo.rst | |
3. prepare_odoo.rst | |
4. ir_attachment_force_storage_module.rst |