SlideShare una empresa de Scribd logo
1 de 32
Descargar para leer sin conexión
How to create a local
Android open source
project mirror
1. Obtain necessary
information
Before you set up a local Android open source
project mirror using Deveo, you need to know:
correct at time of publishing
• The current Android Git server address
android.googlesource.com
correct at time of publishing
• Deveo server address
app.deveo.com
• Name for the Deveo project we wish to set
up the local android open source project mirror
• Your Deveo plugin key, company key, and
account key
These can be found in your user preferences
located in the top right of the Deveo web
interface
• Your Deveo username
• Your company name in Deveo
The company name one you type whenever you
log in to Deveo.
2. Create the Deveo project
for our mirror
We will create the project programmatically
through Deveo REST APIs. But first, lets export
the Android open source project Git server
URL, Deveo plugin key, company key and your
account key, as well as the project name and
the Deveo URL as shell variables...
export ANDROID_URL=android.googlesource.com
export PLUGIN_KEY=3a12d59d6220aa024cb45b8c7b82db12
export
COMPANY_KEY=c18c6317641b13223228b1cd7254e9b8
export
ACCOUNT_KEY=462c0f154875824a626c81a26ab3212f
export DEVEO_URL=app.deveo.com
export DEVEO_PROJECT=my-android-open-source-
project-fork
export DEVEO_USERNAME=ilmarideveocom
REMEMBER TO REPLACE THE EXAMPLE
KEYS, URLS ETC. WITH YOUR OWN
For example:
Now use the following curl command to create
a new Deveo project in Deveo:
curl -X POST 
-H "Accept: application/vnd.deveo.v1" 
-H "Authorization: deveo
plugin_key='$PLUGIN_KEY',company_key='$COMPAN
Y_KEY',account_key='$ACCOUNT_KEY" 
-H "Content-Type: application/json" 
-d '{ "id": "$DEVEO_PROJECT", "name":
"$DEVEO_PROJECT" }' 
https://$DEVEO_URL/api/projects
Check the results from the web interface.
There should be a new project in your Deveo
dashboard with the appropriate name.
3. Create the repositories
Create a Git repository in Deveo, using the
following curl snippet:
curl -X POST 
-H "Accept: application/vnd.deveo.v1" 
-H "Authorization: deveo
plugin_key='$PLUGIN_KEY',company_key='$COMPANY_K
EY',account_key='$ACCOUNT_KEY'" 
-H "Content-Type: application/json" 
-d '{ "id": "platform/manifest", "type": "git"
}' 
https://$DEVEO_URL/api/projects/$DEVEO_PROJECT/r
epositories
Grab it from:
https://github.com/Deveo/local-android-open-source-
project-mirror
Since it would be tedious to copy-paste the
code snippet over and over for each repository
in the manifest.xml file, we created an XSL
template that can be used to read and create a
file containing one curl snippet for each
repository.
4. Clone the original
repositories from official
Android open source
project repository
Clone the repositories using --bare switch in
order to store the repositories within the
hierarchical structure in the local filesystem.
For example:
With the manifest repository, we would do as follows:
cd platform/manifest
git remote add deveo
https://$DEVEO_USERNAME@$DEVEO_URL/$DEVEO_CO
MPANY/projects/$DEVEO_PROJECT/repositories/g
it/platform/manifest
git push --mirror deveo
cd -
Get the template here:
https://github.com/Deveo/local-android-open-source-project-mirror
To make this easier, we've used a similar
template based approach for going through all
repositories.
5. Push the repositories to
the Deveo project
To push repositories to Deveo, go to the
directory of the repository, add a new remote
to the repository pointing to the Deveo
repository URL, and finally, push the changes
using --mirror switch.
For example, With the manifest repository,
we would do as follows:
cd platform/manifest git remote add
deveo
https://$DEVEO_USERNAME@$DEVEO_URL/$DEV
EO_CO
MPANY/projects/$DEVEO_PROJECT/repositor
ies/git/platfor m/manifest git push --
mirror deveo cd -
For this snippet to work we need to export
Deveo username and company name as
command line variables.
For example:
export DEVEO_USERNAME=ilmarideveocom
export DEVEO_COMPANY=deveo
Like in the previous two steps, our XSL
template based approach takes care of the
heavy lifting and copy-pasting.
Get the XSL here:
https://github.com/Deveo/local-android-open-source-project-mirror
6. Test everything works
Now you have all of the repositories pushed to
Deveo, you must test things out following the
official Android open source project
instructions, and using Deveo as the clone URL.
For example, run this repo command to
initialize a new client from your freshly created
local mirror:
repo init -u
https://ilmarideveocom@app.deveo.com/dev
eo/projects/aosp-
testi/repositories/git/platform/manifest
How did you get on?
Let us know!
Tweet us @DeveoTeam

