This commit is contained in:
2024-02-20 17:15:27 +08:00
committed by huty
parent 6706e1a633
commit 34158042ad
1529 changed files with 177765 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
version: "3.7"
services:
ch09-vweb-v1:
image: kiamol/ch09-vweb:v1-linux-amd64
ch09-vweb-v2:
image: kiamol/ch09-vweb:v2-linux-amd64
ch09-vweb-v3:
image: kiamol/ch09-vweb:v3-linux-amd64

View File

@@ -0,0 +1,11 @@
version: "3.7"
services:
ch09-vweb-v1:
image: kiamol/ch09-vweb:v1-linux-arm64
ch09-vweb-v2:
image: kiamol/ch09-vweb:v2-linux-arm64
ch09-vweb-v3:
image: kiamol/ch09-vweb:v3-linux-arm64

View File

@@ -0,0 +1,17 @@
version: "3.6"
services:
ch09-vweb-v1:
image: kiamol/ch09-vweb:v1
build:
context: ./vweb/v1
ch09-vweb-v2:
image: kiamol/ch09-vweb:v2
build:
context: ./vweb/v2
ch09-vweb-v3:
image: kiamol/ch09-vweb:v3
build:
context: ./vweb/v3

View File

@@ -0,0 +1,10 @@
$images=$(yq e '.services.[].image' docker-compose.yml)
foreach ($image in $images)
{
docker manifest create --amend $image `
"$($image)-linux-arm64" `
"$($image)-linux-amd64"
docker manifest push $image
}

View File

@@ -0,0 +1,3 @@
FROM nginx:1.21-alpine
COPY *.html /usr/share/nginx/html/
COPY *.txt /usr/share/nginx/html/

View File

@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<title>v1</title>
<style>
body {
background-color: #a8ebff;
font-family: "Lucida Console", Courier, monospace;
}
h1 {
font-weight: 800;
font-size: 80px;
color: #020c66;
}
</style>
</head>
<body>
<h1>v1</h1>
</body>
</html>

View File

@@ -0,0 +1,3 @@
FROM nginx:1.21-alpine
COPY *.html /usr/share/nginx/html/
COPY *.txt /usr/share/nginx/html/

View File

@@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<title>v2</title>
<style>
body {
background-color: #b3ffe6;
font-family: "Times New Roman", Times, serif;
}
h1 {
font-size: 90px;
color: #02422d;
}
</style>
</head>
<body>
<h1>v2</h1>
</body>
</html>

View File

@@ -0,0 +1,3 @@
FROM alpine:3.15
CMD this-will-fail