Preparar diretórios.
sudo su rm -rf /d/shared/shap/nfe rm -rf /d/shared/erp-shapeness/report rm -rf /d/shared/erp-shapeness/xmlDanfe rm -rf /d/shared/shap/bancos rm -rf /d/shared/shap/export rm -rf /d/shared/shap/xmlDanfe rm -rf /d/shared/shap/report rm -rf /d/shared/shap/pedido mkdir -p /d/shared/shap/nfe mkdir -p /d/shared/erp-shapeness/report mkdir -p /d/shared/erp-shapeness/xmlDanfe mkdir -p /d/shared/shap/bancos mkdir -p /d/shared/shap/export mkdir -p /d/shared/shap/pedido mkdir -p /d/shared/shap/sda mkdir -p /d/shared/shap/temp2 mkdir -p /d/shared/shap/ctg mkdir -p /d/shared/shap/tmp2 mkdir -p /d/shared/shap/men mkdir -p /d/shared/shap/cnt mkdir -p /d/shared/shap/tela mkdir -p /d/shared/shap/fat mkdir -p /d/shared/shap/sdv mkdir -p /d/shared/shap/xml mkdir -p /d/shared/shap/cpt mkdir -p /d/shared/shap/sor mkdir -p /d/shared/shap/scc mkdir -p /d/shared/shap/lvf mkdir -p /d/shared/shap/cxp mkdir -p /d/shared/shap/ctb mkdir -p /d/shared/shap/cst mkdir -p /d/shared/shap/rels mkdir -p /d/shared/shap/sof mkdir -p /d/shared/shap/rebu mkdir -p /d/shared/shap/mon mkdir -p /d/shared/shap/car mkdir -p /d/shared/shap/tpr mkdir -p /d/shared/shap/ecf mkdir -p /d/shared/shap/ctr mkdir -p /d/shared/shap/cap mkdir -p /d/shared/shap/nfe mkdir -p /d/shared/shap/nfe mkdir -p /d/shared/shap/scl mkdir -p /d/shared/shap/sha mkdir -p /d/shared/shap/tmp mkdir -p /d/shared/shap/sge mkdir -p /d/shared/shap/com mkdir -p /d/shared/shap/cci mkdir -p /d/shared/shap/vmc mkdir -p /d/shared/shap/man mkdir -p /d/shared/shap/fpg mkdir -p /d/shared/shap/sfo mkdir -p /d/shared/shap/files mkdir -p /d/shared/shap/files/logsExt mkdir -p /d/shared/shap/files/logs mkdir -p /d/shared/shap/files/procs mkdir -p /d/shared/shap/files/pid mkdir -p /d/shared/shap/report mkdir -p /d/shared/shap/ces mkdir -p /d/shared/shap/export mkdir -p /d/shared/shap/import mkdir -p /d/shared/shap/mcs mkdir -p /d/shared/shap/scv mkdir -p /d/shared/shap/temp mkdir -p /d/shared/sys-logs mkdir -p /d/shared/isxml mkdir -p /d/shared/shap mkdir -p /d/shared/erp-enllevo mkdir -p /d/shared/config mkdir -p /d/shared/isclasses mkdir -p /d/shared/scriptcase mkdir -p /d/shared/isclassesWeb mkdir -p /d/shared/erp-shapeness mkdir -p /d/shared/erp-webssh mkdir -p /d/shared/sys-tmp mkdir -p /d/shared/erp-webapps mkdir -p /d/shared/erp-persistentline mkdir -p /d/shared/erp-shapeness/files mkdir -p /d/shared/erp-shapeness/xmlDanfe mkdir -p /d/shared/erp-enllevo/storage/
Copiar arquivos de /u/ para /d/shared
cp -rfa /u/shap/nfe/* /d/shared/shap/nfe/ cp -rfa /u/shap/report/* /d/shared/erp-shapeness/report/ cp -rfa /u/shap/xmlDanfe/* /d/shared/erp-shapeness/xmlDanfe/ cp -rfa /u/shap/bancos/* /d/shared/shap/bancos/ cp -rfa /u/shap/export/* /d/shared/shap/export/ cp -rfa /u/shap/pedido/* /d/shared/shap/pedido/ cp -rfa /u/shap/files/* /d/shared/shap/files/ cp -rfa /u/erp-enllevo/storage/oauth-p* /d/shared/erp-enllevo/storage/ cp -rfa /u/config/isco* /d/shared/config/ cp -rfa /u/shap/ADISCTRL /d/shared/shap/ cp -rfa /u/shap/adisctrl /d/shared/shap/ cp -rfa /u/shap/cap/capselecao /d/shared/shap/cap/ cp -rfa /u/shap/cap/capselecao.idx /d/shared/shap/cap/ cp -rfa /u/shap/car/arqsel* /d/shared/shap/car/ cp -rfa /u/shap/car/fcarft01 /d/shared/shap/car/ cp -rfa /u/shap/car/fcarft01.idx /d/shared/shap/car/ cp -rfa /u/shap/car/fcarft02 /d/shared/shap/car/ cp -rfa /u/shap/car/fcarft02.idx /d/shared/shap/car/ cp -rfa /u/shap/car/fcarft05 /d/shared/shap/car/ cp -rfa /u/shap/car/fcarft05.idx /d/shared/shap/car/ cp -rfa /u/shap/car/fcarlg01 /d/shared/shap/car/ cp -rfa /u/shap/car/fcarlg01.idx /d/shared/shap/car/ cp -rfa /u/shap/car/fcarlg02 /d/shared/shap/car/ cp -rfa /u/shap/car/fcarlg02.idx /d/shared/shap/car/ cp -rfa /u/shap/car/fcarlg04 /d/shared/shap/car/ cp -rfa /u/shap/car/fcarlg04.idx /d/shared/shap/car/ cp -rfa /u/shap/car/fcarlg05 /d/shared/shap/car/ cp -rfa /u/shap/car/fcarlg05.idx /d/shared/shap/car/ cp -rfa /u/shap/cci/sccdin00 /d/shared/shap/cci/ cp -rfa /u/shap/cci/sccdin00.idx /d/shared/shap/cci/ cp -rfa /u/shap/ces/cessgc01 /d/shared/shap/ces/ cp -rfa /u/shap/ces/cessgc01.idx /d/shared/shap/ces/ cp -rfa /u/shap/ces/cessgc02 /d/shared/shap/ces/ cp -rfa /u/shap/ces/cessgc02.idx /d/shared/shap/ces/ cp -rfa /u/shap/ces/cessgc04 /d/shared/shap/ces/ cp -rfa /u/shap/ces/cessgc04.idx /d/shared/shap/ces/ cp -rfa /u/shap/ces/cessgc05 /d/shared/shap/ces/ cp -rfa /u/shap/ces/cessgc05.idx /d/shared/shap/ces/ cp -rfa /u/shap/ces/itesel01 /d/shared/shap/ces/ cp -rfa /u/shap/ces/itesel01.idx /d/shared/shap/ces/ cp -rfa /u/shap/ces/itesel02 /d/shared/shap/ces/ cp -rfa /u/shap/ces/itesel02.idx /d/shared/shap/ces/ cp -rfa /u/shap/ces/itesel04 /d/shared/shap/ces/ cp -rfa /u/shap/ces/itesel04.idx /d/shared/shap/ces/ cp -rfa /u/shap/ces/itesel05 /d/shared/shap/ces/ cp -rfa /u/shap/ces/itesel05.idx /d/shared/shap/ces/ cp -rfa /u/shap/cobctrbr.dle /d/shared/shap/cobctrbr.dle cp -rfa /u/shap/cobkeymp /d/shared/shap/cobkeymp cp -rfa /u/shap/ctb/ctblog* /d/shared/shap/ctb/ cp -rfa /u/shap/ctr/ctridi01 /d/shared/shap/ctr/ cp -rfa /u/shap/ctr/ctridi01.idx /d/shared/shap/ctr/ cp -rfa /u/shap/ctr/ctridi02 /d/shared/shap/ctr/ cp -rfa /u/shap/ctr/ctridi02.idx /d/shared/shap/ctr/ cp -rfa /u/shap/ctr/ctridi04 /d/shared/shap/ctr/ cp -rfa /u/shap/ctr/ctridi04.idx /d/shared/shap/ctr/ cp -rfa /u/shap/ctr/ctridi05 /d/shared/shap/ctr/ cp -rfa /u/shap/ctr/ctridi05.idx /d/shared/shap/ctr/ cp -rfa /u/shap/ctrtela.dle /d/shared/shap/ctrtela.dle cp -rfa /u/shap/extfh.cfg /d/shared/shap/extfh.cfg cp -rfa /u/shap/fat/fatici01 /d/shared/shap/fat/ cp -rfa /u/shap/fat/fatici02 /d/shared/shap/fat/ cp -rfa /u/shap/fat/fatici04 /d/shared/shap/fat/ cp -rfa /u/shap/fat/fatici05 /d/shared/shap/fat/ cp -rfa /u/shap/fat/faticm01 /d/shared/shap/fat/ cp -rfa /u/shap/fat/faticm02 /d/shared/shap/fat/ cp -rfa /u/shap/fat/faticm04 /d/shared/shap/fat/ cp -rfa /u/shap/fat/faticm05 /d/shared/shap/fat/ cp -rfa /u/shap/fat/vtec00201 /d/shared/shap/fat/ cp -rfa /u/shap/fat/vtec00201.idx /d/shared/shap/fat/ cp -rfa /u/shap/fat/vtec16902 /d/shared/shap/fat/ cp -rfa /u/shap/fat/vtec16902.idx /d/shared/shap/fat/ cp -rfa /u/shap/fat/vtec23001 /d/shared/shap/fat/ cp -rfa /u/shap/fat/vtec23001.idx /d/shared/shap/fat/ cp -rfa /u/shap/fat/vtes00201 /d/shared/shap/fat/ cp -rfa /u/shap/fat/vtes00201.idx /d/shared/shap/fat/ cp -rfa /u/shap/fat/vtes25401 /d/shared/shap/fat/ cp -rfa /u/shap/fat/vtes25401.idx /d/shared/shap/fat/ cp -rfa /u/shap/man/* /d/shared/shap/man/ cp -rfa /u/shap/mcs/mcssax04 /d/shared/shap/mcs/ cp -rfa /u/shap/mcs/mcssax04.idx /d/shared/shap/mcs/ cp -rfa /u/shap/mcs/mcssax05 /d/shared/shap/mcs/ cp -rfa /u/shap/mcs/mcssax05.idx /d/shared/shap/mcs/ cp -rfa /u/shap/men/ctracs /d/shared/shap/men/ cp -rfa /u/shap/men/ctracs.idx /d/shared/shap/men/ cp -rfa /u/shap/men/ctrcdr /d/shared/shap/men/ cp -rfa /u/shap/men/ctrcdr.idx /d/shared/shap/men/ cp -rfa /u/shap/men/ctrcli /d/shared/shap/men/ cp -rfa /u/shap/men/ctrcli.idx /d/shared/shap/men/ cp -rfa /u/shap/men/ctrcma /d/shared/shap/men/ cp -rfa /u/shap/men/ctrcma.idx /d/shared/shap/men/ cp -rfa /u/shap/men/ctrdbg /d/shared/shap/men/ cp -rfa /u/shap/men/ctrhlp /d/shared/shap/men/ cp -rfa /u/shap/men/ctrhlp.idx /d/shared/shap/men/ cp -rfa /u/shap/men/ctrima /d/shared/shap/men/ cp -rfa /u/shap/men/ctrima.idx /d/shared/shap/men/ cp -rfa /u/shap/men/ctrlua /d/shared/shap/men/ cp -rfa /u/shap/men/ctrlua.idx /d/shared/shap/men/ cp -rfa /u/shap/men/ctrmdp /d/shared/shap/men/ cp -rfa /u/shap/men/ctrmdp.idx /d/shared/shap/men/ cp -rfa /u/shap/men/ctrmpe /d/shared/shap/men/ cp -rfa /u/shap/men/ctrmpe.idx /d/shared/shap/men/ cp -rfa /u/shap/men/ctrmpewb /d/shared/shap/men/ cp -rfa /u/shap/men/ctrmpewb.idx /d/shared/shap/men/ cp -rfa /u/shap/men/ctrprg /d/shared/shap/men/ cp -rfa /u/shap/men/ctrprg.idx /d/shared/shap/men/ cp -rfa /u/shap/men/ctrsen /d/shared/shap/men/ cp -rfa /u/shap/men/ctrsen.idx /d/shared/shap/men/ cp -rfa /u/shap/men/ctrsenwb /d/shared/shap/men/ cp -rfa /u/shap/men/ctrsenwb.idx /d/shared/shap/men/ cp -rfa /u/shap/men/ctrtar.idx /d/shared/shap/men/ cp -rfa /u/shap/men/ctrusr /d/shared/shap/men/ cp -rfa /u/shap/men/ctrusr.idx /d/shared/shap/men/ cp -rfa /u/shap/men/ctrusrwb /d/shared/shap/men/ cp -rfa /u/shap/men/ctrusrwb.idx /d/shared/shap/men/ cp -rfa /u/shap/men/pdsess /d/shared/shap/men/ cp -rfa /u/shap/men/pdsess.idx /d/shared/shap/men/ cp -rfa /u/shap/mon/* /d/shared/shap/mon/ cp -rfa /u/shap/nfe/* /d/shared/shap/nfe/ cp -rfa /u/shap/rel/* /d/shared/shap/rel/ cp -rfa /u/shap/report/* /d/shared/shap/report/ cp -rfa /u/shap/scl/sclabd /d/shared/shap/scl/ cp -rfa /u/shap/scl/scldcc /d/shared/shap/scl/ cp -rfa /u/shap/scl/scldcc.idx /d/shared/shap/scl/ cp -rfa /u/shap/sda/sdaven01 /d/shared/shap/sda/ cp -rfa /u/shap/sda/sdaven01.idx /d/shared/shap/sda/ cp -rfa /u/shap/sda/sdaven02 /d/shared/shap/sda/ cp -rfa /u/shap/sda/sdaven02.idx /d/shared/shap/sda/ cp -rfa /u/shap/sda/sdaven03 /d/shared/shap/sda/ cp -rfa /u/shap/sda/sdaven03.idx /d/shared/shap/sda/ cp -rfa /u/shap/sda/sdaven04 /d/shared/shap/sda/ cp -rfa /u/shap/sda/sdaven04.idx /d/shared/shap/sda/ cp -rfa /u/shap/sda/sdaven05 /d/shared/shap/sda/ cp -rfa /u/shap/sda/sdaven05.idx /d/shared/shap/sda/ cp -rfa /u/shap/sfo/sfoabd /d/shared/shap/sfo/ cp -rfa /u/shap/sof/sofoap /d/shared/shap/sof/ cp -rfa /u/shap/sof/sofoap.idx /d/shared/shap/sof/
Criar link simbólico no container WEBSSH
sudo su
cd /d
docker-compose exec webssh bash
sudo su
ln -s /u/erp-shapeness/report /u/shap/report
ln -s /u/erp-shapeness/xmlDanfe /u/shap/xmlDanfe
Conteúdo do script chama para Docker
#Mover script antigo para old mv /usr/bin/chama /usr/bin/oldchama #criar novo chama echo -e '#!/bin/bash\nclear\ncd /d/\necho "\033[04;37;44m entrando no Docker container "webssh" e acessando chama !!"\necho "ao teclar ESC no chama este script saira do Docker!!\033[0;m"\nsleep 2\nsudo docker-compose exec webssh sh -c 'chama'' > /usr/bin/chama chmod 755 /usr/bin/chama
Alterar configuração do samba para nova estrutura
sed -i 's|/u/shap/export|/d/shared/shap/export|g' /etc/samba/smb.conf
sed -i 's|/u/shap/nfe|/d/shared/shap/nfe|g' /etc/samba/smb.conf
sed -i 's|/u/shap/report|/d/shared/erp-shapeness/report|g' /etc/samba/smb.conf
sed -i 's|/u/shap/xmlDanfe|/d/shared/erp-shapeness/xmlDanfe|g' /etc/samba/smb.conf
sed -i 's|/u/shap/bancos|/d/shared/shap/bancos|g' /etc/samba/smb.conf
sed -i 's|/u/shap/pedido|/d/shared/shap/pedido|g' /etc/samba/smb.conf
Erro durante instalação dos containers Docker ERP
Obs.: Caso ocorra erro no download dos pacotes, será necessário o envio de todos pacotes contidos em:
X:\releases_dbmaker\pacotes_site_docker
estes deverão ser enviados para a pasta raiz do apache, geralmente :
/var/www/html/
alterar o arquivo abaixo para instalação local
arquivo: /d/docker-compose.yml
abaixo, conteudo a ser alterado:
iscobol: build: context: ./docker/iscobol
args:
DBMAKER_URL: http://localhost/downloads/dbmaker-5.4.3-Linux2.x86_64. tar.gz?v=20210127
ISCOBOL_URL: http://localhost/downloads/isCOBOL_2021_R1_1041_6_20210 604_31957_Linux.64.x86_64.tar.gz container_name: iscobol