Más contenido relacionado

La actualidad más candente

Pinned sites in ie9 [beta]
Pinned sites in ie9 [beta]Pinned sites in ie9 [beta]
Pinned sites in ie9 [beta]
Kirk Yamamoto
 

La actualidad más candente (20)

Step by step guide to build ionic hybrid app using cordova android
Step by step guide to build ionic hybrid app using cordova androidStep by step guide to build ionic hybrid app using cordova android
Step by step guide to build ionic hybrid app using cordova android
 
Cordova 101
Cordova 101Cordova 101
Cordova 101
 
Extending Eclipse Che to build custom cloud IDEs
Extending Eclipse Che to build custom cloud IDEsExtending Eclipse Che to build custom cloud IDEs
Extending Eclipse Che to build custom cloud IDEs
 
Appium Dockerization: from Scratch to Advanced Implementation - HUSTEF 2019
Appium Dockerization: from Scratch to Advanced Implementation - HUSTEF 2019Appium Dockerization: from Scratch to Advanced Implementation - HUSTEF 2019
Appium Dockerization: from Scratch to Advanced Implementation - HUSTEF 2019
 
Editing an app cloud 9
Editing an app   cloud 9Editing an app   cloud 9
Editing an app cloud 9
 
Code in the cloud with Eclipse Che and Docker
Code in the cloud with Eclipse Che and DockerCode in the cloud with Eclipse Che and Docker
Code in the cloud with Eclipse Che and Docker
 
Symfony2 Specification by examples
Symfony2   Specification by examplesSymfony2   Specification by examples
Symfony2 Specification by examples
 
TDC2016SP - Trilha Android
TDC2016SP - Trilha AndroidTDC2016SP - Trilha Android
TDC2016SP - Trilha Android
 
Eclipse Che: The Next-Gen Eclipse IDE - Bordeaux jug 2016
Eclipse Che: The Next-Gen Eclipse IDE - Bordeaux jug 2016Eclipse Che: The Next-Gen Eclipse IDE - Bordeaux jug 2016
Eclipse Che: The Next-Gen Eclipse IDE - Bordeaux jug 2016
 
Eclipse Che : ParisJUG
Eclipse Che : ParisJUGEclipse Che : ParisJUG
Eclipse Che : ParisJUG
 
Hybrid Apps in a Snap
Hybrid Apps in a SnapHybrid Apps in a Snap
Hybrid Apps in a Snap
 
DevOps Heroes 2019
DevOps Heroes 2019DevOps Heroes 2019
DevOps Heroes 2019
 
Codefresh + Cloud 66 webinar: Testing Strategies for Docker Driven Development
Codefresh + Cloud 66 webinar: Testing Strategies for Docker Driven DevelopmentCodefresh + Cloud 66 webinar: Testing Strategies for Docker Driven Development
Codefresh + Cloud 66 webinar: Testing Strategies for Docker Driven Development
 
Accelerate Your Automation Testing Effort using TestProject & Docker | Docker...
Accelerate Your Automation Testing Effort using TestProject & Docker | Docker...Accelerate Your Automation Testing Effort using TestProject & Docker | Docker...
Accelerate Your Automation Testing Effort using TestProject & Docker | Docker...
 
