Showing posts with label Cloud. Show all posts
Showing posts with label Cloud. Show all posts

Wednesday, February 6, 2013

Creating a Private Git Server

So you want to write some super secret code? You want to keep it off public git servers? This is not as difficult as you might think to do. As a matter a fact if you are committing to git locally in a shell then you already have the git client setup.

I assume you have access to a Ubuntu Linux server that you can spin up or have one laying around your pad.

How do I set up a git server?


  1. Boot up a Linux Cloud Server.
  2. Configure user permissions.
  3. Install git-core.
  4. Profit.

You are probably saying what? That's it? Yup! That's really it to get started.

Boot up a Linux Cloud Server

Now that we have a server we can login and update all the packages.

sudo apt-get update
sudo apt-get upgrade

Alright we will call this server my.gitserver.net


Configure user permissions

To configure the system my suggestion is to create a user called: git 

sudo adduser git

Adding your public key to the server will allow you to bypass using a password.
This can be any username that can log into the server.

Install git-core

sudo apt-get install git-core

Easy right?

Setup git project

Login to the server as the git user and create the project.

ssh git@my.gitserver.net
mkdir super-secret-project.git
cd super-secret-project.git
git --bare init

Profit

So now we need our super secret project on a machine with some commits to push up to my.gitserver.net 

mkdir super-secret-project
cd super-secret-project
git init

We need to add the remote for the server to our local repo now.

git remote add origin git@my.gitserver.net:super-secret-project.git
touch somefile.txt
git add somefile.txt
git commit -m "my first commit to my private git server"
git push origin master

Once we push the code up now that commit is now saved somewhere else. 

Suggestions

  • Always back up your data.
  • Harden the security on your server

Resources:

Thursday, January 10, 2013

Openstack - Running Devstack in VMWare with Ubuntu and KVM faster!

After creating an Ubuntu 12.04 Precise default install on my VMware Fusion I noticed that the performance was never up to par to do development. I found later that there were some missing options that will allow the virtual machine to be much more performant.

Here is what I did to make a build go from about 10 minutes to about 2 minutes.

Shutdown the Ubuntu VM.

Go to the VM Settings -> Processors & Memory -> Advanced Options


Check the "Enable hypervisor applications in this virtual machine"








There is one other option that may improve your performance overall as well.

Updating the Troubleshooting option is optional as it may cover up CPU lock up issues that I have seen in VMware.

Go to the VM Settings -> Advanced 
Set the "Troubleshooting" option to "None"




I would suggest after setting these create a snapshot so that in cases where things break down you can revert to a clean snapshot.

Boot up the VM and run the devstack installation.

To verify that KVM is setup properly after the devstack installation you can run these commands.

ubuntu@ubuntu:~$ kvm-ok 
INFO: /dev/kvm exists
KVM acceleration can be used

Friday, September 17, 2010

Austin Cloud Computing Users Group Meeting Sep 21

The next meeting of Austin’s cloud computing trailblazers is next Tuesday, Sep. 21.  Event details and signup are here.  Some gentlement from Opscode will be talking about cloud security, and then we’ll have our usual unconference-style discussions.  If you haven’t, join the group mailing list!  It’s free, you get fed, and you get to talk with other people actually working with cloud technologies.