Agenda
- What is docker?
- Docker vocabulary & commands
- Compose & usage
- Demo (dockerise Omnishop)
- Docker for Dev & CI/CD (next session ?)
- Kubernetes/AWS (next session)
⣿⡿⣮⡺⡔⡐⠠⠠⢀⠂⡀⡂⢆⠂⠄⠄⡀⡂⠄⠄⠠⠀⠠⠀⡀⢀⠀⢀⠀⡄⠀⠀⠈⠀⠀⠀⠄⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠂⠀⡀⠀⡀⢀⠀⡀⢀⠀⡀⢀⠀⢀⠀⡀⠀⢀⠀⡢⡑⡔⢀⠀⠀⠀⢀⢐
⣗⢿⣿⣷⢕⢌⠌⢬⢐⠡⠠⠈⢎⠬⡐⡐⡐⡜⠌⡐⠀⠂⡀⠂⣄⡀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⠀⠀⠀⠀⠀⠀⢀⠀⠠⢸⡔⢁⠠⠁⠐⡀⠐⡀⠄⢂⠐⡀⡂⡐⠠⠐⡀⠄⠄⡈⠠⠐⢌⢎⢐⠀⡐⢈⠠⢐⢰
⢌⡳⡽⣿⣳⡱⠨⡊⢦⢑⠨⢈⠐⠍⡆⡕⡸⡠⢡⡀⡂⠁⡀⡄⡠⣁⣀⢂⠀⠀⠀⠀⡀⠀⠀⠓⠀⠐⠀⠀⠀⠂⠰⠀⠀⡀⠄⠐⠀⢁⠀⡀⠂⡐⢀⢂⢐⠨⠰⢔⠡⡐⡨⢐⠰⡐⢔⢐⢅⢑⢔⢨⢐⠔⡕⡕⡕⣕⢐⠔⡌⡆⡣⡕⣕
⠰⣘⠭⣿⣿⣪⢱⠸⣸⢐⠅⡂⠅⡑⡸⣜⢪⠠⡑⠫⠐⡀⠈⠂⠃⠒⠈⠑⠀⠀⠈⠀⠀⠀⠀⠀⠀⠀⠀⢀⠐⠀⠦⠈⡀⠄⠠⢁⠈⠄⠠⠐⡐⢐⢐⠔⣰⣡⡳⣱⡱⡸⡨⡪⢪⢸⢸⢨⢲⡱⡱⡱⡱⡱⡱⡱⡱⡕⡕⣕⢕⡕⡜⣜⣿
⢕⢱⢩⢪⢿⣿⣧⡳⣸⠢⣑⠠⢁⢂⢪⢎⢮⠢⡊⢄⢁⠀⢨⡯⣳⡁⣯⢳⡅⣾⢹⡆⠯⡯⠊⣮⢫⡆⣯⢪⡆⢈⢈⣗⢼⡪⡧⡱⡇⣿⢨⣗⢯⡆⡢⡡⣳⣳⣻⢼⣞⡽⡎⡪⡪⢪⠢⡣⡫⡫⢪⠸⡨⡊⢎⢮⡣⡣⡽⡸⢸⢸⢸⣽⣿
⡱⡱⡸⡘⡜⡝⡽⣿⣷⣕⢎⢊⢐⢐⢱⢕⠼⡑⡕⡡⠠⢁⠰⣗⢽⡢⣿⢸⡇⣿⠀⠁⢘⣗⠈⣿⢸⡇⣿⢸⡃⢂⢐⣿⢸⢧⣟⢼⣯⣿⡸⣗⢿⡒⡌⢆⣿⣗⣿⢽⣗⣿⡣⡱⡘⢔⡑⠕⢌⢊⠆⡕⢔⠜⡜⡮⡍⣇⢗⢕⠱⡘⡜⣾⣿
⢜⢼⡸⡨⡪⡊⡎⡎⣟⣿⣗⡕⢔⠡⡪⡎⢇⢊⢌⠆⡂⠂⢘⣗⣽⠢⣿⣸⡇⣿⣰⡆⢸⡧⢈⣿⣸⡇⣿⢸⡇⡂⡐⣿⢼⣳⡯⡺⡧⣿⢺⣯⣻⡕⢜⠜⣾⣳⣿⢽⣗⣯⢇⢎⢪⠢⣊⠪⡊⡢⡑⠜⡔⡕⣏⢎⣎⢎⠎⡜⡨⢂⢳⣿⣟
⡎⡆⣏⠮⡪⡪⡪⡘⡔⡝⡿⣿⣎⢮⠪⡑⢅⢖⠪⠈⠄⠈⠄⠃⠉⠄⢉⢁⠁⡈⠑⠁⠀⡃⡢⠑⡉⠄⡑⡁⡃⡐⠨⡘⢍⠪⠣⡩⡃⢏⢪⠪⡣⡣⡱⡑⠽⣳⣫⢻⢺⢝⠪⡂⢇⢕⠢⠣⡑⢔⢘⢌⠢⡱⢱⢇⡗⡅⢇⠕⢌⢜⢾⣟⢗
⢪⢫⣎⢭⢣⡪⡪⡊⡆⡣⣇⡻⣯⢇⢇⡪⡎⡎⢌⠐⢈⠀⡂⢈⠠⠈⡀⠄⠠⠐⠀⠂⡁⢐⠨⢈⠢⠱⢌⠆⠢⡈⡊⠔⠡⡊⢌⠢⣊⠪⡢⢣⢣⢪⢢⠣⡣⢢⢊⠌⢆⠢⡑⢌⠢⠨⢊⠌⢌⠢⡑⢌⠪⡐⢕⢕⢗⡜⡜⣜⢜⢕⣿⡯⡢
| { | |
| "bootstrapped": true, | |
| "in_process_packages": | |
| [ | |
| ], | |
| "installed_packages": | |
| [ | |
| "ayu", | |
| "GitGutter", | |
| "Hipster", |
| gource -s .06 -1280x720 --auto-skip-seconds .1 --multi-sampling --stop-at-end --key --highlight-users --hide mouse,progress,files,filenames,dirnames --file-idle-time 0 --max-files 0 --background-colour 000000 --font-size 22 --title "Lucene/Solr" --output-ppm-stream - --output-framerate 30 | avconv -y -r 30 -f image2pipe -vcodec ppm -i - -b 65536K movie.mp4 | |
| && ffmpeg -i movie.mp4 -b:v 3048780 -vcodec libx264 -crf 24 output.mp4 |
| #!/usr/bin/env python | |
| from __future__ import print_function | |
| import os | |
| import tempfile | |
| import time | |
| import flask | |
| import psutil |
| <?php | |
| $fileName = $_FILES['afile']['name']; | |
| $fileType = $_FILES['afile']['type']; | |
| $fileContent = file_get_contents($_FILES['afile']['tmp_name']); | |
| $dataUrl = 'data:' . $fileType . ';base64,' . base64_encode($fileContent); | |
| $json = json_encode(array( | |
| 'name' => $fileName, | |
| 'type' => $fileType, | |
| 'dataUrl' => $dataUrl, |
| #!/usr/bin/perl | |
| #----------------------------------------------------------------------------- | |
| # | |
| # Copyright (C) 2011 | |
| # Michael Theall (mtheall) | |
| # Dave Murphy (WinterMute) | |
| # | |
| # This software is provided 'as-is', without any express or implied | |
| # warranty. In no event will the authors be held liable for any | |
| # damages arising from the use of this software. |
| #!/bin/bash | |
| if [ -z "$1" ]; then | |
| echo "Use create, revoke or list as subcommand." | |
| elif [ "$1" == "list" ]; then | |
| ls -1 ~/client-configs/files | |
| elif [ -z "$2" ]; then | |
| echo "No target" |
##useradd komutu.
-c "açıklama"
ex:
-c "müdür bey"
-s kabukı-adı
ex:
| from PIL import Image | |
| import numpy | |
| from random import choice | |
| from collections import defaultdict | |
| from argparse import ArgumentParser | |
| parser = ArgumentParser() | |
| parser.add_argument('WIDTH', type=int) | |
| parser.add_argument('HEIGHT', type=int) |