Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# 使用 Nginx(流行的 Web 服务器)作为基础镜像
FROM nginx:alpine

# 将你的 index.html 复制到容器内的 Nginx Web 目录
COPY index.html /usr/share/nginx/html/index.html

# 告诉 Docker 容器在运行时监听 80 端口
EXPOSE 80
2 changes: 2 additions & 0 deletions Dockerfile.alpine
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
FROM nginx:alpine
COPY . /usr/share/nginx/html
29 changes: 29 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
services:

minio:
image: minio/minio
container_name: cloud-minio

volumes:
- ./data1:/data1
- ./data2:/data2
- ./data3:/data3
- ./data4:/data4

ports:
- "9000:9000"
- "9001:9001"

environment:
MINIO_ROOT_USER: admin
MINIO_ROOT_PASSWORD: password123

command: server /data{1...4} --console-address ":9001"

mc:
image: minio/mc
container_name: cloud-mc
depends_on:
- minio
entrypoint: /bin/sh
tty: true
18 changes: 11 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,16 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Cloud Computing Lab </title>
<style>
<title>Cloud App v2 </title>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
text-align: center;
padding-top: 50px;
background-color: #f4f4f9; /* Add a light grey background */
background-color: #e6f7ff;
}
.status { color: #007bff; font-weight: bold; } /* Change status to Blue */
.status { color: #52c41a; font-weight: bold; }
h1 { color: #1890ff; }
</style>
</head>
<body>
Expand All @@ -19,11 +20,14 @@
width="100"
alt="Actions Logo"
class="cloud-logo">
<h1>Cloud-Native Deployment Success!</h1>
<p>This site was deployed using <b>GitHub Actions</b>.</p>
<h1>Welcome to Version 2.0</h1>
<p>This is the upgraded version!</b>.</p>
<div class="status">● Site Status: Live</div>
<hr>
<p>Student Name: Honglin Yuan</p>
<p>Student Name: Xu Kang</p>
<p>Current Cloud Provider: GitHub (Microsoft Azure Infrastructure)</p>
<img src="https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png"
width="150"
alt="GitHub Logo">
</body>
</html>