Ciao: Continuous Integration for Apps on OpenStack
Ciao: Continuous Integration for Apps on OpenStackCiao: Continuous Integration for Apps on OpenStack
Ciao: Continuous Integration for Apps on OpenStack
 
Eclipse 2011 Hot Topics
Eclipse 2011 Hot TopicsEclipse 2011 Hot Topics
Eclipse 2011 Hot Topics
 
Ane for 9ria_cn
Ane for 9ria_cnAne for 9ria_cn
Ane for 9ria_cn
 
Cordova Tutorial
Cordova TutorialCordova Tutorial
Cordova Tutorial
 
Pinned sites in ie9 [beta]
Pinned sites in ie9 [beta]Pinned sites in ie9 [beta]
Pinned sites in ie9 [beta]
 
Flutter workshop @ bang saen 2020
Flutter workshop @ bang saen 2020Flutter workshop @ bang saen 2020
Flutter workshop @ bang saen 2020
 

Similar a How to create a local Android open source project mirror in 6 easy steps

Build your android app with gradle
Build your android app with gradleBuild your android app with gradle
Build your android app with gradle
Swain Loda
 

Similar a How to create a local Android open source project mirror in 6 easy steps (20)

XCode Templates tutorial – How To Create Custom Template Step By Step.pdf
XCode Templates tutorial – How To Create Custom Template Step By Step.pdfXCode Templates tutorial – How To Create Custom Template Step By Step.pdf
XCode Templates tutorial – How To Create Custom Template Step By Step.pdf
 
Aleksandr Kutsan "Managing Dependencies in C++"
Aleksandr Kutsan "Managing Dependencies in C++"Aleksandr Kutsan "Managing Dependencies in C++"
Aleksandr Kutsan "Managing Dependencies in C++"
 
CICD With GitHub, Travis, SonarCloud and Docker Hub
CICD With GitHub, Travis, SonarCloud and Docker HubCICD With GitHub, Travis, SonarCloud and Docker Hub
CICD With GitHub, Travis, SonarCloud and Docker Hub
 
StackEngine Problem Space Demo
StackEngine Problem Space DemoStackEngine Problem Space Demo
StackEngine Problem Space Demo
 
Javascript mynotes
Javascript mynotesJavascript mynotes
Javascript mynotes
 
Modern Gentlemen's WordPress
Modern Gentlemen's WordPressModern Gentlemen's WordPress
Modern Gentlemen's WordPress
 
DevNet Associate : Python introduction
DevNet Associate : Python introductionDevNet Associate : Python introduction
DevNet Associate : Python introduction
 
Introduction to Docker - Vellore Institute of Technology
Introduction to Docker - Vellore Institute of TechnologyIntroduction to Docker - Vellore Institute of Technology
Introduction to Docker - Vellore Institute of Technology
 
iOS App Using cordova
iOS App Using cordovaiOS App Using cordova
iOS App Using cordova
 
Build your android app with gradle
Build your android app with gradleBuild your android app with gradle
Build your android app with gradle
 
Open Architecture in the Adobe Marketing Cloud - Summit 2014
Open Architecture in the Adobe Marketing Cloud - Summit 2014Open Architecture in the Adobe Marketing Cloud - Summit 2014
Open Architecture in the Adobe Marketing Cloud - Summit 2014
 
Introduction to Docker - VIT Campus
Introduction to Docker - VIT CampusIntroduction to Docker - VIT Campus
Introduction to Docker - VIT Campus
 
Eclipse Che - A Revolutionary IDE for Distributed & Mainframe Development
Eclipse Che - A Revolutionary IDE for Distributed & Mainframe DevelopmentEclipse Che - A Revolutionary IDE for Distributed & Mainframe Development
Eclipse Che - A Revolutionary IDE for Distributed & Mainframe Development
 
Dockerize your Symfony application - Symfony Live NYC 2014
Dockerize your Symfony application - Symfony Live NYC 2014Dockerize your Symfony application - Symfony Live NYC 2014
Dockerize your Symfony application - Symfony Live NYC 2014
 
Docker Starter Pack
Docker Starter PackDocker Starter Pack
Docker Starter Pack
 
