DevOps Projects for Beginners: Build a Deployable Portfolio
Choose DevOps projects for beginners that produce a small application you can build, run in a lab and explain. Start with a containerised static site, then add automated checks and a record of failures and corrections. A deployable portfolio needs source files, clear environment requirements, verification and cleanup instructions.
Choose DevOps projects for beginners that produce a small application you can build, run in a lab and explain. Start with a containerised static site, then add automated checks and a record of failures and corrections. A deployable portfolio needs source files, clear environment requirements, verification and cleanup instructions.
The example below is a local lab design, not a hardened production service. Commands and configuration were reviewed against documentation on 17 November 2026 and were not executed. Use a private practice directory, dummy content and an existing authorised Docker environment.
Build evidence with the project
- Keep the first application small enough to explain.
- Record inputs and the image you actually used.
- Check behaviour before claiming success.
- Document failures, cleanup and remaining limitations.
Pick a project with a clear completion condition
Write one sentence describing what should work. For this example, a container should serve a small static page through a loopback port on the lab machine. The page contains no personal information and needs no database or application credential.
Decide what evidence will support the claim: source revision, build record, image reference, observed page and cleanup result. Leave those fields empty until you perform the exercise. Intended behaviour in a tutorial is different from an observed result in your own environment.
The WebAsha DevOps roadmap can help you choose which foundation gaps to address before adding complexity.
| Stage | Project work | Completion evidence |
|---|---|---|
| Source control | Create and review a small static page | A clear change and its rationale. |
| Container delivery | Build and run the page in a local lab | Image reference and observed response. |
| CI checks | Automate build and a scoped behaviour check | Run record with success and failure interpretation. |
| Infrastructure review | Explain a proposed environment change | Reviewed plan, scope and cleanup responsibilities. |
| Operational handover | Investigate a supplied lab fault | Evidence, correction and verification note. |
Prepare the local lab and source files
Use an existing Docker Engine 28.0.0 or newer in a standard bridge-network lab with authorised access to the daemon. Confirm that host port 8080 and the example container name are unused. Check your actual platform’s networking before relying on the binding behaviour.
Docker’s port-publishing documentation explains loopback binding and warns that releases older than 28.0.0 can allow hosts on the same L2 network to reach ports published to localhost. This tutorial therefore uses the newer-engine prerequisite and an explicit loopback address. [3]
Create a new private practice directory and save the following content as index.html. Keep the file beside the Dockerfile introduced in the next section. No account identifiers, contact form or private project data are needed.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>DevOps practice site</title>
</head>
<body>
<h1>DevOps practice site</h1>
<p>Version one: local lab demonstration.</p>
</body>
</html>
Add a README for environment requirements and your observations. Track only the files you intend to share and review the repository before publishing it.
Project 1: package the static site
Save this as Dockerfile with no filename extension. The official NGINX image documents serving static content from its HTML directory and building an image with copied site files. Its supported tags include stable-alpine at the research date. [1]
FROM nginx:stable-alpine
COPY index.html /usr/share/nginx/html/index.html
Dockerfiles describe the build instructions. Here, FROM selects the base image and COPY adds the local page to the resulting image. [2] Keep the build directory limited to this exercise.
The stable-alpine tag can move. For a reproducible extension, record the exact image digest used and review updates deliberately. Docker’s build guidance explains digest pinning as a way to select the same image content. [6]
From the directory containing both files, build the image with the command below. It can retrieve the base image and writes build data and a local image to Docker storage. It is not an instruction to modify a production host.
docker build --tag portfolio-site:lab .
The intended result is a locally tagged image. Record the build outcome and image identity from your own lab. No successful build is claimed here.
Run, verify and stop the lab container
After reviewing the prerequisites and completing the build, run the command below. It creates a background container and maps the specified host loopback port to the container’s web port. Use this name only for the exercise; choose a different unused name if it already exists. Use your chosen name consistently in the commands below.
docker run --rm --detach --name portfolio-site-demo --publish 127.0.0.1:8080:80 portfolio-site:lab
The Docker run reference documents detached execution, named containers, port publishing and automatic removal through the selected options. [4] No persistent volume is attached in this example.
On the Docker host, open http://127.0.0.1:8080/ in a browser. The intended page shows the heading “DevOps practice site” and the version-one text. Confirm those details yourself before recording the project as working.
If the result is unexpected, inspect the running container and recent logs. The list command supports name filtering, and logs supports limiting the requested lines. Review output privately before sharing it. [9] [10]
docker ps --filter name=portfolio-site-demo
docker logs --tail 30 portfolio-site-demo
When finished, stop only the container created for this exercise:
docker stop portfolio-site-demo
Stopping ends the container’s process. Because it was started with --rm, the container is removed after it exits; your source files and built image remain. The stop reference describes the stop operation, while run documents automatic removal. [5] [4]
These commands are documentation-reviewed and unexecuted. Container startup and a visible page are intended outcomes, not observed test results. Treat this as a local demonstration with no claim of production hardening.
Project 2: add an automated build and behaviour check
Once the local workflow is understood, move its checks into your chosen CI system. Start with the repository revision, build inputs and result you want the job to verify. Keep deployment or public publishing as a separately authorised stage.
GitHub Actions is one possible platform. Its documentation describes event-triggered workflows containing jobs and steps run on runners. [7] The same learning questions apply when using another CI service.
For this site, define a job that builds the image, starts an isolated test container, waits for a bounded startup period and checks the expected page. Arrange cleanup for failure as well as success. Select the runner’s actual port and container strategy to avoid conflicts.
Keep the first failure record. Explain whether the failure came from the source, build, runtime startup or the check itself. A green job establishes only the behaviour covered by its checks. This section is a project brief, not a tested provider-specific workflow.
Project 3: practise a versioned change and recovery
Change the displayed version text in a new source revision and rebuild using a distinct local image tag. Record which image was selected for the new container. Check the visible content against that revision and record the image identity behind any reused tag.
Design a small lab failure, such as requesting a page that is intentionally absent, and write what the observation means. Keep deliberate failures separate from accidental ones so the report remains accurate.
For a recovery rehearsal, describe which earlier source and image you intend to use and why. Confirm the local container name and port are free before replacing the exercise container. Verify the restored page and record what the rehearsal did not test.
No production rollback is implied. This static demonstration has no database migration, stateful storage or external transaction. A real application needs recovery checks for its own dependencies and data.
Project 4: review infrastructure before provisioning
Add infrastructure automation only when you can explain the environment you need. Write a small design naming the resources, owner, access boundaries and cleanup responsibilities. Use a supplied sandbox and confirm resource responsibilities before creating anything.
Terraform’s documented workflow separates writing configuration, planning proposed changes and applying approved operations. That gives a useful structure for a plan-review project. [8]
The initial deliverable can be a reviewed proposal: what the change would create, update or remove, which environment it targets and what still needs approval. A plan is not evidence that the service was deployed. If execution is outside your authorised scope, state that limitation.
For more practice context, read the WebAsha guide to starting DevOps practice. Keep infrastructure state, credentials and private environment details out of the portfolio.
Project 5: write a troubleshooting handover
| Observation | Next check | Claim to avoid |
|---|---|---|
| Build cannot find index.html | Directory, filename and build context | Assuming the base image is broken. |
| Container name is already in use | Existing object ownership and exercise name | Stopping another person’s container. |
| Port 8080 cannot be bound | Which permitted process or container owns it | Broadly stopping services to free the port. |
| Page displays old content | Selected image and source revision | Assuming a rebuild changed the running container. |
| Browser cannot reach the site | Container state, mapping and host context | Assuming successful build proves reachability. |
| CI passes but manual check differs | Revision, environment and test coverage | Treating one check as complete verification. |
Use one failure to practise a handover. Record the symptom, relevant observations, the correction you made and the check afterward. Keep the outcome within the lab scope and distinguish a proposed correction from one you executed.
Explain remaining uncertainty. If your check only inspected the homepage, do not describe all routes as tested. If a resource was never created, do not write a fictional cleanup result.
Make the repository useful to another reader
Write a README that lets a permitted reader understand the project without guessing. Keep prerequisites, file layout, intended behaviour and cleanup together. Record the result you actually observed and label anything not executed.
Project goal and intended audience:
Authorised lab and prerequisites:
Source revision and files you changed:
Base image reference and built image identity:
Build and run steps actually performed:
Verification performed and observed result:
Failure investigated and correction made:
Cleanup performed and remaining resources:
Known limitations and untested behaviour:
Sources, starter material and collaborators:
Credit source material and identify your contribution. If you followed a walkthrough, explain what you reproduced and which extension you designed yourself. Keep screenshots supplementary to source and written evidence.
Review the files before sharing. Remove secrets, personal records and restricted training content, and check that any retained logs are suitable for disclosure. Confirm that the repository link opens only the material you intend to share.
Keep the project maintainable by noting versions and a review date. A portfolio may become harder to reproduce as tags, dependencies or platform behaviour change.
Choose the next extension from a real gap
After the static-site workflow is clear, choose one extension you can verify: a better CI failure check, a reviewed infrastructure proposal or a useful operational observation. Keep each change small enough to explain with its evidence.
The WebAsha DevOps question guide can help you rehearse the project discussion. Explain the input, decision and result using your own records.
The goal is a deployable lab portfolio with honest boundaries. It does not establish production readiness, a particular employer’s assessment or an employment outcome. Ask for feedback on both the implementation and the explanation.
Discuss the DevOps Course with WebAsha Technologies. Contact WebAsha with your starting skills and ask about project practice and review arrangements.
Official references
- Docker Hub: NGINX official image
- Docker: Dockerfile overview
- Docker: Port publishing and mapping
- Docker: Container run reference
- Docker: Container stop reference
- Docker: Build best practices
- GitHub: Understanding GitHub Actions
- HashiCorp: What is Terraform?
- Docker: List containers
- Docker: Container logs
Frequently Asked Questions
What's Your Reaction?
Like
0
Dislike
0
Love
0
Funny
0
Wow
0
Sad
0
Angry
0