100 Exercises / System Development / 100 System Development Exercises
Introduction to Docker and CI/CD for Manufacturing | 10 Exercises for Deploying Factory APIs to the Cloud
Explore Docker, Compose, CI/CD, cloud deployment, caching, and secret management with Python simulations of factory API delivery and operations.
Continuously delivering factory business APIs securely—10 practical tips on Docker, Cloud, and CI/CD
Overview
Exercises No.071–No.080 use a fictional factory production-progress API and frontend to examine Dockerfiles, containers, Compose, environment settings, GitHub Actions, testing, cloud releases, and secret management. Python simulations compare build size, execution time, sampled availability, and deployment outcomes; no containers, CI workflows, or cloud resources are actually created.
Rather than just a set of commands, it analyzes fictitious data such as build time, image capacity, uptime, test detection rate, deployment time, and change failure rate, enabling release decisions that do not disrupt manufacturing operations.
About this material This article adapts notebooks used in corporate training by Surikobo or its representative, Hiroshi Wayama, with permission from the participating companies. All data is fictional and does not represent actual companies or factory results.
Introduction: Practical Challenges in Manufacturing Covered in This Article
The Production Progress API delivers work performance, work-in-progress, and equipment status to the on-site screen. Even if the function is correct, if it only runs on the person in charge’s PC, releases are personalized or misused with environment variables, or if the update pauses for a long time, it cannot be used as a business infrastructure.
The challenge this time is to design a delivery process that can reproducibly distribute the same deliverables, automatically check changes, and restore service quickly after a failed release.
Common situations on site
- It runs on development PCs but does not start on factory servers due to library variations.
- Boot the API, screen, and database separately according to the instructions, resulting in configuration errors
- Write production URLs and credentials directly into the source code
- Tests are often left out by relying on the instructor’s memory and skipped during busy periods.
- Determine deployment success solely by “the command has ended.”
- Even if there are issues with the new version, the procedure and decision-makers for reverting to the old version have not been decided.
Why is this issue so difficult to judge?
There are trade-offs between delivery speed, stability, and security. Increasing the number of tests increases detection power but also lengthens wait times. Small images are advantageous for distribution, but extreme cuts cause the loss of diagnostic tools. Moreover, even with a 99.9% operating rate, if the shutdown coincides with the production peak, the impact becomes significant.
Therefore, rather than adopting the technology, recovery targets, permissible downtime, change frequency, and data sensitivity are set first, and measurable acceptance conditions are set.
Exercises covered in this article
| No. | Theme | Practical judgment |
|---|---|---|
| 071 | Dockerfile | How to create reproducible, small execution units |
| 072 | Backend | How to standardize API startup and health checks |
| 073 | Front End | How to separate build and distribution |
| 074 | Docker Compose | What is required to boot an API or database by dependencies? |
| 075 | Development and Production Environment | What settings are to be shared and separated? |
| 076 | GitHub Actions | Which changes to inspect under what conditions |
| 077 | Test Auto-Execution | How to improve defect detection capabilities within a limited time |
| 078 | API Deployment | How to check availability and rollbacks |
| 079 | Screen deployment | How to deliver the new edition, including browser caches |
| 080 | Environment variables & Secrets | How to separate secrets from code and update them |
Preparing the Python environment
Generate fictional build, CI/CD, and operational data using numpy and pandas, and visualize them in matplotlib. Since the random number seed is fixed, rerunning it will yield the same result. No external connections to Docker or the cloud are made; instead, the configuration examples are checked as strings.
Show environment setup code
%matplotlib inline
%config InlineBackend.figure_format = "svg"
import sys
import numpy as np
import pandas as pd
import matplotlib
import matplotlib.pyplot as plt
import japanize_matplotlib
from IPython.display import display
rng = np.random.default_rng(8071)
pd.set_option("display.max_colwidth", 80)
print("Python:", sys.version.split()[0])
print(
"numpy:",
np.__version__,
"pandas:",
pd.__version__,
"matplotlib:",
matplotlib.__version__,
)
Python: 3.14.4
numpy: 2.5.1 pandas: 3.0.3 matplotlib: 3.11.0
Creation of Fictional Data
It generates 120 builds, 160 CIs, 90 deployments, and API monitoring data every five minutes over 14 days. Intentionally include obstacles and failures as well. The values are assumptions for teaching materials and will be replaced with actual measurements at the time of introduction.
Show sample-data generation code
builds = pd.DataFrame(
{
"build_id": [f"B-{i:03d}" for i in range(1, 121)],
"strategy": rng.choice(["singlestage", "multi-stage"], 120, p=[0.45, 0.55]),
"cache_hit": rng.random(120) < 0.62,
}
)
builds["image_mb"] = np.where(
builds.strategy.eq("multi-stage"),
rng.normal(185, 20, 120),
rng.normal(540, 55, 120),
).clip(120)
builds["build_sec"] = (
rng.normal(175, 28, 120) - builds.cache_hit * rng.normal(92, 12, 120)
).clip(35)
ci = pd.DataFrame(
{
"run_id": range(1, 161),
"test_level": rng.choice(
["lint/unit", "unit/API", "All tests"], 160, p=[0.25, 0.45, 0.30]
),
}
)
ci["duration_min"] = ci.test_level.map(
{"lint/unit": 3.2, "unit/API": 7.5, "All tests": 15.0}
) + rng.normal(0, 1, 160)
ci["defect_found"] = rng.random(160) < ci.test_level.map(
{"lint/unit": 0.10, "unit/API": 0.22, "All tests": 0.34}
)
deploys = pd.DataFrame(
{
"deploy_id": [f"D-{i:03d}" for i in range(1, 91)],
"service": rng.choice(["API", "frontend"], 90),
"strategy": rng.choice(["Bulk Update", "rolling"], 90, p=[0.38, 0.62]),
}
)
deploys["duration_min"] = (
deploys.strategy.map({"Bulk Update": 8.0, "rolling": 12.5}) + rng.normal(0, 2, 90)
).clip(2)
deploys["failed"] = rng.random(90) < deploys.strategy.map(
{"Bulk Update": 0.16, "rolling": 0.07}
)
deploys["rollback_min"] = np.where(deploys.failed, rng.gamma(2.2, 3.2, 90), 0)
monitor = pd.DataFrame(
{"time": pd.date_range("2026-06-01", periods=14 * 24 * 12, freq="5min")}
)
monitor["available"] = rng.random(len(monitor)) > 0.0025
monitor["latency_ms"] = rng.lognormal(np.log(125), 0.38, len(monitor))
display(builds.head(3), ci.head(3), deploys.head(3))
| build_id | strategy | cache_hit | image_mb | build_sec | |
|---|---|---|---|---|---|
| 0 | B-001 | multi-stage | True | 206.041371 | 90.241641 |
| 1 | B-002 | singlestage | False | 503.717863 | 192.183345 |
| 2 | B-003 | singlestage | True | 599.575449 | 92.300920 |
| run_id | test_level | duration_min | defect_found | |
|---|---|---|---|---|
| 0 | 1 | unit/API | 9.188109 | True |
| 1 | 2 | lint/unit | 4.084486 | False |
| 2 | 3 | unit/API | 7.714805 | False |
| deploy_id | service | strategy | duration_min | failed | rollback_min | |
|---|---|---|---|---|---|---|
| 0 | D-001 | frontend | Bulk Update | 8.793852 | False | 0.0 |
| 1 | D-002 | API | rolling | 12.297614 | False | 0.0 |
| 2 | D-003 | frontend | rolling | 11.813427 | False | 0.0 |
No.071: Creating a Dockerfile
Practical context
A container image is a distribution unit that combines the app and execution dependencies. When managing Dockerfile versions, you can rebuild the same environment from the same steps instead of “whose PC it was created on.” Fixing the base image, running non-root, and excluding unnecessary files are also quality requirements.
Design and validation
Place infrequently changing dependencies before application code to reuse cached layers. A multi-stage build can keep build tools out of the runtime image. The Dockerfile string below is a minimal single-stage example; the comparison table contains separate simulated build strategies, not measurements of that Dockerfile.
Check with Python
dockerfile = """FROM python:3.13-slim AS runtime
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app ./app
USER 10001
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
"""
summary = (
builds.groupby("strategy")
.agg(
average_mb_capacity=("image_mb", "mean"),
average_build_seconds=("build_sec", "mean"),
)
.round(1)
)
display(summary)
ax = summary["average_mb_capacity"].plot(kind="bar", color=["#607d8b", "#1976d2"])
ax.set_title("Mean container image size by build strategy")
ax.set_xlabel("Build strategy")
ax.set_ylabel("capacity (MB)")
ax.grid(axis="y", alpha=0.3)
plt.tight_layout()
plt.show()
print(dockerfile)
| average_mb_capacity | average_build_seconds | |
|---|---|---|
| strategy | ||
| multi-stage | 190.6 | 122.1 |
| singlestage | 536.6 | 117.7 |
FROM python:3.13-slim AS runtime
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app ./app
USER 10001
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
Reading the results
Multi-stage equivalent methods have smaller capacity, reducing distribution time and vulnerability investigation targets. In practice, acceptance criteria include not only capacity but also fixed base image update frequency, SBOM, vulnerability scanning, and reproduction builds.
No.072: Containerizing the Backend
Practical context
API containers have contracts including ports, startup commands, running users, health checks, and termination signals. Not only does the process get moving, but you also need to inform the orchestrator whether requests are accepted.
Design and validation
Availability is . This example estimates it from checks taken every five minutes, so short outages between checks can be missed. Separate liveness from readiness, and route requests only to instances ready to serve them.
Check with Python
availability = monitor["available"].mean()
p95 = monitor["latency_ms"].quantile(0.95)
api_kpi = pd.DataFrame(
{
"KPI": ["availability", "p95_response_time"],
"value": [f"{availability:.3%}", f"{p95:.1f} ms"],
"provisional standard": [">= 99.9%", "< 250 ms"],
}
)
display(api_kpi)
daily = (
monitor.set_index("time").resample("D").agg(availability=("available", "mean"))
* 100
)
ax = daily.plot(marker="o", legend=False, color="#1976d2")
ax.set_title("Production progress API: sampled daily availability")
ax.set_xlabel("Date")
ax.set_ylabel("availability (%)")
ax.grid(alpha=0.3)
plt.tight_layout()
plt.show()
| KPI | value | provisional standard | |
|---|---|---|---|
| 0 | availability | 99.653% | >= 99.9% |
| 1 | p95_response_time | 239.5 ms | < 250 ms |
Reading the results
Averaging the entire period alone hides short-term outages and peak impacts. Daily trends, p95 responses, and error rates are listed side by side, separating /live and /ready. If the standard is not met, the database wait or heavy processing is traced before adding more units.
No.073: Containerizing the Frontend
Practical context
Frontends like React can be built in Node.js, and only the generated static files can be distributed on a web server. Separating the build environment from the runtime environment prevents bringing development dependencies into production.
Design and validation
The amount of delivery affects the initial display time. Measures bundle capacity after compression, cache hit rate, Largest Contentful Paint, and more. Here, we estimate the amount transferred through asset splitting.
Check with Python
assets = pd.DataFrame(
{
"Assets": ["app.js", "vendor.js", "styles.css", "icons"],
"Before the divisionKB": [820, 0, 115, 92],
"After the splitKB": [310, 360, 82, 58],
"Revisit TransferKB": [310, 0, 0, 0],
}
)
display(assets)
totals = assets[
["Before the divisionKB", "After the splitKB", "Revisit TransferKB"]
].sum()
ax = totals.plot(kind="bar", color=["#d32f2f", "#1976d2", "#388e3c"])
ax.set_title("Comparison of front-end asset transfer volumes")
ax.set_xlabel("Distribution Method")
ax.set_ylabel("Transfer Volume (KB)")
ax.grid(axis="y", alpha=0.3)
plt.tight_layout()
plt.show()
| Assets | Before the divisionKB | After the splitKB | Revisit TransferKB | |
|---|---|---|---|---|
| 0 | app.js | 820 | 310 | 310 |
| 1 | vendor.js | 0 | 360 | 0 |
| 2 | styles.css | 115 | 82 | 0 |
| 3 | icons | 92 | 58 | 0 |
Reading the results
Splitting and long-term caching help reduce transfer volume during revisits. HTML is short, while hashed JS/CSS caches for a long time, allowing both new and old files to coexist for a certain period. We also check screen and API compatibility at the same time.
No.074: Starting a DB with Docker Compose
Practical context
Compose defines the API, frontend, and database together. Basic depends_on ordering does not guarantee database readiness. Use a database health check with condition: service_healthy, and implement connection retries in the API.
Design and validation
Organize service dependencies as directed graphs and assign volumes only to databases that require persistence. Passwords are not fixed to the Compose body, but are passed from environment variables or secrets.
Check with Python
services = pd.DataFrame(
{
"service": ["frontend", "api", "db"],
"Dependency": ["api", "db", "None"],
"healthcheck": ["HTTP /", "HTTP /ready", "pg_isready"],
"persistencevolume": [False, False, True],
"publicport": [True, True, False],
}
)
display(services)
checks = pd.DataFrame(
{
"Examination": [
"healthcheckAvailable",
"DBExternal confidential",
"DBpersistence",
"fixedpasswordNone",
],
"Judgment": [
services.healthcheck.ne("").all(),
not services.loc[services.service.eq("db"), "publicport"].iloc[0],
services.loc[services.service.eq("db"), "persistencevolume"].iloc[0],
True,
],
}
)
display(checks)
| service | Dependency | healthcheck | persistencevolume | publicport | |
|---|---|---|---|---|---|
| 0 | frontend | api | HTTP / | False | True |
| 1 | api | db | HTTP /ready | False | True |
| 2 | db | None | pg_isready | True | False |
| Examination | Judgment | |
|---|---|---|
| 0 | healthcheckAvailable | True |
| 1 | DBExternal confidential | True |
| 2 | DBpersistence | True |
| 3 | fixedpasswordNone | True |
Reading the results
The example keeps the database off public ports and includes persistence and readiness checks. Its “no hardcoded password” result is manually set to True; it is not a secret scanner. For production, define database backup, encryption, connection limits, and migration responsibilities.
No.075: Clarifying the differences between development environments and production environments
Practical context
In development, we prioritize speed of change and ease of investigation, while in production, we prioritize safety, availability, and traceability. On the other hand, if you separate the library version and basic configuration, the issues that occur only during the actual test increase.
Design and validation
The basic approach is to use the same image and externalize only the settings. We classify the differential items and conduct mechanical inspections to ensure that dangerous settings are not mixed into production.
Check with Python
envs = pd.DataFrame(
{
"item": ["debug", "replicas", "log_level", "DB", "TLS", "automaticreload"],
"Development": [True, 1, "DEBUG", "local container", False, True],
"performance": [False, 3, "INFO", "managed DB", True, False],
"normalization": [
"cannot",
"Configuration",
"Configuration",
"Connection only",
"cannot",
"cannot",
],
}
)
display(envs)
risk_checks = {
"debuginvalid": envs.loc[envs.item.eq("debug"), "performance"].iloc[0] == False,
"TLSeffective": envs.loc[envs.item.eq("TLS"), "performance"].iloc[0] == True,
"multiplereplica": envs.loc[envs.item.eq("replicas"), "performance"].iloc[0] >= 2,
}
display(pd.Series(risk_checks, name="Production Setup Inspection").to_frame())
| item | Development | performance | normalization | |
|---|---|---|---|---|
| 0 | debug | True | False | cannot |
| 1 | replicas | 1 | 3 | Configuration |
| 2 | log_level | DEBUG | INFO | Configuration |
| 3 | DB | local container | managed DB | Connection only |
| 4 | TLS | False | True | cannot |
| 5 | automaticreload | True | False | cannot |
| Production Setup Inspection | |
|---|---|
| debuginvalid | True |
| TLSeffective | True |
| multiplereplica | True |
Reading the results
While maintaining the product-specific safety settings, the app body can use the same image. Instead of branching the code heavily by environment name, it uses typed settings and startup validation, and if there are deficiencies or inconsistencies, the startup will fail.
No.076: Creating CI with GitHub Actions
Practical context
CI performs the same inspection triggered by push or pull requests, detecting basic defects before review. The important thing is not to write YAML, but to define mandatory checks, target branches, permissions, caches, and failure notifications.
Design and validation
We check not only the average CI time, but also p95, failure rate, and wait times. Permissions are minimized, and external PR does not allow access to the production secret.
Check with Python
ci_summary = (
ci.groupby("test_level")
.agg(
number_of_executions=("run_id", "size"),
mean_duration_min=("duration_min", "mean"),
p95_duration_min=("duration_min", lambda x: x.quantile(0.95)),
defect_detection_rate=("defect_found", "mean"),
)
.round(3)
)
display(ci_summary)
ax = ci_summary["p95_duration_min"].plot(kind="bar", color="#1976d2")
ax.set_title("CI p95 duration by test configuration")
ax.set_xlabel("Test Composition")
ax.set_ylabel("p95 duration (minutes)")
ax.grid(axis="y", alpha=0.3)
plt.tight_layout()
plt.show()
| number_of_executions | mean_duration_min | p95_duration_min | defect_detection_rate | |
|---|---|---|---|---|
| test_level | ||||
| All tests | 46 | 15.057 | 16.737 | 0.283 |
| lint/unit | 42 | 3.169 | 4.806 | 0.119 |
| unit/API | 72 | 7.629 | 9.219 | 0.167 |
Reading the results
All tests have a high detection rate but also take longer to complete. In PR, high-speed inspections are mandatory, and heavy E2E is designed to be parallelized or periodically executed, improving feedback speed and detection power.
No.077: Automatically Running Tests
Practical context
Auto-execution changes the state of “there is a test” to a state where it is checked with every change. Unit, API, integration, and E2E tests are combined because defects and times can be detected differ.
Design and validation
Set the expected loss as and compare the probability of defect leakage reduced by each test with the execution time. Here, we show the number of detections for 100 hypothetical defect candidates.
Check with Python
tests = pd.DataFrame(
{
"layer": ["lint/Type", "unit", "API", "E2E"],
"execution": [1.2, 3.8, 6.5, 14.0],
"candidate defect": [18, 35, 29, 18],
"detection rate": [0.94, 0.86, 0.79, 0.72],
}
)
tests["Expected number of detections"] = (
tests["candidate defect"] * tests["detection rate"]
).round(1)
tests["1Minute-by-minute detection"] = (
tests["Expected number of detections"] / tests["execution"]
).round(2)
display(tests)
ax = tests.set_index("layer")["1Minute-by-minute detection"].plot(
kind="bar", color="#388e3c"
)
ax.set_title("Expected Detections per Time by Test Layer")
ax.set_xlabel("Test layer")
ax.set_ylabel("Expected number of detections / minutes")
ax.grid(axis="y", alpha=0.3)
plt.tight_layout()
plt.show()
| layer | execution | candidate defect | detection rate | Expected number of detections | 1Minute-by-minute detection | |
|---|---|---|---|---|---|---|
| 0 | lint/Type | 1.2 | 18 | 0.94 | 16.9 | 14.08 |
| 1 | unit | 3.8 | 35 | 0.86 | 30.1 | 7.92 |
| 2 | API | 6.5 | 29 | 0.79 | 22.9 | 3.52 |
| 3 | E2E | 14.0 | 18 | 0.72 | 13.0 | 0.93 |
Reading the results
A realistic configuration is to place high-speed static inspections and units at the entrance, protecting boundaries and key operations with API and E2E systems. Instead of reducing E2E solely through efficiency, we carefully select a few routes with significant downtime impact, such as ‘progress reflection from performance registration.‘
No.078: Deploying APIs in the Cloud
Practical context
API deployment involves not only launching images but also business changes including health checks, phased switchovers, DB migration, monitoring, and rollbacks. During production, downtime is especially managed during updates.
Design and validation
Representative KPIs are deployment frequency, change lead time, change failure rate, and recovery time. Here, we compare bulk updates and rolling updates.
Check with Python
dep = (
deploys[deploys.service.eq("API")]
.groupby("strategy")
.agg(
number_of_times=("deploy_id", "size"),
mean_duration_min=("duration_min", "mean"),
change_failure_rate=("failed", "mean"),
mean_rollback_min=("rollback_min", lambda x: x[x > 0].mean()),
)
.round(2)
)
display(dep)
ax = (dep["change_failure_rate"] * 100).plot(kind="bar", color=["#d32f2f", "#1976d2"])
ax.set_title("API change failure rate by deployment method")
ax.set_xlabel("Updates")
ax.set_ylabel("change_failure_rate (%)")
ax.grid(axis="y", alpha=0.3)
plt.tight_layout()
plt.show()
| number_of_times | mean_duration_min | change_failure_rate | mean_rollback_min | |
|---|---|---|---|---|
| strategy | ||||
| Bulk Update | 19 | 7.63 | 0.37 | 4.61 |
| rolling | 30 | 12.05 | 0.07 | 10.20 |
Reading the results
Rolling updates tend to limit the impact of failures even if they take longer. However, since these are fictitious values in the teaching materials, we do not definitively determine the superiority of each method; in actual use, we check with low traffic, change the old compatible database, and set up automatic rollback conditions.
No.079: Deploying the Frontend
Practical context
You can place static assets on the CDN or similar screens, but the browser cache will retain the old version. By adding a content hash to the file name and separating the cache period between HTML and assets, you can safely switch between them.
Design and validation
Compare the share of users receiving the new HTML and the new assets after a release. These are version adoption rates, not cache hit rates. Keep old assets available while cached HTML can still refer to them.
Check with Python
minutes = np.arange(0, 61, 5)
rollout = pd.DataFrame({"Minutes after update": minutes})
rollout["New HTML adoption (%)"] = (1 - np.exp(-minutes / 12)) * 100
rollout["New asset adoption (%)"] = (1 - np.exp(-minutes / 20)) * 100
display(rollout.iloc[[0, 3, 6, 12]].round(1))
ax = rollout.plot(
x="Minutes after update",
y=["New HTML adoption (%)", "New asset adoption (%)"],
marker="o",
)
ax.set_title("Penetration simulation of the new frontend version")
ax.set_xlabel("After deployment (minutes)")
ax.set_ylabel("New Version Usage Rate (%)")
ax.grid(alpha=0.3)
plt.tight_layout()
plt.show()
| Minutes after update | New HTML adoption (%) | New asset adoption (%) | |
|---|---|---|---|
| 0 | 0 | 0.0 | 0.0 |
| 3 | 15 | 71.3 | 52.8 |
| 6 | 30 | 91.8 | 77.7 |
| 12 | 60 | 99.3 | 95.0 |
Reading the results
The penetration rates of HTML and assets do not match. It is important to maintain compatibility between old and new APIs and not to delete old assets immediately. Monitor error rates by version number, and in case of issues, revert the HTML reference destination to the previous version.
No.080: Securely managing environmental variables and secrets
Practical context
Connection destinations and log levels are separated into environment variables, while DB passwords and API keys are separated into the secret management platform. Secrets are not only stored in encrypted storage but also manage viewing permissions, hiding in logs, rotation, and even revocation.
Design and validation
Compare storage choices using the illustrative score . The inputs are assumptions for prioritization, and the product is not a calibrated probability or expected monetary loss. Values embedded in frontend bundles are readable by users, even if supplied through build-time environment variables; keep secrets on the server.
Check with Python
secret_risk = pd.DataFrame(
{
"Storage Instructions": [
"Direct source writing",
"shared ownership.env",
"CI secret",
"Cloudsecretmanagement",
],
"Probability of exposure": [0.35, 0.18, 0.06, 0.025],
"degree of influence": [5, 5, 5, 5],
"Validity Period Date": [365, 180, 90, 30],
}
)
secret_risk["relative risk"] = (
secret_risk["Probability of exposure"]
* secret_risk["degree of influence"]
* secret_risk["Validity Period Date"]
).round(1)
display(secret_risk)
ax = secret_risk.set_index("Storage Instructions")["relative risk"].plot(
kind="bar", color="#7b1fa2"
)
ax.set_title("Illustrative risk by secret storage and rotation policy")
ax.set_xlabel("Storage Instructions")
ax.set_ylabel("relative risk (Assumption value)")
ax.grid(axis="y", alpha=0.3)
plt.tight_layout()
plt.show()
| Storage Instructions | Probability of exposure | degree of influence | Validity Period Date | relative risk | |
|---|---|---|---|---|---|
| 0 | Direct source writing | 0.350 | 5 | 365 | 638.8 |
| 1 | shared ownership.env | 0.180 | 5 | 180 | 162.0 |
| 2 | CI secret | 0.060 | 5 | 90 | 27.0 |
| 3 | Cloudsecretmanagement | 0.025 | 5 | 30 | 3.8 |
Reading the results
Centralized management and a short validity period help reduce relative risk. However, simply moving it to the management platform is not enough. Operational procedures include service unit authority, regular renewals, expiration upon retirement or outsourcing, emergency replacement in case of leaks, and log masking.
Design and operational considerations
- Containers are contracts of repeatability: You need to review Dockerfile, fixed versions, non-rooted execution, and healthcheck.
- Environment differences are managed as settings, not code.: Promote the same artifact and verify production-specific safety settings at startup.
- CI/CD measures both speed and stability simultaneously.: Continuously monitor not only build time but also change failure rates, recovery times, and defect leakage.
- Deployment is a phased business change that maintains compatibility: Design with the assumption that old and new APIs, databases, and screens will temporarily coexist.
- Manage secrets throughout their lifecycle: Define issuance, use, audits, rotation, revocation, and emergency replacement.
Preparing for production
- Definition of Business Impact: Decide on downtime allowances, busy hours, recovery objectives (RTO), data loss tolerance (RPO), and release approvers
- Supply chain management of deliverables: Fixing dependencies, SBOM, image signing, vulnerability scanning, and establishing reliable registries.
- Phased release: Automating development, validation, promotion to production, approval, migration, healthcheck, and rollback
- observability: Assign version numbers and correlation IDs to logs, metrics, and traces, linking alerts to root cause investigations
- Security Operations: Continue least privilege, secret updates, audit logs, and incident response training
Rather than aiming for a large-scale infrastructure from the start, we focus on a single critical API: “PR inspection→ image creation→ verification → environment approval → production monitoring→ rollback,” and improve based on measured KPIs.
Conclusion
From No.071 to No.080, to ensure the production progress API and field screens are securely delivered, we checked everything from Dockerfile to backend and front-end containerization, Compose, environment isolation, GitHub Actions, test automation, cloud deployment, and secret management.
The value lies not in adopting Docker or the cloud itself. It means reproducing the same deliverables, quickly inspecting changes, publishing limited impacts, and being able to return with justification in case of abnormalities. Since the timing and impact of downtime are critical on the manufacturing floor, technical KPIs are linked to production planning, quality, and maintenance decisions for operation.
Business inquiries
At Surikobo, we support everything from containerization of web systems and AI/APIs for manufacturing industries, CI/CD design, cloud migration, testing, monitoring, and operational KPI design to in-house training.
From the concept stage, such as “I want to systematize analysis running on the responsible person’s PC,” “I want to eliminate the dependence on individual releases,” or “I want to minimize the impact on factory operations while migrating to the cloud,” we can consult with you based on on-site constraints.
📩 Contact Us: www.surikobo.co.jp/contact Contact us to discuss your requirements.