Skip to content

Commit 57be4ba

Browse files
Merge pull request #89 from Strato-YangSungHun/main
README.md / docker-compose.yaml file update
2 parents e3abbe0 + 47933e1 commit 57be4ba

15 files changed

+92
-66
lines changed

README.md

Lines changed: 29 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ To bring up the mc-application-manager service along with its dependencies, run
6161
sudo apt update
6262
sudo apt install -y docker-compose
6363

64+
cd ./script
65+
chmod +x setup-docker-no-sudo.sh
66+
./setup-docker-no-sudo.sh
67+
68+
cd ..
69+
# The initial user information for the workflow engine is admin / 123456
70+
# The initial user information for the repository is admin / 123456
71+
# If you need to modify, modify docker-compose.yaml
6472
sudo docker-compose up -d
6573
```
6674
This command will pull the necessary Docker images, build the services, and start the containers in detached mode.
@@ -76,6 +84,27 @@ Once the services are up, you can access the following endpoints:
7684
- Repository Management: `http://<Public_IP>:18084/web/repository/list`
7785
- Yaml Generator: `http://<Public_IP>:18084/web/generate/yaml`
7886

87+
### Step 4-1: Certainly! Here’s the translated list of settings:
88+
1. Access the OSS List
89+
2. Modify previously registered OSS
90+
3. Update with Workflow Engine And Repository information
91+
4. Check for duplicates and verify connections
92+
5. Click the "Edit" button
93+
94+
※ If no separate modifications were made, the Workflow Engine (Jenkins) information is as follows.
95+
1. APE (Application Provisioning Engine) - Jenkins
96+
> URL : http://<Public_IP>:9800
97+
>
98+
> OSS ID : admin
99+
>
100+
> OSS PW : 123456
101+
102+
2. Repository - Nexus
103+
> URL : http://<Public_IP>:8081
104+
>
105+
> OSS ID : admin
106+
>
107+
> OSS PW : 123456
79108
80109
### Step 5: Stop Services
81110
To stop the running services, use:
@@ -144,65 +173,6 @@ If you prefer to build and run the project manually, follow these steps:
144173
. $PROJECT_ROOT/script/run-mc-application.sh
145174
```
146175

147-
### Refer to Set Application-Provisioning-Engine(Jenkins)
148-
**1. Access the Jenkins container**
149-
```bash
150-
sudo docker exec -it ape-jenkins /bin/bash
151-
```
152-
153-
**2. Inside the container, retrieve the initial admin password**
154-
```bash
155-
cat /var/jenkins_home/secrets/initialAdminPassword
156-
```
157-
158-
**3. Copy the string that appears after running the cat command.**
159-
160-
**4. Open Chrome browser and navigate to `http://<Public IP>:9800` Jenkins Unlock Page**
161-
![img_4.png](document/img_4.png)
162-
**5. Paste the copied string into the password field.**
163-
164-
**6. Click `Install suggested plugins` Button**
165-
![img_5.png](document/img_5.png)
166-
![img_6.png](document/img_6.png)
167-
168-
**7. Insert User Information**
169-
![img_1.png](document/img_1.png)
170-
![img_2.png](document/img_2.png)
171-
![img_3.png](document/img_3.png)
172-
173-
**This process will complete the initial setup of Jenkins**
174-
175-
### Refer to Set Repository(Nexus)
176-
**1. Access the Nexus container**
177-
```bash
178-
sudo docker exec -it nexus-repository /bin/bash
179-
```
180-
181-
**2. Inside the container, retrieve the initial admin password**
182-
```bash
183-
cat /nexus-data/admin.password
184-
```
185-
**3. Copy the string that appears after running the cat command.**
186-
187-
**4. Open Chrome browser and navigate to `http://<Public IP>:8081` Nexus Unlock Page**
188-
![img.png](document/nexusMain.png)
189-
**5. Paste the copied string into the password field. (ID: admin)**
190-
191-
**6. Click `Next` Button**
192-
![img.png](document/setup1.png)
193-
194-
**7. Insert New Password**
195-
![img_1.png](document/setup2.png)
196-
197-
**8. After selecting one, click the next button**
198-
![img_2.png](document/setup3.png)
199-
200-
**9. click the finish button**
201-
![img_3.png](document/setup4.png)
202-
203-
**This process will complete the initial setup of Nexus**
204-
---
205-
206176
## Contributing
207177

208178
We welcome contributions to the **mc-application-manager** project! To get involved, follow these steps:

docker-compose.yaml

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ networks:
99
services:
1010
# jenkins - for workflow manager
1111
jenkins:
12-
image: jenkins/jenkins:jdk17
12+
image: bitnami/jenkins:2.462.3
13+
user: root
1314
container_name: ape-jenkins
1415
platform: linux/amd64
1516
networks:
@@ -24,9 +25,33 @@ services:
2425
- /var/run/docker.sock:/var/run/docker.sock
2526
- /usr/bin/docker:/usr/bin/docker # -v $(which docker):/usr/bin/docker
2627
environment:
27-
- PROJECT=mcmp
28+
JENKINS_USERNAME: admin
29+
JENKINS_PASSWORD: 123456 # Please CHANGE ME
30+
JENKINS_PLUGINS: >-
31+
workflow-api,
32+
swarm,
33+
authorize-project,
34+
antisamy-markup-formatter,
35+
pipeline-github-lib,
36+
pipeline-rest-api,
37+
git,
38+
github-branch-source,
39+
gradle,
40+
pipeline-model-definition,
41+
pipeline-build-step,
42+
workflow-aggregator,
43+
matrix-project,
44+
email-ext,
45+
durable-task,
46+
checks-api,
47+
build-timeout,
48+
timestamper,
49+
ws-cleanup,
50+
ssh-slaves,
51+
ssh-agent,
52+
publish-over-ssh
2853
healthcheck: # for application-manager
29-
test: [ "CMD", "curl", "-f", "http://localhost:1024/catalog/software" ]
54+
test: [ "CMD", "curl", "-f", "http://localhost:8080/login" ]
3055
interval: 1m
3156
timeout: 5s
3257
retries: 3
@@ -50,9 +75,10 @@ services:
5075
volumes:
5176
- ~/:/nexus-data/blobs/
5277
environment:
53-
- PROJECT=mcmp
78+
NEXUS_SECURITY_RANDOMPASSWORD: 'false'
79+
NEXUS_SECURITY_INITIAL_PASSWORD: 123456 # Please CHANGE ME
5480
healthcheck: # for application-manager
55-
test: [ "CMD", "curl", "-f", "http://localhost:1024/catalog/software" ]
81+
test: [ "CMD", "curl", "-f", "http://localhost:8081/login" ]
5682
interval: 1m
5783
timeout: 5s
5884
retries: 3
@@ -72,8 +98,8 @@ services:
7298
- ./db/application:/db/application
7399
environment:
74100
- DDL_AUTO=create-drop
75-
- DB_USER=application
76-
- DB_PASS=application!23
101+
- DB_USER=application # Please CHANGE ME
102+
- DB_PASS=application!23 # Please CHANGE ME
77103
- SQL_DATA_INIT=always # or never
78104
healthcheck: # for cb-application-manager
79105
test: ["CMD", "nc", "-vz", "localhost", "1324"]

document/img.png

-194 KB
Binary file not shown.

document/img_1.png

-22.2 KB
Binary file not shown.

document/img_2.png

-31.1 KB
Binary file not shown.

document/img_3.png

-26.5 KB
Binary file not shown.

document/img_4.png

-28.4 KB
Binary file not shown.

document/img_5.png

-59.6 KB
Binary file not shown.

document/img_6.png

-45.6 KB
Binary file not shown.

document/nexusMain.png

-156 KB
Binary file not shown.

document/setup1.png

-123 KB
Binary file not shown.

document/setup2.png

-125 KB
Binary file not shown.

document/setup3.png

-128 KB
Binary file not shown.

document/setup4.png

-66 KB
Binary file not shown.

script/setup-docker-no-sudo.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#!/bin/bash
2+
3+
# Docker 그룹 생성 (이미 존재하는 경우 무시)
4+
sudo groupadd docker
5+
6+
# 현재 사용자를 docker 그룹에 추가
7+
sudo usermod -aG docker $USER
8+
9+
# Docker 데몬 재시작
10+
sudo systemctl restart docker
11+
12+
# Docker 소켓 파일의 권한 변경
13+
sudo chmod 666 /var/run/docker.sock
14+
15+
# 새 그룹 멤버십 적용
16+
newgrp docker << EOF
17+
18+
# Docker 버전 확인
19+
docker -v
20+
21+
# 실행 중인 컨테이너 확인
22+
docker ps
23+
24+
echo "Docker 설정이 완료되었습니다. 이제 sudo 없이 Docker를 사용할 수 있습니다."
25+
echo "주의: Docker 소켓 파일의 권한을 666으로 변경했습니다. 이는 보안상 권장되지 않을 수 있습니다."
26+
echo "시스템 전체에 영구적으로 적용하려면 로그아웃 후 다시 로그인하는 것이 좋습니다."
27+
28+
# 사용자가 현재 셸을 계속 사용할 수 있도록 함
29+
$SHELL
30+
EOF

0 commit comments

Comments
 (0)