SlideShare una empresa de Scribd logo
1 de 24
AtoM and VagrantINSTALLING AND CONFIGURING THE ATOM VAGRANT BOX
FOR LOCAL TESTING AND DEVELOPMENT
What is Vagrant?
Vagrant is a tool for building complete
development environments. With an
easy-to-use workflow and focus on
automation, Vagrant lowers development
environment setup time, increases
development / production parity, and
makes the "works on my machine" excuse
a relic of the past.
Vagrant was started in January 2010 by
Mitchell Hashimoto.
https://www.vagrantup.com/about.html
Vagrant remains and always will be a liberally licensed open
source project. Each release of Vagrant is the work of hundreds
of individuals' contributions to the open source project.
What is VirtualBox?
VirtualBox is an open source, cross-platform
virtualization application.
When we describe VirtualBox as a "virtualization" product, we
refer to "full virtualization", that is, the particular kind of
virtualization that allows an unmodified operating system with
all of its installed software to run in a special environment, on
top of your existing operating system. This environment, called
a "virtual machine", is created by the virtualization software by
intercepting access to certain hardware components and
certain features. The physical computer is then usually called
the "host", while the virtual machine is often called a "guest".
Most of the guest code runs unmodified, directly on the host
computer, and the guest operating system "thinks" it's running
on a real machine.
https://www.virtualbox.org/wiki/Virtualization
The AtoM Vagrant Box
AtoM and all of its
dependencies….
Are packaged as a
Vagrant box…
Which is run by VirtualBox
as a virtual machine…
And accessed via SSH
and/or a web browser.
Installing the Atom Vagrant Box
Step 1: Download and Install VirtualBox
• https://www.virtualbox.org/
Step 2: Download and Install Vagrant
• https://www.vagrantup.com/
Installing the Atom Vagrant Box
Step 3: open your command line interface
Applications/Utilities/Terminal
Search for “cmd” and hit enter
CTRL + ALT + T
Installing the Atom Vagrant Box
Step 4: make a new directory on your desktop
and then change directories into it
> cd Desktop
> mkdir vagrant-2.4
> cd vagrant-2.4
> cd Desktop
> mkdir vagrant-2.4
> cd vagrant-2.4
> cd ~/Desktop
> mkdir vagrant-2.4
> cd vagrant-2.4
Installing the Atom Vagrant Box
Step 5: Initialize the directory to be a Vagrant
environment
> vagrant init artefactual/atom
Step 6: Run Vagrant!
> vagrant up
And Now an Intermission for our Windows Users…
(Mac and Linux users, feel free
to skip ahead a couple slides)
http://wgnradio.com/2013/01/29/lets-all-go-to-the-lobby/comment-page-1/
SSH, Vagrant, and Windows
What is SSH?
SSH stands for Secure SHell. It is a secure way of
connecting to a remote computer or server using
encryption to protect the connection.
To connect to the guest O/S (the Vagrant box –
the virtual machine you are running) from the
Host (your computer), we use SSH.
Linux and Mac support an SSH client natively, but
Windows does not – so we need to install an SSH
client to access the AtoM Vagrant box’s
command-line interface.
Our preferred Windows SSH client is PuTTY.
Step A: Download and Install PuTTY
• http://www.putty.org/
• Follow the link to the Downloads page
SSH, Vagrant, and Windows
Step B: Launch PuTTY and Configure it for Vagrant access
• Host Name: 10.10.10.10
• Port: 22
In the “Saved Sessions” field, give
this configuration a name so you
can reuse it (e.g. AtoM Vagrant Box),
then click “Save.”
SSH, Vagrant, and Windows
Step B: Launch PuTTY and Configure it for Vagrant access
In the options on the side, click
“Translation” under the Window heading.
Select UTF-8 as the Remote character set.
In the menu, click the top link, “Session”,
to return to the main page. Remember to
click “Save” to preserve these settings.
SSH, Vagrant, and Windows
Step C: Launch the PuTTY SSH terminal!
On the main PuTTY page, click on your
saved Vagrant settings and then click the
“Open” button
PuTTY will open a terminal so you can
connect to the Vagrant box
REMEMBER: you must already have run
“vagrant up” via the Windows command-line
interface for the connection to work.
SSH, Vagrant, and Mac/Linux
To access the Vagrant box, enter the following command:
REMEMBER: you must already have run
“vagrant up” for the connection to work.
> vagrant ssh
If You Are Prompted for a Password
Both the username and the
password for the AtoM vagrant
box are: vagrant
• Username: vagrant
• Password: vagrant
Now you’re almost ready to start using AtoM!
Open Your Web Browser
Enter the following
address to access
your local AtoM site:
10.10.10.10
Log in credentials:
• User: demo@example.com
• Pass: demo
Part 2: Updating the Vagrant Box with the Latest Atom Code
Because the AtoM Vagrant box is targeted in part to developers, it
follows our latest development branch. Currently (March 2017), that
is the qa/2.4.x development branch in our GitHub code repository.
The AtoM Vagrant box will not automatically keep up to date with
the latest AtoM development – meaning all the newest features and
bug fixes are not currently included! We strongly recommend you
update your Vagrant box before using it.
We’ll do this by running some commands in our Vagrant terminal.
The AtoM public code repository on GitHub
Read more about the AtoM code repository on our wiki:
• https://wiki.accesstomemory.org/Resources/Code_repository
See our public code repository on GitHub:
• https://github.com/artefactual/atom/
Updating the Vagrant Box with the Latest Atom Code
Step 1: Navigate to the atom directory from the root vagrant directory
> cd atom
Step 2: Pull in the latest AtoM code
> git pull --rebase
Updating the Vagrant Box with the Latest Atom Code
Step 3: Purge the current database and run the SQL upgrade task
> php symfony tools:purge --demo
> php symfony tools:upgrade-sql
WHY?
There have been changes to the database since the 2.3 release. The first task will purge the
current database and then re-add the demo user (so you can log into the user interface),
and the second task will run a task to upgrade the MySQL database to the latest schema
version.
Updating the Vagrant Box with the Latest Atom Code
Step 3: Clear the application cache and restart all services
Clear the application cache: > php symfony cc
Restart the webserver (NGINX): > sudo systemctl reload nginx
Restart PHP-FPM: > sudo systemctl restart php7.0-fpm
Restart the memory caching engine (memcached): > sudo systemctl memcached restart
Updating the Vagrant Box with the Latest Atom Code
Step 4: Rebuild the theme and repopulate the search index
Rebuild the base (Dominion) theme CSS: > make –C plugins/arDominionPlugin
Repopulate the search index: > php symfony search:populate
Congratulations! Your AtoM
Vagrant box should now be
up to date!
“Don't make me laugh..!!!” by DigiTaL~NomAd
https://www.flickr.com/photos/urban-spaceman/3682523624
Shutting Down Vagrant
close the PuTTY terminal
In your Windows terminal, enter:
> vagrant halt
Exit the SSH session: > exit
Shut down Vagrant: > vagrant halt
Wait until the command prompt returns, indicating that
the box has successfully shut down. You’re done! Now
you can close the terminal.
Using Vagrant Next Time
Now that all the dependencies are installed and the box has been updated:
> cd Desktop/vagrant-2.4
> vagrant up
Open PuTTY and launch your
saved AtoM Vagrant box settings
> cd Desktop/vagrant-2.4
> vagrant up
> vagrant ssh
> cd ~/Desktop/vagrant-2.4
> vagrant up
> vagrant ssh
Vagrant box Credentials:
• Username: vagrant
• Password: vagrant
Open AtoM in your Browser – URL: http://10.10.10.10
• Username: demo@example.com
• Password: demo
Further Resources
AtoM Vagrant documentation:
• https://www.accesstomemory.org/docs/latest/dev-manual/env/vagrant/
AtoM Command-Line Tutorial Videos
• https://www.youtube.com/playlist?list=PLZiwlG5eSMeyeETe15EsEBSu5htPLK-wm

