Create and build image from Dockerfile. Run docker container.
Hello. In this session you will learn how to create your own docker image.
Tasks.
1.Create file with python script that prints “hello-world”
2.Create Dockerfile:
2a) Use the image python:3.8-slim-buster.
2b) Set the working directory within the container /app.
2c) Copy the current directory content into container at /app.
2d) Specify the command to run when the container starts.
1
view
Install Docker engine and run first container.
Docker Lab-1.1
Tasks.
1. Add the Docker repository
2. Install Docker Engine
3. Run the “hello-world” Docker image
4. Show all running containers
1
view
Set up SSH key-based authentication
Tasks.
1. Create an SSH key pair on server1
2. Send the SSH public key to server2
3. Run the hostname command on the server1 by using ssh to display the hostname of the server2
4. Login to server2 with key based Authentication
Configuring the iptables firewall in Centos
In this session I will show you examples with iptables. You can repeat after me or сomplete these tasks on your own.
Tasks.
1. Open limited connection to SSH from IP 192.168.0.10
2. Open access through ports 80 and 443 for everyone
3. Delete previous rules(80 and 443)
4. Open access for IP 192.168.1.10 and only port 3306
5. Deny access to the server for IP 192.168.1.11
6. Display created rules
6
views
How to install Gitlab on Ubuntu.
In this video I'll show you how to install Gitlab CI to Ubuntu.
The following section detail how to install Gitlab CI:
1. Install required components
2. Install postfix
3. Install the repository
4. Install Gitlab
5. Configure web address
3
views
How to configure devices from Netbox via AWX
The following section detail how to configure devices from Netbox:
1. Create hosts for cisco devices in AWX by dns name
2. Create ansible playbook in git for cisco interfaces
3. Create project in AWX and sync with git
4. Create credentials in AWX
5. Create template in AWX
6. Create application for AWX
7. Create webhook in netbox with target to AWX Api by URL
8. Update interface in netbox and view changes in cisco
3
views
Extending the Root Partition with LVM. Extending EXT4 file system.
This is hands-on lab and tutorial. How to resize the root partition with logical volume manager(LVM).
Tasks.
1. Extending physical disk to 5 Gb
2. Create file 1.txt in /tmp
3. Resize partition to maximum size
4. Resize LVM partition to maximum size
5. Extending the root logical volume to maximum size
6. Extend file system
1
view
Extending the Root partition with LVM. Extending XFS file system.
Hello everyone. For upgrade your skills you can go through Linux Hands-on labs playlist.
Tasks.
1. Extending physical disk to 5 Gb
2. Create file 1.txt in /tmp
3. Resize partition to maximum size
4. Resize LVM partition to maximum size
5. Extending the root logical volume to maximum size
6. Extend file system
9
views
Populating interfaces and descriptions of devices
In this video I show you how to add interfaces to existing devices in Netbox.
I will explain how make post request to Netbox API and choose required parameters for it. How to backup cisco configs to local store.
Watch it and enjoy)
Steps:
1. Configuring DNS resolving of devices on host with python
2. Get configuration file from cisco
3. Parse all parameters of interface
4. Add new interfaces with post request
5. Update existing interfaces if it has any changes
6. Check the result.
Telegram channel
https://t.me/automationofinfrastructure
Git repository with code:
https://gitlab.com/Sasha0986/netbox/-/tree/master/postinterfaces
Website:
https://automationtools.me
2
views