0% found this document useful (0 votes)
5 views3 pages

Pre - Modul C Network Devlopment Operations (Netdevops) - Pre - It Network System

Modul C LKS

Uploaded by

ahmad fauzi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views3 pages

Pre - Modul C Network Devlopment Operations (Netdevops) - Pre - It Network System

Modul C LKS

Uploaded by

ahmad fauzi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

LOMBA KOMPETENSI SISWA

SEKOLAH MENENGAH KEJURUAN


TINGKAT PROVINSI JAWA BARAT
TAHUN TAHUN 2021

NASKAH PRA SOAL


MODUL C NETWORK DEVELOPMENT OPERATIONS
(NETDEVOPS)
(TERBUKA)

Bidang Lomba
IT NETWORK SYSTEMS
ADMINISTRATION

PEMERINTAH DAERAH PROVINSI JAWA BARAT


DINAS PENDIDIKAN
Jl. Dr. Radjiman No. 6 Telp. (022) 4264813 Fax. (022) 4264881
Wisselbord (022) 4264944, 4264957, 4264973
Bandung ( 40171 )
Introduction to Test Project

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”

You might also like