新增learn-kubernetes(https://github.com/yyong-brs/learn-kubernetes)相关文件
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
FROM nginx:1.21-alpine
|
||||
COPY *.html /usr/share/nginx/html/
|
||||
COPY *.txt /usr/share/nginx/html/
|
||||
@@ -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>
|
||||
@@ -0,0 +1 @@
|
||||
v1
|
||||
@@ -0,0 +1,3 @@
|
||||
FROM nginx:1.21-alpine
|
||||
COPY *.html /usr/share/nginx/html/
|
||||
COPY *.txt /usr/share/nginx/html/
|
||||
@@ -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>
|
||||
@@ -0,0 +1 @@
|
||||
v2
|
||||
@@ -0,0 +1,3 @@
|
||||
FROM alpine:3.15
|
||||
|
||||
CMD this-will-fail
|
||||
Reference in New Issue
Block a user