Más contenido relacionado

La actualidad más candente

UDA-Componentes RUP. Mantenimiento (v2.1.1 deprecado)
UDA-Componentes RUP. Mantenimiento  (v2.1.1 deprecado)UDA-Componentes RUP. Mantenimiento  (v2.1.1 deprecado)
UDA-Componentes RUP. Mantenimiento (v2.1.1 deprecado)Ander Martinez
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3Doris Chen
 
(Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS (Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS Dave Kelly
 
Something About Dynamic Linking
Something About Dynamic LinkingSomething About Dynamic Linking
Something About Dynamic LinkingWang Hsiangkai
 
What is context? How to use context in Odoo by weblearns
What is context? How to use context in Odoo by weblearnsWhat is context? How to use context in Odoo by weblearns
What is context? How to use context in Odoo by weblearnsWeb Learns
 
Introduction to Go programming
Introduction to Go programmingIntroduction to Go programming
Introduction to Go programmingExotel
 
PHP - DataType,Variable,Constant,Operators,Array,Include and require
PHP - DataType,Variable,Constant,Operators,Array,Include and requirePHP - DataType,Variable,Constant,Operators,Array,Include and require
PHP - DataType,Variable,Constant,Operators,Array,Include and requireTheCreativedev Blog
 
XLSX Upload - IN SAP GUI and WDA
XLSX Upload - IN SAP GUI and WDAXLSX Upload - IN SAP GUI and WDA
XLSX Upload - IN SAP GUI and WDABenu Mariantony
 
Version Control History and Git Basics
Version Control History and Git BasicsVersion Control History and Git Basics
Version Control History and Git BasicsSreedath N S
 
JavaScript guide 2020 Learn JavaScript
JavaScript guide 2020 Learn JavaScriptJavaScript guide 2020 Learn JavaScript
JavaScript guide 2020 Learn JavaScriptLaurence Svekis ✔
 
Архитектура для мобильных игр - с чего начать и популярные решения / Евгений ...
Архитектура для мобильных игр - с чего начать и популярные решения / Евгений ...Архитектура для мобильных игр - с чего начать и популярные решения / Евгений ...
Архитектура для мобильных игр - с чего начать и популярные решения / Евгений ...DevGAMM Conference
 

La actualidad más candente (20)

Files in php
Files in phpFiles in php
Files in php
 
UDA-Componentes RUP. Mantenimiento (v2.1.1 deprecado)
UDA-Componentes RUP. Mantenimiento  (v2.1.1 deprecado)UDA-Componentes RUP. Mantenimiento  (v2.1.1 deprecado)
UDA-Componentes RUP. Mantenimiento (v2.1.1 deprecado)
 
Introduction to CSS3
Introduction to CSS3Introduction to CSS3
Introduction to CSS3
 
GCC
GCCGCC
GCC
 
Php forms
Php formsPhp forms
Php forms
 
Sql loader good example
Sql loader good exampleSql loader good example
Sql loader good example
 
(Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS (Fast) Introduction to HTML & CSS
(Fast) Introduction to HTML & CSS
 
Something About Dynamic Linking
Something About Dynamic LinkingSomething About Dynamic Linking
Something About Dynamic Linking
 
AngularJS filters
AngularJS filtersAngularJS filters
AngularJS filters
 
What is context? How to use context in Odoo by weblearns
What is context? How to use context in Odoo by weblearnsWhat is context? How to use context in Odoo by weblearns
What is context? How to use context in Odoo by weblearns
 
PHP - Introduction to PHP Forms
PHP - Introduction to PHP FormsPHP - Introduction to PHP Forms
PHP - Introduction to PHP Forms
 
Html,CSS & UI/UX design
Html,CSS & UI/UX designHtml,CSS & UI/UX design
Html,CSS & UI/UX design
 
GIT AND GITHUB (1).pptx
GIT AND GITHUB (1).pptxGIT AND GITHUB (1).pptx
GIT AND GITHUB (1).pptx
 
Introduction to Go programming
Introduction to Go programmingIntroduction to Go programming
Introduction to Go programming
 
PHP - DataType,Variable,Constant,Operators,Array,Include and require
PHP - DataType,Variable,Constant,Operators,Array,Include and requirePHP - DataType,Variable,Constant,Operators,Array,Include and require
PHP - DataType,Variable,Constant,Operators,Array,Include and require
 
CSS
CSSCSS
CSS
 
XLSX Upload - IN SAP GUI and WDA
XLSX Upload - IN SAP GUI and WDAXLSX Upload - IN SAP GUI and WDA
XLSX Upload - IN SAP GUI and WDA
 
Version Control History and Git Basics
Version Control History and Git BasicsVersion Control History and Git Basics
Version Control History and Git Basics
 
JavaScript guide 2020 Learn JavaScript
JavaScript guide 2020 Learn JavaScriptJavaScript guide 2020 Learn JavaScript
JavaScript guide 2020 Learn JavaScript
 
Архитектура для мобильных игр - с чего начать и популярные решения / Евгений ...
Архитектура для мобильных игр - с чего начать и популярные решения / Евгений ...Архитектура для мобильных игр - с чего начать и популярные решения / Евгений ...
Архитектура для мобильных игр - с чего начать и популярные решения / Евгений ...
 

Destacado

An Introduction to AtoM, Archivematica, and Artefactual Systems
An Introduction to AtoM, Archivematica, and Artefactual SystemsAn Introduction to AtoM, Archivematica, and Artefactual Systems
An Introduction to AtoM, Archivematica, and Artefactual SystemsArtefactual Systems - AtoM
 
National Archives of Norway - AtoM and Archivematica intro workshop
National Archives of Norway - AtoM and Archivematica intro workshopNational Archives of Norway - AtoM and Archivematica intro workshop
National Archives of Norway - AtoM and Archivematica intro workshopArtefactual Systems - AtoM
 
Technologie Proche: Imagining the Archival Systems of Tomorrow With the Tools...
Technologie Proche: Imagining the Archival Systems of Tomorrow With the Tools...Technologie Proche: Imagining the Archival Systems of Tomorrow With the Tools...
Technologie Proche: Imagining the Archival Systems of Tomorrow With the Tools...Artefactual Systems - AtoM
 
Project Documentation with Sphinx (or, How I Learned to Stop Worrying and Lov...
Project Documentation with Sphinx (or, How I Learned to Stop Worrying and Lov...Project Documentation with Sphinx (or, How I Learned to Stop Worrying and Lov...
Project Documentation with Sphinx (or, How I Learned to Stop Worrying and Lov...Artefactual Systems - AtoM
 
ReST Editor - Eclipse Demo Camp Grenoble 2011
ReST Editor - Eclipse Demo Camp Grenoble 2011ReST Editor - Eclipse Demo Camp Grenoble 2011
ReST Editor - Eclipse Demo Camp Grenoble 2011tcalmant
 
The Spock Guide to Think Out of The Vagrant Box
The Spock Guide to Think Out of The Vagrant BoxThe Spock Guide to Think Out of The Vagrant Box
The Spock Guide to Think Out of The Vagrant BoxErrazudin Ishak
 
Introducing the Digital Repository for Museum Collections (DRMC)
Introducing the Digital Repository for Museum Collections (DRMC)Introducing the Digital Repository for Museum Collections (DRMC)
Introducing the Digital Repository for Museum Collections (DRMC)Artefactual Systems - AtoM
 
A difícil tarefa de manter a Cadeia de Custódia Digital dos Documentos Arquiv...
A difícil tarefa de manter a Cadeia de Custódia Digital dos Documentos Arquiv...A difícil tarefa de manter a Cadeia de Custódia Digital dos Documentos Arquiv...
A difícil tarefa de manter a Cadeia de Custódia Digital dos Documentos Arquiv...Daniel Flores
 
Vagrant-Overview
Vagrant-OverviewVagrant-Overview
Vagrant-OverviewCrifkin
 
Introducing Binder: A Web-based, Open Source Digital Preservation Management ...
Introducing Binder: A Web-based, Open Source Digital Preservation Management ...Introducing Binder: A Web-based, Open Source Digital Preservation Management ...
Introducing Binder: A Web-based, Open Source Digital Preservation Management ...Artefactual Systems - AtoM
 
Automate with Ansible basic (3/e)
Automate with Ansible basic (3/e)Automate with Ansible basic (3/e)
Automate with Ansible basic (3/e)Chu-Siang Lai
 
Webinar "Alfresco en une heure"
Webinar "Alfresco en une heure"Webinar "Alfresco en une heure"
Webinar "Alfresco en une heure"Michael Harlaut
 
Infrastructure Deployment with Docker & Ansible
Infrastructure Deployment with Docker & AnsibleInfrastructure Deployment with Docker & Ansible
Infrastructure Deployment with Docker & AnsibleRobert Reiz
 

Destacado (20)

AtoM, Authenticity, and the Chain of Custody
AtoM, Authenticity, and the Chain of CustodyAtoM, Authenticity, and the Chain of Custody
AtoM, Authenticity, and the Chain of Custody
 
An Introduction to AtoM, Archivematica, and Artefactual Systems
An Introduction to AtoM, Archivematica, and Artefactual SystemsAn Introduction to AtoM, Archivematica, and Artefactual Systems
An Introduction to AtoM, Archivematica, and Artefactual Systems
 
National Archives of Norway - AtoM and Archivematica intro workshop
National Archives of Norway - AtoM and Archivematica intro workshopNational Archives of Norway - AtoM and Archivematica intro workshop
National Archives of Norway - AtoM and Archivematica intro workshop
 
Artefactual and Open Source Development
Artefactual and Open Source DevelopmentArtefactual and Open Source Development
Artefactual and Open Source Development
 
Technologie Proche: Imagining the Archival Systems of Tomorrow With the Tools...
Technologie Proche: Imagining the Archival Systems of Tomorrow With the Tools...Technologie Proche: Imagining the Archival Systems of Tomorrow With the Tools...
Technologie Proche: Imagining the Archival Systems of Tomorrow With the Tools...
 
Project Documentation with Sphinx (or, How I Learned to Stop Worrying and Lov...
Project Documentation with Sphinx (or, How I Learned to Stop Worrying and Lov...Project Documentation with Sphinx (or, How I Learned to Stop Worrying and Lov...
Project Documentation with Sphinx (or, How I Learned to Stop Worrying and Lov...
 
ReST Editor - Eclipse Demo Camp Grenoble 2011
ReST Editor - Eclipse Demo Camp Grenoble 2011ReST Editor - Eclipse Demo Camp Grenoble 2011
ReST Editor - Eclipse Demo Camp Grenoble 2011
 
The Spock Guide to Think Out of The Vagrant Box
The Spock Guide to Think Out of The Vagrant BoxThe Spock Guide to Think Out of The Vagrant Box
The Spock Guide to Think Out of The Vagrant Box
 
Introducing the Digital Repository for Museum Collections (DRMC)
Introducing the Digital Repository for Museum Collections (DRMC)Introducing the Digital Repository for Museum Collections (DRMC)
Introducing the Digital Repository for Museum Collections (DRMC)
 
A difícil tarefa de manter a Cadeia de Custódia Digital dos Documentos Arquiv...
A difícil tarefa de manter a Cadeia de Custódia Digital dos Documentos Arquiv...A difícil tarefa de manter a Cadeia de Custódia Digital dos Documentos Arquiv...
A difícil tarefa de manter a Cadeia de Custódia Digital dos Documentos Arquiv...
 
AtoM Community Update 2016
AtoM Community Update 2016AtoM Community Update 2016
AtoM Community Update 2016
 
Hierarchical DIP upload from Archivematica to AtoM
Hierarchical DIP upload from Archivematica to AtoMHierarchical DIP upload from Archivematica to AtoM
Hierarchical DIP upload from Archivematica to AtoM
 
Fabric: A Capistrano Alternative
Fabric:  A Capistrano AlternativeFabric:  A Capistrano Alternative
Fabric: A Capistrano Alternative
 
Vagrant-Overview
Vagrant-OverviewVagrant-Overview
Vagrant-Overview
 
Digital Preservation with Archivematica: An Introduction
Digital Preservation with Archivematica: An IntroductionDigital Preservation with Archivematica: An Introduction
Digital Preservation with Archivematica: An Introduction
 
Introducing Binder: A Web-based, Open Source Digital Preservation Management ...
Introducing Binder: A Web-based, Open Source Digital Preservation Management ...Introducing Binder: A Web-based, Open Source Digital Preservation Management ...
Introducing Binder: A Web-based, Open Source Digital Preservation Management ...
 
Automate with Ansible basic (3/e)
Automate with Ansible basic (3/e)Automate with Ansible basic (3/e)
Automate with Ansible basic (3/e)
 
Webinar "Alfresco en une heure"
Webinar "Alfresco en une heure"Webinar "Alfresco en une heure"
Webinar "Alfresco en une heure"
 
Introduction to Vagrant
Introduction to VagrantIntroduction to Vagrant
Introduction to Vagrant
 
Infrastructure Deployment with Docker & Ansible
Infrastructure Deployment with Docker & AnsibleInfrastructure Deployment with Docker & Ansible
Infrastructure Deployment with Docker & Ansible
 

Similar a AtoM and Vagrant: Installing and Configuring the AtoM Vagrant Box for Local Testing and Development

Creating your own AtoM demo data set for re-use with Vagrant
Creating your own AtoM demo data set for re-use with VagrantCreating your own AtoM demo data set for re-use with Vagrant
Creating your own AtoM demo data set for re-use with VagrantArtefactual Systems - AtoM
 
BLCN532 Lab 1Set up your development environmentV2.0.docx
BLCN532 Lab 1Set up your development environmentV2.0.docxBLCN532 Lab 1Set up your development environmentV2.0.docx
BLCN532 Lab 1Set up your development environmentV2.0.docxmoirarandell
 
Run Docker On Windows Using Vagrant
Run Docker On Windows Using VagrantRun Docker On Windows Using Vagrant
Run Docker On Windows Using VagrantJulien Barbier
 
Vagrant step-by-step guide for Beginners
Vagrant step-by-step guide for BeginnersVagrant step-by-step guide for Beginners
Vagrant step-by-step guide for BeginnersSagar Acharya
 
Vagrant for local and team WordPress Development
Vagrant for local and team WordPress DevelopmentVagrant for local and team WordPress Development
Vagrant for local and team WordPress DevelopmentAnthony Alvarez
 
Create Development and Production Environments with Vagrant
Create Development and Production Environments with VagrantCreate Development and Production Environments with Vagrant
Create Development and Production Environments with VagrantBrian Hogan
 
Node.js, Vagrant, Chef, and Mathoid @ Benetech
Node.js, Vagrant, Chef, and Mathoid @ BenetechNode.js, Vagrant, Chef, and Mathoid @ Benetech
Node.js, Vagrant, Chef, and Mathoid @ BenetechChristopher Bumgardner
 
Oracle Developers APAC Meetup #1 - Working with Wercker Worksheets
Oracle Developers APAC Meetup #1 -  Working with Wercker WorksheetsOracle Developers APAC Meetup #1 -  Working with Wercker Worksheets
Oracle Developers APAC Meetup #1 - Working with Wercker WorksheetsDarrel Chia
 
DevOps Camp 2017 NYC Local Development using Vagrant by Anthony Alvarez
DevOps Camp 2017 NYC Local Development using Vagrant by Anthony AlvarezDevOps Camp 2017 NYC Local Development using Vagrant by Anthony Alvarez
DevOps Camp 2017 NYC Local Development using Vagrant by Anthony AlvarezAnthony Alvarez
 
Server(less) Swift at SwiftCloudWorkshop 3
Server(less) Swift at SwiftCloudWorkshop 3Server(less) Swift at SwiftCloudWorkshop 3
Server(less) Swift at SwiftCloudWorkshop 3kognate
 
Development with Vagrant
Development with VagrantDevelopment with Vagrant
Development with VagrantJohn Coggeshall
 
Vagrant - Version control your dev environment
Vagrant - Version control your dev environmentVagrant - Version control your dev environment
Vagrant - Version control your dev environmentbocribbz
 
Vagrant - Team Development made easy
Vagrant - Team Development made easyVagrant - Team Development made easy
Vagrant - Team Development made easyMarco Silva
 
Vagrant Workshop
Vagrant WorkshopVagrant Workshop
Vagrant Workshopsys army
 
Quick & Easy Dev Environments with Vagrant
Quick & Easy Dev Environments with VagrantQuick & Easy Dev Environments with Vagrant
Quick & Easy Dev Environments with VagrantJoe Ferguson
 
Introduction to Docker
Introduction to DockerIntroduction to Docker
Introduction to Docker皓鈞 張
 

Similar a AtoM and Vagrant: Installing and Configuring the AtoM Vagrant Box for Local Testing and Development (20)

Creating your own AtoM demo data set for re-use with Vagrant
Creating your own AtoM demo data set for re-use with VagrantCreating your own AtoM demo data set for re-use with Vagrant
Creating your own AtoM demo data set for re-use with Vagrant
 
BLCN532 Lab 1Set up your development environmentV2.0.docx
BLCN532 Lab 1Set up your development environmentV2.0.docxBLCN532 Lab 1Set up your development environmentV2.0.docx
BLCN532 Lab 1Set up your development environmentV2.0.docx
 
Run Docker On Windows Using Vagrant
Run Docker On Windows Using VagrantRun Docker On Windows Using Vagrant
Run Docker On Windows Using Vagrant
 
Vagrant
VagrantVagrant
Vagrant
 
Vagrant Up in 5 Easy Steps
Vagrant Up in 5 Easy StepsVagrant Up in 5 Easy Steps
Vagrant Up in 5 Easy Steps
 
Vagrant step-by-step guide for Beginners
Vagrant step-by-step guide for BeginnersVagrant step-by-step guide for Beginners
Vagrant step-by-step guide for Beginners
 
Vagrant for local and team WordPress Development
Vagrant for local and team WordPress DevelopmentVagrant for local and team WordPress Development
Vagrant for local and team WordPress Development
 
Create Development and Production Environments with Vagrant
Create Development and Production Environments with VagrantCreate Development and Production Environments with Vagrant
Create Development and Production Environments with Vagrant
 
Security Testing Using Infrastructure-As-Code
Security Testing Using Infrastructure-As-CodeSecurity Testing Using Infrastructure-As-Code
Security Testing Using Infrastructure-As-Code
 
Node.js, Vagrant, Chef, and Mathoid @ Benetech
Node.js, Vagrant, Chef, and Mathoid @ BenetechNode.js, Vagrant, Chef, and Mathoid @ Benetech
Node.js, Vagrant, Chef, and Mathoid @ Benetech
 
Oracle Developers APAC Meetup #1 - Working with Wercker Worksheets
Oracle Developers APAC Meetup #1 -  Working with Wercker WorksheetsOracle Developers APAC Meetup #1 -  Working with Wercker Worksheets
Oracle Developers APAC Meetup #1 - Working with Wercker Worksheets
 
DevOps Camp 2017 NYC Local Development using Vagrant by Anthony Alvarez
DevOps Camp 2017 NYC Local Development using Vagrant by Anthony AlvarezDevOps Camp 2017 NYC Local Development using Vagrant by Anthony Alvarez
DevOps Camp 2017 NYC Local Development using Vagrant by Anthony Alvarez
 
Server(less) Swift at SwiftCloudWorkshop 3
Server(less) Swift at SwiftCloudWorkshop 3Server(less) Swift at SwiftCloudWorkshop 3
Server(less) Swift at SwiftCloudWorkshop 3
 
Development with Vagrant
Development with VagrantDevelopment with Vagrant
Development with Vagrant
 
Keep calm and vagrant up
Keep calm and vagrant upKeep calm and vagrant up
Keep calm and vagrant up
 
Vagrant - Version control your dev environment
Vagrant - Version control your dev environmentVagrant - Version control your dev environment
Vagrant - Version control your dev environment
 
Vagrant - Team Development made easy
Vagrant - Team Development made easyVagrant - Team Development made easy
Vagrant - Team Development made easy
 
Vagrant Workshop
Vagrant WorkshopVagrant Workshop
Vagrant Workshop
 
Quick & Easy Dev Environments with Vagrant
Quick & Easy Dev Environments with VagrantQuick & Easy Dev Environments with Vagrant
Quick & Easy Dev Environments with Vagrant
 
Introduction to Docker
Introduction to DockerIntroduction to Docker
Introduction to Docker
 

Más de Artefactual Systems - AtoM

Más de Artefactual Systems - AtoM (11)

AtoM Community Update: 2019-05
AtoM Community Update: 2019-05AtoM Community Update: 2019-05
AtoM Community Update: 2019-05
 
Building the Future Together: AtoM3, Governance, and the Sustainability of Op...
Building the Future Together: AtoM3, Governance, and the Sustainability of Op...Building the Future Together: AtoM3, Governance, and the Sustainability of Op...
Building the Future Together: AtoM3, Governance, and the Sustainability of Op...
 
AtoM Implementations
AtoM ImplementationsAtoM Implementations
AtoM Implementations
 
Looking Ahead: AtoM's governance, development, and future
Looking Ahead: AtoM's governance, development, and futureLooking Ahead: AtoM's governance, development, and future
Looking Ahead: AtoM's governance, development, and future
 
Contributing to the AtoM documentation
Contributing to the AtoM documentationContributing to the AtoM documentation
Contributing to the AtoM documentation
 
Installing AtoM with Ansible
Installing AtoM with AnsibleInstalling AtoM with Ansible
Installing AtoM with Ansible
 
AtoM feature development
AtoM feature developmentAtoM feature development
AtoM feature development
 
Installing and Upgrading AtoM
Installing and Upgrading AtoMInstalling and Upgrading AtoM
Installing and Upgrading AtoM
 
Get to Know AtoM's Codebase
Get to Know AtoM's CodebaseGet to Know AtoM's Codebase
Get to Know AtoM's Codebase
 
Command-Line 101
Command-Line 101Command-Line 101
Command-Line 101
 
Digital Curation using Archivematica and AtoM: DLF Forum 2015
Digital Curation using Archivematica and AtoM: DLF Forum 2015Digital Curation using Archivematica and AtoM: DLF Forum 2015
Digital Curation using Archivematica and AtoM: DLF Forum 2015
 

Último

Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodJuan lago vázquez
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistandanishmna97
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Jeffrey Haguewood
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Victor Rentea
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDropbox
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 

Último (20)

Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 

AtoM and Vagrant: Installing and Configuring the AtoM Vagrant Box for Local Testing and Development

  • 1. AtoM and VagrantINSTALLING AND CONFIGURING THE ATOM VAGRANT BOX FOR LOCAL TESTING AND DEVELOPMENT
  • 2. What is Vagrant? Vagrant is a tool for building complete development environments. With an easy-to-use workflow and focus on automation, Vagrant lowers development environment setup time, increases development / production parity, and makes the "works on my machine" excuse a relic of the past. Vagrant was started in January 2010 by Mitchell Hashimoto. https://www.vagrantup.com/about.html Vagrant remains and always will be a liberally licensed open source project. Each release of Vagrant is the work of hundreds of individuals' contributions to the open source project.
  • 3. What is VirtualBox? VirtualBox is an open source, cross-platform virtualization application. When we describe VirtualBox as a "virtualization" product, we refer to "full virtualization", that is, the particular kind of virtualization that allows an unmodified operating system with all of its installed software to run in a special environment, on top of your existing operating system. This environment, called a "virtual machine", is created by the virtualization software by intercepting access to certain hardware components and certain features. The physical computer is then usually called the "host", while the virtual machine is often called a "guest". Most of the guest code runs unmodified, directly on the host computer, and the guest operating system "thinks" it's running on a real machine. https://www.virtualbox.org/wiki/Virtualization
  • 4. The AtoM Vagrant Box AtoM and all of its dependencies…. Are packaged as a Vagrant box… Which is run by VirtualBox as a virtual machine… And accessed via SSH and/or a web browser.
  • 5. Installing the Atom Vagrant Box Step 1: Download and Install VirtualBox • https://www.virtualbox.org/ Step 2: Download and Install Vagrant • https://www.vagrantup.com/
  • 6. Installing the Atom Vagrant Box Step 3: open your command line interface Applications/Utilities/Terminal Search for “cmd” and hit enter CTRL + ALT + T
  • 7. Installing the Atom Vagrant Box Step 4: make a new directory on your desktop and then change directories into it > cd Desktop > mkdir vagrant-2.4 > cd vagrant-2.4 > cd Desktop > mkdir vagrant-2.4 > cd vagrant-2.4 > cd ~/Desktop > mkdir vagrant-2.4 > cd vagrant-2.4
  • 8. Installing the Atom Vagrant Box Step 5: Initialize the directory to be a Vagrant environment > vagrant init artefactual/atom Step 6: Run Vagrant! > vagrant up
  • 9. And Now an Intermission for our Windows Users… (Mac and Linux users, feel free to skip ahead a couple slides) http://wgnradio.com/2013/01/29/lets-all-go-to-the-lobby/comment-page-1/
  • 10. SSH, Vagrant, and Windows What is SSH? SSH stands for Secure SHell. It is a secure way of connecting to a remote computer or server using encryption to protect the connection. To connect to the guest O/S (the Vagrant box – the virtual machine you are running) from the Host (your computer), we use SSH. Linux and Mac support an SSH client natively, but Windows does not – so we need to install an SSH client to access the AtoM Vagrant box’s command-line interface. Our preferred Windows SSH client is PuTTY. Step A: Download and Install PuTTY • http://www.putty.org/ • Follow the link to the Downloads page
  • 11. SSH, Vagrant, and Windows Step B: Launch PuTTY and Configure it for Vagrant access • Host Name: 10.10.10.10 • Port: 22 In the “Saved Sessions” field, give this configuration a name so you can reuse it (e.g. AtoM Vagrant Box), then click “Save.”
  • 12. SSH, Vagrant, and Windows Step B: Launch PuTTY and Configure it for Vagrant access In the options on the side, click “Translation” under the Window heading. Select UTF-8 as the Remote character set. In the menu, click the top link, “Session”, to return to the main page. Remember to click “Save” to preserve these settings.
  • 13. SSH, Vagrant, and Windows Step C: Launch the PuTTY SSH terminal! On the main PuTTY page, click on your saved Vagrant settings and then click the “Open” button PuTTY will open a terminal so you can connect to the Vagrant box REMEMBER: you must already have run “vagrant up” via the Windows command-line interface for the connection to work.
  • 14. SSH, Vagrant, and Mac/Linux To access the Vagrant box, enter the following command: REMEMBER: you must already have run “vagrant up” for the connection to work. > vagrant ssh
  • 15. If You Are Prompted for a Password Both the username and the password for the AtoM vagrant box are: vagrant • Username: vagrant • Password: vagrant Now you’re almost ready to start using AtoM!
  • 16. Open Your Web Browser Enter the following address to access your local AtoM site: 10.10.10.10 Log in credentials: • User: demo@example.com • Pass: demo
  • 17. Part 2: Updating the Vagrant Box with the Latest Atom Code Because the AtoM Vagrant box is targeted in part to developers, it follows our latest development branch. Currently (March 2017), that is the qa/2.4.x development branch in our GitHub code repository. The AtoM Vagrant box will not automatically keep up to date with the latest AtoM development – meaning all the newest features and bug fixes are not currently included! We strongly recommend you update your Vagrant box before using it. We’ll do this by running some commands in our Vagrant terminal. The AtoM public code repository on GitHub Read more about the AtoM code repository on our wiki: • https://wiki.accesstomemory.org/Resources/Code_repository See our public code repository on GitHub: • https://github.com/artefactual/atom/
  • 18. Updating the Vagrant Box with the Latest Atom Code Step 1: Navigate to the atom directory from the root vagrant directory > cd atom Step 2: Pull in the latest AtoM code > git pull --rebase
  • 19. Updating the Vagrant Box with the Latest Atom Code Step 3: Purge the current database and run the SQL upgrade task > php symfony tools:purge --demo > php symfony tools:upgrade-sql WHY? There have been changes to the database since the 2.3 release. The first task will purge the current database and then re-add the demo user (so you can log into the user interface), and the second task will run a task to upgrade the MySQL database to the latest schema version.
  • 20. Updating the Vagrant Box with the Latest Atom Code Step 3: Clear the application cache and restart all services Clear the application cache: > php symfony cc Restart the webserver (NGINX): > sudo systemctl reload nginx Restart PHP-FPM: > sudo systemctl restart php7.0-fpm Restart the memory caching engine (memcached): > sudo systemctl memcached restart
  • 21. Updating the Vagrant Box with the Latest Atom Code Step 4: Rebuild the theme and repopulate the search index Rebuild the base (Dominion) theme CSS: > make –C plugins/arDominionPlugin Repopulate the search index: > php symfony search:populate Congratulations! Your AtoM Vagrant box should now be up to date! “Don't make me laugh..!!!” by DigiTaL~NomAd https://www.flickr.com/photos/urban-spaceman/3682523624
  • 22. Shutting Down Vagrant close the PuTTY terminal In your Windows terminal, enter: > vagrant halt Exit the SSH session: > exit Shut down Vagrant: > vagrant halt Wait until the command prompt returns, indicating that the box has successfully shut down. You’re done! Now you can close the terminal.
  • 23. Using Vagrant Next Time Now that all the dependencies are installed and the box has been updated: > cd Desktop/vagrant-2.4 > vagrant up Open PuTTY and launch your saved AtoM Vagrant box settings > cd Desktop/vagrant-2.4 > vagrant up > vagrant ssh > cd ~/Desktop/vagrant-2.4 > vagrant up > vagrant ssh Vagrant box Credentials: • Username: vagrant • Password: vagrant Open AtoM in your Browser – URL: http://10.10.10.10 • Username: demo@example.com • Password: demo
  • 24. Further Resources AtoM Vagrant documentation: • https://www.accesstomemory.org/docs/latest/dev-manual/env/vagrant/ AtoM Command-Line Tutorial Videos • https://www.youtube.com/playlist?list=PLZiwlG5eSMeyeETe15EsEBSu5htPLK-wm