Pre - Modul C Network Devlopment Operations (Netdevops) - Pre - It Network System
Pre - Modul C Network Devlopment Operations (Netdevops) - Pre - It Network System
Bidang Lomba
IT NETWORK SYSTEMS
ADMINISTRATION
Contents
This Test Project proposal consists of the following documentation/files:
1. LKSN2021_ModulA_Integration Systems
2. LKSN2021_ModulA_users.csv
3. profileXML.ps1
4. profileXML.xml
5. Import-BulkUserFromCsv.ps1
6. Extra.html, Intra.html, Public.html, Manager.html
These files can be found in C:\ModuleB on DC.
Introduction
A small group of programmers is starting to adopt Docker to containerize their services.
Their network infrastructure is usually configured by calling the APIs from a
programming language. Recently their netdevops engineer has gotten a long paid leave,
you need to take over his responsibility.
Python
You can use docs.python.com for reference
● Install python version 3
● Create virtual environment on “/home/skill39/myenv”
● Create web apps use flask framework “/home/skills/myweb”
○ Use myenv virtual environment for isolated site directories
○ Create file main.py
from flask import Flask
from flask import request
from flask import render_template
sample = Flask(__name__)
@sample.route("/")
def main():
return render_template("index.html")
if __name__ == "__main__":
sample.run(host="0.0.0.0", port=8080)
○ Create index.html
<html>
<head>
<title>Sample app</title>
</head>
<body>
<h1>You are calling me from {{request.remote_addr}}</h1>
</body>
</html>
Docker
You can use docs.docker.com for reference
● Docker engine is already installed in skill39-pc and pod-server
● Deploy registry server in pod-server
● Use image locally in pod-server
● Make web apps myweb dockerize and create Dockerfile “/home/skills/myweb/Dockerfile”