10월, 2021의 게시물 표시

install superset

이미지
## prepare  [root@superset ~]# git clone https://github.com/apache/superset.git Cloning into 'superset'... remote: Enumerating objects: 121678, done. remote: Total 121678 (delta 0), reused 0 (delta 0), pack-reused 121678 Receiving objects: 100% (121678/121678), 269.37 MiB | 12.34 MiB/s, done. Resolving deltas: 100% (88857/88857), done. [root@superset ~]# ## execute [root@superset superset]# docker-compose -f docker-compose-non-dev.yml up [+] Running 0/43 ⠙ superset-init Pulling 5.2s ⠹ bb7d5a84853b Downloading [====================> ] 23.06MB/54.92MB 1.2s ⠙ db Pulling 5.2s ⠙ eec53b8a5053 Waiting 0.2s [+] Running 0/491

install docker-compose

## install docker-compose [root@superset ~]# curl -L "https://github.com/docker/compose/releases/download/v2.0.1/docker-compose-linux-x86_64" -o /usr/local/bin/docker-compose % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 633 100 633 0 0 1615 0 --:--:-- --:--:-- --:--:-- 1618 100 24.7M 100 24.7M 0 0 1254k 0 0:00:20 0:00:20 --:--:-- 5522k [root@superset ~]# chmod +x /usr/local/bin/docker-compose [root@superset ~]# docker-compose --version Docker Compose version v2.0.1 [root@superset ~]#   .

docker install on centos 7

## remove docker [root@superset ~]# yum remove docker \ > docker-client \ > docker-client-latest \ > docker-common \ > docker-latest \ > docker-latest-logrotate \ > docker-logrotate \ > docker-engine Loaded plugins: fastestmirror, langpacks No Match for argument: docker No Match for argument: docker-client No Match for argument: docker-client-latest No Match for argument: docker-common No Match for argument: docker-latest No Match for argument: docker-latest-logrotate No Match for argument: docker-logrotate No Match for argument: docker-engine No Packages marked for removal [root@superset ~]# ## prepare [root@superset ~]# yum install -y yum-utils Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirror.kakao.com * extras: mirror.kakao.com * updates: mirror.kakao.com Resolving Dependencies --> R

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 http://192.16

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)