Amazing vue.js projects that are open source and free.
Amazing vue.js projects that are open source and free.Amazing vue.js projects that are open source and free.
Amazing vue.js projects that are open source and free.
 
Shipping NodeJS with Docker and CoreOS
Shipping NodeJS with Docker and CoreOSShipping NodeJS with Docker and CoreOS
Shipping NodeJS with Docker and CoreOS
 
Developer joy for distributed teams with CodeReady Workspaces | DevNation Tec...
Developer joy for distributed teams with CodeReady Workspaces | DevNation Tec...Developer joy for distributed teams with CodeReady Workspaces | DevNation Tec...
Developer joy for distributed teams with CodeReady Workspaces | DevNation Tec...
 
Native Android Development with Spring
Native Android Development with SpringNative Android Development with Spring
Native Android Development with Spring
 
Demystifying Docker101
Demystifying Docker101Demystifying Docker101
Demystifying Docker101
 

Último

The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
shinachiaurasa2
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
Health
 

Último (20)

Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
Crypto Cloud Review - How To Earn Up To $500 Per DAY Of Bitcoin 100% On AutoP...
 
Microsoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdfMicrosoft AI Transformation Partner Playbook.pdf
Microsoft AI Transformation Partner Playbook.pdf
 
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
The Guide to Integrating Generative AI into Unified Continuous Testing Platfo...
 
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
OpenChain - The Ramifications of ISO/IEC 5230 and ISO/IEC 18974 for Legal Pro...
 
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456LEVEL 5   - SESSION 1 2023 (1).pptx - PDF 123456
LEVEL 5 - SESSION 1 2023 (1).pptx - PDF 123456
 
ManageIQ - Sprint 236 Review - Slide Deck
ManageIQ - Sprint 236 Review - Slide DeckManageIQ - Sprint 236 Review - Slide Deck
ManageIQ - Sprint 236 Review - Slide Deck
 
The title is not connected to what is inside
The title is not connected to what is insideThe title is not connected to what is inside
The title is not connected to what is inside
 
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park %in kempton park+277-882-255-28 abortion pills for sale in kempton park
%in kempton park+277-882-255-28 abortion pills for sale in kempton park
 
8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students8257 interfacing 2 in microprocessor for btech students
8257 interfacing 2 in microprocessor for btech students
 
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected WorkerHow To Troubleshoot Collaboration Apps for the Modern Connected Worker
How To Troubleshoot Collaboration Apps for the Modern Connected Worker
 
Right Money Management App For Your Financial Goals
Right Money Management App For Your Financial GoalsRight Money Management App For Your Financial Goals
Right Money Management App For Your Financial Goals
 
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptxBUS PASS MANGEMENT SYSTEM USING PHP.pptx
BUS PASS MANGEMENT SYSTEM USING PHP.pptx
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
+971565801893>>SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHAB...
 
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdfAzure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
Azure_Native_Qumulo_High_Performance_Compute_Benchmarks.pdf
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
call girls in Vaishali (Ghaziabad) 🔝 >༒8448380779 🔝 genuine Escort Service 🔝✔️✔️
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
VTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learnVTU technical seminar 8Th Sem on Scikit-learn
VTU technical seminar 8Th Sem on Scikit-learn
 
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
%in kaalfontein+277-882-255-28 abortion pills for sale in kaalfontein
 

