devops

이미지
## install tomcat   [root@localhost opt]# tar -zxvf apache-tomcat-9.0.54.tar.gz apache-tomcat-9.0.54/conf/ apache-tomcat-9.0.54/conf/catalina.policy apache-tomcat-9.0.54/conf/catalina.properties apache-tomcat-9.0.54/conf/context.xml ## setup tomcat (manager gui) [root@localhost apache-tomcat-9.0.54]# cat conf/tomcat-users.xml   <role rolename="admin"/> <role rolename="admin-gui"/> <role rolename="admin-script"/> <role rolename="manager"/> <role rolename="manager-gui"/> <role rolename="manager-script"/> <role rolename="manager-jmx"/> <role rolename="manager-status"/> <user username="admin" password="admin" roles="admin,manager,admin-gui,admin-script,manager-gui,manager-script,manager-jmx,manager-status" />   ## setup tomcat (access) [root@localhost apache-tomcat-9.0.54]# cat webapps/manager/META-INF/context...

nexus bulk upload

이미지
## prepare script   [root@localhost repository]# wget https://raw.githubusercontent.com/sonatype-nexus-community/nexus-repository-import-scripts/master/mavenimport.sh --2021-10-13 15:03:50-- https://raw.githubusercontent.com/sonatype-nexus-community/nexus-repository-import-scripts/master/mavenimport.sh Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.111.133, 185.199.109.133, 185.199.108.133, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.111.133|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 663 [text/plain] Saving to: ‘mavenimport.sh.1’ 100%[=================================================================================================>] 663 --.-K/s in 0s 2021-10-13 15:03:51 (73.4 MB/s) - ‘mavenimport.sh.1’ saved [663/663] ## setup  gitlab-runner  [root@localhost repository]# ./mavenimport.sh -u admin -p admin -r http://192.168.0.140:8081/repository/maven-releases/ -r...

make local repository with nexus

## prepare setup   [root@localhost ~]# mkdir /data ## install  nexus  [root@localhost ~]# docker run -d -p 8081:8081 -p 5000:5000 --name nexus -v /data:/nexus-data sonatype/nexus3 Unable to find image 'sonatype/nexus3:latest' locally latest: Pulling from sonatype/nexus3 262268b65bd5: Pull complete 06038631a24a: Pull complete c627eca14741: Pull complete 3d019b6bc809: Pull complete 31c9adf1be12: Pull complete Digest: sha256:72f00df032f0fbc6b6769db00bf7b2737ab105fc18fd4e4a2fc6962f70e90bda Status: Downloaded newer image for sonatype/nexus3:latest bfbba37c471b69b62b8f9dbf4eccb78cf64906fc87df6e270806525800a92cdf [root@localhost ~]# ## login  nexus  bash-4.4$ cat /nexus-data/admin.password 0b48b968-d0c7-424d-a2db-19eaae1f6622bash-4.4$ bash-4.4$ ## login  nexus  <?xml version="1.0" encoding="UTF-8"?> <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="...

change gitlab's external domain

## change domain # external_url 'GENERATED_EXTERNAL_URL' external_url "http://git.gnoti.com" ## reconfig  [root@gitmain ~]# docker exec -it gitlab /bin/bash root@gitlab:/# vi /etc/gitlab/gitlab.rb root@gitlab:/# gitlab-ctl reconfigure Starting Chef Infra Client, version 15.17.4 resolving cookbooks for run list: ["gitlab-ee"] Synchronizing Cookbooks:   - gitlab-ee (0.0.1)   - package (0.1.0)  

install kochat

## install kochat   (base) root@rasa-virtual-machine:~/kochat/demo# pip3 install kochat Requirement already satisfied: kochat in /root/anaconda3/lib/python3.8/site-packages (1.0.3) Requirement already satisfied: pytorch-crf==0.7.2 in /root/anaconda3/lib/python3.8/site-packages (from kochat) (0.7.2) Requirement already satisfied: pandas==1.0.4 in /root/anaconda3/lib/python3.8/site-packages (from kochat) (1.0.4) Requirement already satisfied: flask==1.1.2 in /root/anaconda3/lib/python3.8/site-packages (from kochat) (1.1.2) Requirement already satisfied: konlpy==0.5.2 in /root/anaconda3/lib/python3.8/site-packages (from kochat) (0.5.2) Requirement already satisfied: joblib==0.15.1 in /root/anaconda3/lib/python3.8/site-packages (from kochat) (0.15.1) Requirement already satisfied: requests==2.24.0 in /root/anaconda3/lib/python3.8/site-packages (from kochat) (2.24.0) Requirement already satisfied: matplotlib==3.2.1 in /root/anaconda3/lib/python3.8/site-packages (from kochat) (3.2.1) Req...

Missing (or bad) header file: zlib.h

  ## error occurred (Duckling)  Process exited with code: ExitFailure 1 Logs have been written to: /root/duckling/.stack-work/logs/zlib-0.6.2.1.log Configuring zlib-0.6.2.1... Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5: Missing dependency on a foreign library: * Missing (or bad) header file: zlib.h * Missing (or bad) C library: z This problem can usually be solved by installing the system package that provides this library (you may need the "-dev" version). If the library is already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where it is.If the library file does exist, it may contain errors that are caught by the C compiler at the preprocessing stage. In this case you can re-run configure with the verbosity flag -v3 to see the error messages. If the header file does exist, it may contain errors that are caught by the C compiler at the prepro...

install gitlab with docker

install gitlab with docker #Run the image docker run --detach --hostname gitdocker.gnoti.com --publish 8897:80 --publish 6015:22 --name gitlab --restart always --volume /srv/gitlab/config:/home/min/GitLab --volume /srv/gitlab/logs:/home/min/GitLab/log --volume /srv/gitlab/data:/home/min/GitLab/data gitlab/gitlab-ce:latest [root@gitlabd ~]# docker run --detach --hostname git.gnoti.com --publish 8897:80 --publish 6015:22 --name gitlab --restart always --volume /srv/gitlab/config:/home/min/GitLab --volume /srv/gitlab/logs:/home/min/GitLab/log --volume /srv/gitlab/data:/home/min/GitLab/data gitlab/gitlab-ce:latest Unable to find image 'gitlab/gitlab-ce:latest' locally latest: Pulling from gitlab/gitlab-ce 0a01a72a686c: Pull complete cc899a5544da: Pull complete 19197c550755: Pull complete 716d454e56b6: Pull complete b66ad69c1d8e: Pull complete 462500695a87: Pull complete 453c7300278b: Pull complete d7a5a55d56da: Pull complete 8e0cebb8d658: Pull complete 0b6cca773e2f: Pull c...