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.
CodePackager
Pack and Unpack repositories to mobile storage
Speaker: Vincent CY Liao
Date: 2013-06-27

1
Outline
■ Problem
■ CodePackager
●

Configuration

●

Command

2
Problem
■ Problem
■ Old Solution

3
Problem
■ Separated network
■ Need move code between network
●

Merge bug-fixes from production network

●

Backup

Develo...
We used to...
■ Create a tar ball of updated code
■ Copy tar ball to mobile storage
■ Attach mobile storage on the other m...
Boring

6
Boring

7
Very Boring

8
… and human errors sometime

Such as over-written new
files with old files

9
CodePackager
■ Introduction
■ Configuration
■ Command

10
Introduction
■ Pack tar-copy ~ copy-untar-pull/fetch into two

commands
●

prep_codepkg.py
■

●

tar-copy

recv_codepkg.py...
Configuration
■ ~/.codepackager.yaml
●

Local settings

●

Path of mobile storage
■

●

Assume use same mobile storage acr...
Configuration (cont.)
#package-name: codepackager
device-folder: /media/MY_MOBILE_DISK
archive-folder: /home/user/MyArchiv...
Command
■ prep_codepkg.py
●

Archive repository to mobile storage

●

Require presence of repository setting

■ recv_codep...
Thank you !
Get source code:

http://goo.gl/BgRBN

15
Upcoming SlideShare
Loading in …5
×

CodePackager - Pack and Unpack repositories to mobile storage

381 views

Published on

Published in: Technology, Business
  • Be the first to comment

  • Be the first to like this

CodePackager - Pack and Unpack repositories to mobile storage

  1. 1. CodePackager Pack and Unpack repositories to mobile storage Speaker: Vincent CY Liao Date: 2013-06-27 1
  2. 2. Outline ■ Problem ■ CodePackager ● Configuration ● Command 2
  3. 3. Problem ■ Problem ■ Old Solution 3
  4. 4. Problem ■ Separated network ■ Need move code between network ● Merge bug-fixes from production network ● Backup Development Network source Production Network source 4
  5. 5. We used to... ■ Create a tar ball of updated code ■ Copy tar ball to mobile storage ■ Attach mobile storage on the other machine ■ Un-tar and merge modifications 5
  6. 6. Boring 6
  7. 7. Boring 7
  8. 8. Very Boring 8
  9. 9. … and human errors sometime Such as over-written new files with old files 9
  10. 10. CodePackager ■ Introduction ■ Configuration ■ Command 10
  11. 11. Introduction ■ Pack tar-copy ~ copy-untar-pull/fetch into two commands ● prep_codepkg.py ■ ● tar-copy recv_codepkg.py ■ copy-untar-pull/fetch ■ Written in Python ! 11
  12. 12. Configuration ■ ~/.codepackager.yaml ● Local settings ● Path of mobile storage ■ ● Assume use same mobile storage across projects Path of VCS executables ■ %REPO%/.codepackager.yaml ● Project name ■ ● File name of tar-ball VCS type ■ ■ Mercurial Git 12
  13. 13. Configuration (cont.) #package-name: codepackager device-folder: /media/MY_MOBILE_DISK archive-folder: /home/user/MyArchive tmp-folder: /tmp #vcs: hg #vcs: git bin: hg: /usr/bin/hg git: /usr/bin/git tar: /bin/tar package-name: codepackager #device-folder: /media/MY_MOBILE_DISK #archive-folder: /home/user/MyArchive #tmp-folder: /tmp vcs: hg #vcs: git #bin: # hg: /usr/bin/hg # git: /usr/bin/git # tar: /bin/tar Local Setting (~/.codepackager.yaml) Repository Setting (%REPO%/.codepackager.yaml) 13
  14. 14. Command ■ prep_codepkg.py ● Archive repository to mobile storage ● Require presence of repository setting ■ recv_codepkg.py [ARCHIVE_FILE_PATH] ● Pull/Fetch changes from mobile storage ● Specify path to archive file if repository setting not available yet ■ Useful for bringing in setting file 14
  15. 15. Thank you ! Get source code: http://goo.gl/BgRBN 15

×