How to create a local Android open source project mirror in 6 easy steps

  • 1. How to create a local Android open source project mirror
  • 3. Before you set up a local Android open source project mirror using Deveo, you need to know:
  • 4. correct at time of publishing • The current Android Git server address android.googlesource.com
  • 5. correct at time of publishing • Deveo server address app.deveo.com
  • 6. • Name for the Deveo project we wish to set up the local android open source project mirror
  • 7. • Your Deveo plugin key, company key, and account key These can be found in your user preferences located in the top right of the Deveo web interface
  • 8. • Your Deveo username
  • 9. • Your company name in Deveo The company name one you type whenever you log in to Deveo.
  • 10. 2. Create the Deveo project for our mirror
  • 11. We will create the project programmatically through Deveo REST APIs. But first, lets export the Android open source project Git server URL, Deveo plugin key, company key and your account key, as well as the project name and the Deveo URL as shell variables...
  • 12. export ANDROID_URL=android.googlesource.com export PLUGIN_KEY=3a12d59d6220aa024cb45b8c7b82db12 export COMPANY_KEY=c18c6317641b13223228b1cd7254e9b8 export ACCOUNT_KEY=462c0f154875824a626c81a26ab3212f export DEVEO_URL=app.deveo.com export DEVEO_PROJECT=my-android-open-source- project-fork export DEVEO_USERNAME=ilmarideveocom REMEMBER TO REPLACE THE EXAMPLE KEYS, URLS ETC. WITH YOUR OWN For example:
  • 13. Now use the following curl command to create a new Deveo project in Deveo:
  • 14. curl -X POST -H "Accept: application/vnd.deveo.v1" -H "Authorization: deveo plugin_key='$PLUGIN_KEY',company_key='$COMPAN Y_KEY',account_key='$ACCOUNT_KEY" -H "Content-Type: application/json" -d '{ "id": "$DEVEO_PROJECT", "name": "$DEVEO_PROJECT" }' https://$DEVEO_URL/api/projects
  • 15. Check the results from the web interface. There should be a new project in your Deveo dashboard with the appropriate name.
  • 16. 3. Create the repositories
  • 17. Create a Git repository in Deveo, using the following curl snippet:
  • 18. curl -X POST -H "Accept: application/vnd.deveo.v1" -H "Authorization: deveo plugin_key='$PLUGIN_KEY',company_key='$COMPANY_K EY',account_key='$ACCOUNT_KEY'" -H "Content-Type: application/json" -d '{ "id": "platform/manifest", "type": "git" }' https://$DEVEO_URL/api/projects/$DEVEO_PROJECT/r epositories
  • 19. Grab it from: https://github.com/Deveo/local-android-open-source- project-mirror Since it would be tedious to copy-paste the code snippet over and over for each repository in the manifest.xml file, we created an XSL template that can be used to read and create a file containing one curl snippet for each repository.
  • 20. 4. Clone the original repositories from official Android open source project repository
  • 21. Clone the repositories using --bare switch in order to store the repositories within the hierarchical structure in the local filesystem.
  • 22. For example: With the manifest repository, we would do as follows: cd platform/manifest git remote add deveo https://$DEVEO_USERNAME@$DEVEO_URL/$DEVEO_CO MPANY/projects/$DEVEO_PROJECT/repositories/g it/platform/manifest git push --mirror deveo cd -
  • 23. Get the template here: https://github.com/Deveo/local-android-open-source-project-mirror To make this easier, we've used a similar template based approach for going through all repositories.
  • 24. 5. Push the repositories to the Deveo project
  • 25. To push repositories to Deveo, go to the directory of the repository, add a new remote to the repository pointing to the Deveo repository URL, and finally, push the changes using --mirror switch.
  • 26. For example, With the manifest repository, we would do as follows: cd platform/manifest git remote add deveo https://$DEVEO_USERNAME@$DEVEO_URL/$DEV EO_CO MPANY/projects/$DEVEO_PROJECT/repositor ies/git/platfor m/manifest git push -- mirror deveo cd -
  • 27. For this snippet to work we need to export Deveo username and company name as command line variables. For example: export DEVEO_USERNAME=ilmarideveocom export DEVEO_COMPANY=deveo
  • 28. Like in the previous two steps, our XSL template based approach takes care of the heavy lifting and copy-pasting. Get the XSL here: https://github.com/Deveo/local-android-open-source-project-mirror
  • 30. Now you have all of the repositories pushed to Deveo, you must test things out following the official Android open source project instructions, and using Deveo as the clone URL.
  • 31. For example, run this repo command to initialize a new client from your freshly created local mirror: repo init -u https://ilmarideveocom@app.deveo.com/dev eo/projects/aosp- testi/repositories/git/platform/manifest
  • 32. How did you get on? Let us know! Tweet us @DeveoTeam