Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Usare SQL Server for Linux e Docker per semplificare i processi di testing - DevOps@Work 2020

86 views

Published on

DevOps@Work 2020
Roma, 16 January 2020
https://www.domusdotnet.org/events/

SQL Server per Linux apre un nuovo mondo di possibilità per testare il codice SQL in modi che prima non erano pensabili.
Esploriamo alcune opzioni come:
- Ripristinare il database ad uno stato noto tra un test e l'altro
- Provare più varianti di configurazione
- Eseguire test di integrazione nella pipeline CI
- Test delle migrazioni dello schema
- Attach di grossi database eseguendo i container nel cloud

Published in: Software
  • Get the best essay, research papers or dissertations. from ⇒ www.HelpWriting.net ⇐ A team of professional authors with huge experience will give u a result that will overcome your expectations.
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Hi there! I just wanted to share a list of sites that helped me a lot during my studies: .................................................................................................................................... www.EssayWrite.best - Write an essay .................................................................................................................................... www.LitReview.xyz - Summary of books .................................................................................................................................... www.Coursework.best - Online coursework .................................................................................................................................... www.Dissertations.me - proquest dissertations .................................................................................................................................... www.ReMovie.club - Movies reviews .................................................................................................................................... www.WebSlides.vip - Best powerpoint presentations .................................................................................................................................... www.WritePaper.info - Write a research paper .................................................................................................................................... www.EddyHelp.com - Homework help online .................................................................................................................................... www.MyResumeHelp.net - Professional resume writing service .................................................................................................................................. www.HelpWriting.net - Help with writing any papers ......................................................................................................................................... Save so as not to lose
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THIS can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THIS is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THIS Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THIS the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THIS Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Usare SQL Server for Linux e Docker per semplificare i processi di testing - DevOps@Work 2020

  1. 1. Usare SQL Server for Linux & Docker per semplificare i processi di testing Giulio Vian #DOAW20
  2. 2. Hardware spec: 1 KB RAM (16KB after upgrade) 4 KB ROM (8KB after upgrade) First computer Past Companies Communities Giulio Vian DevOps Engineer II #DOAW20
  3. 3. Agenda Docker in quattro slide SQL Server in un Container Costruire un database Magie nel cielo Condotte e test automatici E poi? #DOAW20
  4. 4. Docker in quattro slide #DOAW20
  5. 5. Container Processo che vive in una bolla Chiamate al Sistema intercettate Nasce e prospera su Linux #DOAW20
  6. 6. quindi? Filesystem a strati Sola lettura Volumi esterni #DOAW20
  7. 7. Terminologia Docker Gestisce l’intercettazione Image Formato per filesystem virtuali Container Processo controllato da Docker Registry Deposito per le images Kubernetes Gestisce gruppi di container (K8S) #DOAW20
  8. 8. SQL Server in un Container #DOAW20
  9. 9. Dockerfile (SQL Server) FROM ubuntu:16.04 EXPOSE 1433 COPY ./install / CMD ["/opt/mssql/bin/sqlservr"] #DOAW20
  10. 10. Cose da sapere Solo SQL Authentication SQL 2017 o 2019 Windows ≠ Linux #DOAW20
  11. 11. da cui si vede che il filesystem è in sola lettura #DOAW20
  12. 12. #DOAW20
  13. 13. in cui si impara come rendere permanente una directory #DOAW20
  14. 14. #DOAW20
  15. 15. Riassumendo Istanza di DB transiente o persistente #DOAW20
  16. 16. Costruire un database #DOAW20
  17. 17. che ci mostra come lanciare uno script SQL all’avvio #DOAW20
  18. 18. #DOAW20
  19. 19. da cui si apprende come creare un’immagine docker ripristinando un backup #DOAW20
  20. 20. #DOAW20
  21. 21. “Non c’hai capito niente, eh?” 1. Immagine con DB di produzione 2. Più gli ultimi cambiamenti 3. Reset del DB ad uno stato noto #DOAW20
  22. 22. Scenari Una copia del DB per sviluppatore Reset pressoché immediato Test di Integrazione automatizzati Grossi DB nel Cloud #DOAW20
  23. 23. Magie nel cielo #DOAW20
  24. 24. Pezzi Azure Container Registry (ACR) Azure Container Instance Azure Files Azure Kubernetes Service (AKS) Azure Disks Azure Key Vault #DOAW20
  25. 25. ove si scopre come ripetere lo stesso tra le nuvole #DOAW20
  26. 26. #DOAW20
  27. 27. qui si capirà come trattare moli sostanziose di dati #DOAW20
  28. 28. #DOAW20
  29. 29. Riassumendo Istanza di DB da backup di produzione, ripulita e replicabile all’infinito #DOAW20
  30. 30. Condotte e test automatici #DOAW20
  31. 31. da cui si vede infine come eseguire test automatizzati #DOAW20
  32. 32. #DOAW20
  33. 33. Riassumendo Posso automatizzare ogni test relativo al DB #DOAW20
  34. 34. E poi? #DOAW20
  35. 35. Effetti collaterali Patches #DOAW20
  36. 36. Suggerimenti Contained Databases #DOAW20
  37. 37. Links https://www.mssqltips.com/sqlservertip/3091/masking-personal-identifiable-sql-server-data/ https://github.com/microsoft/sql-server-samples https://docs.microsoft.com/en-us/sql/linux/quickstart-install-connect-docker https://docs.microsoft.com/en-us/sql/linux/sql-server-linux-configure-mssql-conf https://docs.microsoft.com/en-us/azure/container-registry https://docs.microsoft.com/en-us/azure/container-instances/container-instances-volume-azure-files https://docs.microsoft.com/en-us/azure/container-instances/container-instances-volume-secret https://docs.microsoft.com/en-us/azure/aks/concepts-storage https://docs.microsoft.com/en-us/azure/aks/concepts-security#kubernetes-secrets https://docs.microsoft.com/en-us/azure/key-vault/ https://www.softwaretestinghelp.com/database-testing-process/ https://www.softwaretestinghelp.com/data-migration-testing/ https://datamigrationpro.com/data-migration-testing-strategy/ #DOAW20
  38. 38. Tracce giulio.dev@casavian.eu @giulio_vian https://www.slideshare.net/giuliov http://blog.casavian.eu https://medium.com/@giuliovdev https://github.com/giuliov #DOAW20
  39. 39. Fine Q&A #DOAW20

×