init
This commit is contained in:
commit
204811779e
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
/.idea/
|
||||||
5
command/docker명령어
Normal file
5
command/docker명령어
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
[registry 목록 조회]
|
||||||
|
curl -X GET http://localhost:5000/v2/_catalog
|
||||||
|
|
||||||
|
[registry 의 이미지 tag list 조회]
|
||||||
|
curl -X GET [Registry Address]/v2/[Image Name]/tags/list
|
||||||
46
docker/compose/ds2ai.yaml
Normal file
46
docker/compose/ds2ai.yaml
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
version: '2'
|
||||||
|
services:
|
||||||
|
|
||||||
|
ds2ai:
|
||||||
|
image: dslabglobal/ds2ai:stable
|
||||||
|
container_name: ds2ai-container
|
||||||
|
environment:
|
||||||
|
- LC_ALL=C.UTF-8
|
||||||
|
- LANG=C.UTF-8
|
||||||
|
- NVIDIA_DRIVER_CAPABILITIES=all
|
||||||
|
- NVIDIA_VISIBLE_DEVICES=all
|
||||||
|
- NVIDIA_DISABLE_REQUIRE=1
|
||||||
|
ports:
|
||||||
|
- 13000:13000
|
||||||
|
- 13001:13001
|
||||||
|
- 13002:13002
|
||||||
|
- 13003:19999
|
||||||
|
- 13004:19998
|
||||||
|
- 13005:80
|
||||||
|
- 13006:3306
|
||||||
|
- 13007:27017
|
||||||
|
- 13009:3009
|
||||||
|
- 13010:13010
|
||||||
|
- 13011:13011
|
||||||
|
- 13012:13012
|
||||||
|
- 13013:13013
|
||||||
|
- 13014:13014
|
||||||
|
- 13015:13015
|
||||||
|
- 13016:13016
|
||||||
|
- 13017:13017
|
||||||
|
- 13018:13018
|
||||||
|
- 13019:13019
|
||||||
|
- 13020:13020
|
||||||
|
- 13021:13021
|
||||||
|
- 13022:13022
|
||||||
|
- 13023:13023
|
||||||
|
- 13024:13024
|
||||||
|
- 13025:13025
|
||||||
|
- 13026:13026
|
||||||
|
- 13027:13027
|
||||||
|
- 13028:13028
|
||||||
|
- 13029:13029
|
||||||
|
privileged: true
|
||||||
|
ipc: host
|
||||||
|
restart: always
|
||||||
|
entrypoint: ["/bin/sh", "-c", "/root/ds2ai/start_all.sh && tail -f /dev/null"]
|
||||||
42
docker/compose/gitea.yaml
Normal file
42
docker/compose/gitea.yaml
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
version: "3"
|
||||||
|
|
||||||
|
networks:
|
||||||
|
net-public:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
services:
|
||||||
|
server:
|
||||||
|
image: gitea/gitea:1.18.0
|
||||||
|
container_name: gitea
|
||||||
|
environment:
|
||||||
|
- USER_UID=1000
|
||||||
|
- USER_GID=1000
|
||||||
|
- GITEA__database__DB_TYPE=postgres
|
||||||
|
- GITEA__database__HOST=db:5432
|
||||||
|
- GITEA__database__NAME=gitea
|
||||||
|
- GITEA__database__USER=gitea
|
||||||
|
- GITEA__database__PASSWD=gitea
|
||||||
|
restart: always
|
||||||
|
networks:
|
||||||
|
- net-public
|
||||||
|
volumes:
|
||||||
|
- /mnt/disk1/gitea:/data
|
||||||
|
- /etc/timezone:/etc/timezone:ro
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
ports:
|
||||||
|
- "3000:3000"
|
||||||
|
- "222:22"
|
||||||
|
depends_on:
|
||||||
|
- db
|
||||||
|
|
||||||
|
db:
|
||||||
|
image: postgres:14
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
- POSTGRES_USER=gitea
|
||||||
|
- POSTGRES_PASSWORD=gitea
|
||||||
|
- POSTGRES_DB=gitea
|
||||||
|
networks:
|
||||||
|
- net-public
|
||||||
|
volumes:
|
||||||
|
- /mnt/disk1/gitea/db:/var/lib/postgresql/data
|
||||||
35
docker/compose/jenkins-agent.yaml
Normal file
35
docker/compose/jenkins-agent.yaml
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
version: "3"
|
||||||
|
|
||||||
|
services:
|
||||||
|
jenkins:
|
||||||
|
image: jenkins-docker-agent:lts-jdk17
|
||||||
|
container_name: jenkins-agent
|
||||||
|
volumes:
|
||||||
|
- temp:/tmp
|
||||||
|
- run:/run
|
||||||
|
- varrun:/var/run
|
||||||
|
- key:/home/jenkins/.jenkins
|
||||||
|
- home:/home/jenkins/agent
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
environment:
|
||||||
|
- JENKINS_AGENT_SSH_PUBKEY=${pubkey}
|
||||||
|
#pubkey : ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQC/5EaeHPy5o1TJL8IomP2AjqVkivzN8RAJEiimFb2fEgdmznMcCq7hDzpFakpQC65+siDfg8BDTpwftuYe8mhkcsPeQqXlD2p8hAdC4IG6Ga1tzKy8YAKEvUR9dGcQYcwRe/VSsr2R7WEo7BxU6QYRCg1PutA82iZToBd85xpliiU9+iGSxNDLCQldvdRNCcanay4bg9vTg1VM9EkTOb3yKL988Lsv3pckB0eE4+1IF1a/LpYdrAolR39umi6qFDSlUCsoiEvBihwnC5Q0uVwAIqc5umadH0PNAvfbxOPVOIfbxdZkwiRZUk6h8gvwFillcewFJjfOCXbV2gsOAYtR9UoivN4bB2HzQzkbjS0VcSJnEBv2Qp3Xn3vXMcj1Xpgo5IOQFmicN0bo0hkXOIGEJLr1V0CqowfE05CaF4pRtDRUQKEvxRPZ94qdTeHSdfz4awdqMcjTkp4j2cAGLqRcmPFGIihoOYFZcfOaarSsR1n3UFOmfbzYWMUJEzcfrB0=
|
||||||
|
networks:
|
||||||
|
- net-public
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
temp:
|
||||||
|
driver: local
|
||||||
|
run:
|
||||||
|
driver: local
|
||||||
|
varrun:
|
||||||
|
driver: local
|
||||||
|
key:
|
||||||
|
driver: local
|
||||||
|
home:
|
||||||
|
driver: local
|
||||||
|
|
||||||
|
networks:
|
||||||
|
net-public:
|
||||||
|
external: true
|
||||||
|
|
||||||
20
docker/compose/jenkins.yaml
Normal file
20
docker/compose/jenkins.yaml
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
version: "3"
|
||||||
|
|
||||||
|
services:
|
||||||
|
jenkins:
|
||||||
|
image: jenkins/jenkins:lts
|
||||||
|
container_name: jenkins
|
||||||
|
restart: always
|
||||||
|
user: root
|
||||||
|
ports:
|
||||||
|
- 8080:8080
|
||||||
|
- 50000:50000
|
||||||
|
volumes:
|
||||||
|
- /mnt/disk1/jenkins:/var/jenkins_home
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
|
networks:
|
||||||
|
- net-public
|
||||||
|
|
||||||
|
networks:
|
||||||
|
net-public:
|
||||||
|
external: true
|
||||||
15
docker/compose/registry.yaml
Normal file
15
docker/compose/registry.yaml
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
version: "3"
|
||||||
|
|
||||||
|
services:
|
||||||
|
registry:
|
||||||
|
image: registry
|
||||||
|
container_name: registry
|
||||||
|
restart: always
|
||||||
|
ports:
|
||||||
|
- 5000:5000
|
||||||
|
networks:
|
||||||
|
- net-public
|
||||||
|
|
||||||
|
networks:
|
||||||
|
net-public:
|
||||||
|
external: true
|
||||||
@ -0,0 +1,6 @@
|
|||||||
|
FROM jenkins/ssh-agent:latest-jdk17
|
||||||
|
RUN apt-get update && apt-get install -y lsb-release
|
||||||
|
RUN apt-get install -y ca-certificates curl gnupg lsb-release
|
||||||
|
RUN curl -fsSLo /usr/share/keyrings/docker-archive-keyring.asc https://download.docker.com/linux/debian/gpg
|
||||||
|
RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.asc] https://download.docker.com/linux/debian $(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list
|
||||||
|
RUN apt-get update && apt-get install -y docker-ce-cli
|
||||||
9
docker/stack/cephfs-volume-exam.yaml
Normal file
9
docker/stack/cephfs-volume-exam.yaml
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
volumes:
|
||||||
|
test:
|
||||||
|
driver: cephfs
|
||||||
|
driver_opts:
|
||||||
|
client_name: swarm
|
||||||
|
keyring: /etc/ceph/ceph.client.swarm.keyring
|
||||||
|
#mount_opts: mds_namespace=example
|
||||||
|
remote_path: /cephfs_data
|
||||||
|
servers: 10.10.20.20:6789
|
||||||
120
docker/stack/cephfs.yaml
Normal file
120
docker/stack/cephfs.yaml
Normal file
@ -0,0 +1,120 @@
|
|||||||
|
version: "3.6"
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
etc:
|
||||||
|
var:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
hostnet:
|
||||||
|
external: true
|
||||||
|
name: host
|
||||||
|
|
||||||
|
configs:
|
||||||
|
compat.sh:
|
||||||
|
external: true
|
||||||
|
ceph.conf:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
secrets:
|
||||||
|
ceph.monmap:
|
||||||
|
external: true
|
||||||
|
ceph.mon.keyring:
|
||||||
|
external: true
|
||||||
|
ceph.client.admin.keyring:
|
||||||
|
external: true
|
||||||
|
ceph.bootstrap-osd.keyring:
|
||||||
|
external: true
|
||||||
|
|
||||||
|
services:
|
||||||
|
mon:
|
||||||
|
image: ceph/daemon
|
||||||
|
entrypoint: /tmp/compat.sh
|
||||||
|
command: mon
|
||||||
|
networks:
|
||||||
|
hostnet: {}
|
||||||
|
volumes:
|
||||||
|
- etc:/etc/ceph
|
||||||
|
- var:/var/lib/ceph
|
||||||
|
configs:
|
||||||
|
- source: compat.sh
|
||||||
|
target: /tmp/compat.sh
|
||||||
|
mode: 0755
|
||||||
|
- source: ceph.conf
|
||||||
|
target: /etc/ceph/ceph.conf
|
||||||
|
secrets:
|
||||||
|
- ceph.monmap
|
||||||
|
- ceph.mon.keyring
|
||||||
|
- ceph.client.admin.keyring
|
||||||
|
- ceph.bootstrap-osd.keyring
|
||||||
|
environment:
|
||||||
|
- "NETWORK_AUTO_DETECT=4"
|
||||||
|
deploy:
|
||||||
|
mode: global
|
||||||
|
placement:
|
||||||
|
constraints:
|
||||||
|
- node.role == manager
|
||||||
|
|
||||||
|
mgr:
|
||||||
|
image: ceph/daemon
|
||||||
|
entrypoint: /tmp/compat.sh
|
||||||
|
command: mgr
|
||||||
|
#hostname: "{{.Node.Hostname}}"
|
||||||
|
networks:
|
||||||
|
hostnet: {}
|
||||||
|
volumes:
|
||||||
|
- etc:/etc/ceph
|
||||||
|
- var:/var/lib/ceph
|
||||||
|
configs:
|
||||||
|
- source: compat.sh
|
||||||
|
target: /tmp/compat.sh
|
||||||
|
mode: 0755
|
||||||
|
- source: ceph.conf
|
||||||
|
target: /etc/ceph/ceph.conf
|
||||||
|
secrets:
|
||||||
|
- ceph.client.admin.keyring
|
||||||
|
# This will add zabbix_sender to mgr
|
||||||
|
environment:
|
||||||
|
- ZABBIX=1
|
||||||
|
deploy:
|
||||||
|
replicas: 1
|
||||||
|
|
||||||
|
osd:
|
||||||
|
image: ceph/daemon
|
||||||
|
entrypoint: /tmp/compat.sh
|
||||||
|
command: osd
|
||||||
|
networks:
|
||||||
|
hostnet: {}
|
||||||
|
volumes:
|
||||||
|
- etc:/etc/ceph
|
||||||
|
- var:/var/lib/ceph
|
||||||
|
- /mnt/osd:/var/lib/ceph/osd
|
||||||
|
configs:
|
||||||
|
- source: compat.sh
|
||||||
|
target: /tmp/compat.sh
|
||||||
|
mode: 0755
|
||||||
|
- source: ceph.conf
|
||||||
|
target: /etc/ceph/ceph.conf
|
||||||
|
secrets:
|
||||||
|
- ceph.bootstrap-osd.keyring
|
||||||
|
deploy:
|
||||||
|
mode: global
|
||||||
|
|
||||||
|
mds:
|
||||||
|
image: ceph/daemon
|
||||||
|
entrypoint: /tmp/compat.sh
|
||||||
|
command: mds
|
||||||
|
networks:
|
||||||
|
hostnet: {}
|
||||||
|
volumes:
|
||||||
|
- etc:/etc/ceph
|
||||||
|
- var:/var/lib/ceph
|
||||||
|
configs:
|
||||||
|
- source: compat.sh
|
||||||
|
target: /tmp/compat.sh
|
||||||
|
mode: 0755
|
||||||
|
- source: ceph.conf
|
||||||
|
target: /etc/ceph/ceph.conf
|
||||||
|
secrets:
|
||||||
|
- ceph.client.admin.keyring
|
||||||
|
deploy:
|
||||||
|
replicas: 2
|
||||||
Loading…
Reference in New Issue
Block a user