海外TECH |
DEV Community |
How docker will save your time, and why should you learn it immediately. (1/2) |
https://dev.to/arshamalh/how-docker-will-save-your-time-and-why-should-you-learn-it-immediately-12-1ejk
|
How docker will save your time and why should you learn it immediately What is Docker And why is it popular Everywhere on the internet you find articles about how docker is compared with VM and diagrams like this But I m going to teach you Docker just as a tool so it will be so easier to understand and we don t dissect it s underlying functionality a lot we do it just a few Don t install new apps just pull them The most interesting thing about docker for a beginner is the ability to pull different tools so easily DockerHub will be like App store As you see we can pick up any app that we want actually we call them images in the world of Docker What is an image Image is a collection of applications and commands running on a base image and this base image itself is a simplified Linux distro This Linux doesn t have a GUI and could be any distro such as Ubuntu Alpine Bullseye etc For example you can install almost any version of any database such as Postgres Redis etc by pulling their image and run them as a container You can have multiple versions of the same application at the same time What is a container Image itself can be supposed as a executable file it is nothing unless you run it anytime you run it a container process will be made you can run many same containers using an image Getting dirty with Redis Let s have a hands on experience with Redis Go to this linkIn this picture Tags can be assumed as different version of images tag name may include base image name and its version Official images are famous projects that are being made constantly by docker team actually everyone including you and me can make an image and push it on Dockerhub as a public or private docker image At the top right you can see docker pull redis command it s the simplest way to pull this image but we can find more detailed commands at the bottom of that page For example this command will pull the redis image and run a container called my redis container docker run name my redis container d redis d is used for detaching the process it will run this container and leave the shell alone for your future use But you re not able to use this container you should expose the Redis port docker run name my redis container p d redis p is a port mapping that maps port of the container to the of our localhost And you can now access Redis through localhost What other things can I do Are you a windows user but you like to use Linux without getting into the trouble of VM or Double boot Run this command docker run name itubu it ubuntuThis will make a container named itubu and connect your shell to its shell the run command first look in your local to see if there is any image called ubuntu then if it doesn t exists docker will pull it from Dockerhub Do you want to use Tor network without getting into the trouble of configuring tor Run this command sudo docker run p p d dperson torproxydperson torproxy is an unofficial docker image p and p is a port mapping that maps port of container to the of our localhost Now you can proxy your requests through Tor network using this ports Do you want to use a headless browser Run this commanddocker run p browserless chromeAnd you ll have a chrome browser on localhost It could be so helpful for scrapping We spoke about databases before and there are so many other usecases It mostly needs no effortDocker itself plays an important role in DevOps world and without a doubt it has so many tips and tricks But in most cases as a beginner you will just need a one line command or a line Dockerfile to make your project way much better The advantages of using Docker is explained in a video I added to the end of this article and I m not covering them Other resourcesThere are so many tutorials out there but I m gonna suggest the ones that I enjoyed the most As an instruction that show how containerization will help us Containerization explainedDocker and Kubernetes course by Stephan Grider Final quoteI tried to help you understand that docker is not a challenge it s a tool to make your life easier this part included some cool stuff next part we will cover basics of writing a Dockerfile and how to make your custom images |
2022-09-01 19:20:09 |
海外TECH |
DEV Community |
Notes on GitHub READMEs |
https://dev.to/themfon/notes-on-github-readmes-5gb2
|
Notes on GitHub READMEsThe first time I saw the word README I was trying to complete a task The instruction was to create a README md file add some information about the project and push it to my GitHub I didn t quite understand its purpose until I had to work on a collaborative project that required deployment Coding best practice requires that every repository has a README file What is a README File A README File is a text file that gives users the basic required information about your project at a glance It describes your project states why your project is valuable what users can do with your project and how they can use it among other things It is usually the first thing people engage with when they check out any project you have on your repository It needs to be concise What to Include in a README File Project Description A properly drafted description includes the following a Your project name b What your project does c Who the target user is d How it works ande The technologies you used and why you used themThe project description allows other developers and collaborators to have a high level understanding of what your project entails How to Install the ProjectIf the user has to install the project on a local device you should include the necessary steps to install your project and the required dependencies if any How to Use the ProjectBe sure to guide users on how to use the project Provide step by step instructions These instructions will be a reference point when users encounter any difficulty You can make the instructions more interactive by using visual aids like screenshots or clips to show examples of the running project and results when users adhere to them Also if your project requires authentication this is the right section to include the credentials How to Contribute to the ProjectInclude instructions on how other developers can contribute to your project if you intend to collaborate with other developers or if the project is open source CreditsYou should include a list of people you worked with on the project if you worked on the project as a team You can add their GitHub profiles LicenseThere are various types of licenses The one you can choose depends on the kind of project you are creating The license helps collaborators know what to do and what not to do Also If your README is very long you might want to add a table of contents to make it easy for users to navigate to different sections easily It will make it easier for readers to move around the project with ease Keep it up to date It is good practice to ensure that your file is up to date Make sure to update it when necessary Be concise and include only the required details Your documentation should contain all other information There are tools you can use to automatically generate a README for your project Enjoy References |
2022-09-01 19:06:19 |
海外TECH |
Engadget |
The next USB standard will double existing speeds even with an older cable |
https://www.engadget.com/usb-4-version-2-194625034.html?src=rss
|
The next USB standard will double existing speeds even with an older cableThere s a new super fast version of USB on the horizon and you won t even have to buy a brand new cable to take advantage of it The USB Promoter Group announced that the next gen USB Version standard is “pending release and will double the bandwidth of existing USB connectors from Gbps to up to Gbps Amazingly the new standard is also backwards compatible with previous USB cables This means that existing USB C cables capable of Gbps will also get the faster speeds when the new standard becomes available From the press release “Key characteristics of the updated USB solution include Up to Gbps operation based on a new physical layer architecture using existing Gbps USB Type C passive cables and newly defined Gbps USB Type C active cables The USB promoter Group didn t explain the details around how that s possible but a spokesperson for the organization told The Verge it was “a requirement when the new specification was developed and the specifics as to how Gbps signaling is accomplished will be disclosed once the final specification is released It s not yet clear when the new standard will actually reach consumers In its press release the USB Promoter Group said the “update is specifically targeted to developers at this time so it could still be some time before the rest of us can get computers with the new super fast connector |
2022-09-01 19:46:25 |
Cisco |
Cisco Blog |
Try the New 8000v Emulator Sandbox for SONiC |
https://blogs.cisco.com/developer/8000vemulatorsandboxsonic01
|
Try the New v Emulator Sandbox for SONiCA modern cloud scale data center network requires resilient server to server communication even when faced with a large and rapid increase in the number of devices on the network This can be achieved with Software for Open Networking in the Cloud SONiC and has been deployed and tested in some of the world s largest and most demanding cloud networks |
2022-09-01 19:22:26 |
海外TECH |
WIRED |
GM's Cruise Recalls Self-Driving Software Involved in June Crash |
https://www.wired.com/story/gms-cruise-recalls-self-driving-software-involved-in-june-crash/
|
GM x s Cruise Recalls Self Driving Software Involved in June CrashAfter two people were injured in the incident Cruise blocked its robot vehicles from making left turns for several weeks before issuing a software update |
2022-09-01 19:34:38 |
ニュース |
BBC News - Home |
Zaporizhzhia nuclear plant: UN experts make first inspection |
https://www.bbc.co.uk/news/world-europe-62757024?at_medium=RSS&at_campaign=KARANGA
|
europe |
2022-09-01 19:22:03 |
ニュース |
BBC News - Home |
Feist quits Arcade Fire tour, citing allegations against Win Butler |
https://www.bbc.co.uk/news/entertainment-arts-62759868?at_medium=RSS&at_campaign=KARANGA
|
butler |
2022-09-01 19:44:57 |
ニュース |
BBC News - Home |
Pierre-Emerick Aubameyang: Chelsea agree deal for Barcelona striker, says Guillem Balague |
https://www.bbc.co.uk/sport/football/62748830?at_medium=RSS&at_campaign=KARANGA
|
Pierre Emerick Aubameyang Chelsea agree deal for Barcelona striker says Guillem BalagueChelsea agree a deal in principle worth £m plus defender Marcus Alonso for Barcelona striker Pierre Emerick Aubameyang according to Guillem Balague |
2022-09-01 19:24:48 |
ニュース |
BBC News - Home |
US Open: Iga Swiatek beats Sloane Stephens to reach third round |
https://www.bbc.co.uk/sport/tennis/62758987?at_medium=RSS&at_campaign=KARANGA
|
US Open Iga Swiatek beats Sloane Stephens to reach third roundWorld number one Iga Swiatek comes out on top in a meeting of Grand Slam champions to beat Sloane Stephens and reach the US Open third round |
2022-09-01 19:09:40 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
歴史的な物価高は「利上げ競争」による景気減速で落ち着くのか - 政策・マーケットラボ |
https://diamond.jp/articles/-/309007
|
引き上げ |
2022-09-02 04:50:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
岸田首相の「原発新増設」は、電力の”二重危機”を打開する正しい道か - 政策・マーケットラボ |
https://diamond.jp/articles/-/309008
|
古色蒼然 |
2022-09-02 04:45:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
公立小教員の「残業代請求」訴訟、東京高裁が控訴棄却…その理由は? - 弁護士ドットコム発 |
https://diamond.jp/articles/-/308866
|
弁護士ドットコム |
2022-09-02 04:40:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
マクドナルドが「カフェ経営」を頑張る理由、なぜ都心に少なく地方に多い? - 今週もナナメに考えた 鈴木貴博 |
https://diamond.jp/articles/-/309009
|
マクドナルドが「カフェ経営」を頑張る理由、なぜ都心に少なく地方に多い今週もナナメに考えた鈴木貴博ファストフード大手のマクドナルドのカフェ業態「McCafébyBaristaマックカフェバイバリスタ」をご存じでしょうか。 |
2022-09-02 04:35:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
追悼・稲盛和夫氏、「きゅうり10本300円」の買い物を経営の神様が許さない理由 - 「超一流」の流儀 |
https://diamond.jp/articles/-/309089
|
稲盛和夫 |
2022-09-02 04:32:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
中国人の「祖国脱出」が静かに進む…人気移住先・日本を中国資本が席巻か - China Report 中国は今 |
https://diamond.jp/articles/-/309010
|
chinareport |
2022-09-02 04:30:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
商品が売れた真の理由を「20の変数」で解明、売上を再現できる極意とは - ニュース3面鏡 |
https://diamond.jp/articles/-/308829
|
|
2022-09-02 04:25:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
ホンダがEV電池に6000億円投資!韓国LGとの提携は「したたかな戦略」だ - モビリティ羅針盤~クルマ業界を俯瞰せよ 佃義夫 |
https://diamond.jp/articles/-/309011
|
自前主義 |
2022-09-02 04:20:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
「くまモン」人気がアジアで高まる理由、なぜ海外では使用料を課す? - ニュース3面鏡 |
https://diamond.jp/articles/-/308125
|
理由 |
2022-09-02 04:15:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
「グミブーム」到来!地球グミ、水グミ…人気商品から変わり種まで紹介 - News&Analysis |
https://diamond.jp/articles/-/309012
|
「グミブーム」到来地球グミ、水グミ…人気商品から変わり種まで紹介NewsampampAnalysisおやつの「グミ」がSNSを中心に流行している。 |
2022-09-02 04:05:00 |
ビジネス |
東洋経済オンライン |
「ポケモン」が救う?危機のロンドンロープウェー スポンサー契約切れピンチ、ただ効果は一時的 | 海外 | 東洋経済オンライン |
https://toyokeizai.net/articles/-/615341?utm_source=rss&utm_medium=http&utm_campaign=link_back
|
東洋経済オンライン |
2022-09-02 04:30:00 |
コメント
コメントを投稿