Added an example patch
This commit is contained in:
parent
bd9edf58d1
commit
efaca61491
|
@ -0,0 +1,27 @@
|
|||
From 28fc030839d14a6e6b5a6b0e1ecce3b49f2cc37e Mon Sep 17 00:00:00 2001
|
||||
From: Derek Higgins <derekh@redhat.com>
|
||||
Date: Wed, 15 May 2013 12:01:46 +0100
|
||||
Subject: [PATCH] Create a ssh key-pair if non exists
|
||||
|
||||
---
|
||||
scripts/install-dependencies | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/scripts/install-dependencies b/scripts/install-dependencies
|
||||
index 354da1d..e35c65e 100755
|
||||
--- a/scripts/install-dependencies
|
||||
+++ b/scripts/install-dependencies
|
||||
@@ -1,6 +1,10 @@
|
||||
#!/bin/bash
|
||||
set -eu
|
||||
|
||||
+if [ ! -e ~/.ssh/id_rsa.pub ] ; then
|
||||
+ ssh-keygen -N '' -f ~/.ssh/id_rsa
|
||||
+fi
|
||||
+
|
||||
# keys
|
||||
if ! grep "$(cat ~/.ssh/id_rsa.pub)" ~/.ssh/authorized_keys >/dev/null; then
|
||||
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
|
||||
--
|
||||
1.8.1.4
|
||||
|
3
toci.sh
3
toci.sh
|
@ -1,6 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
export STARTTIME=$(date)
|
||||
export TOCI_SOURCE_DIR=$PWD
|
||||
|
||||
# All temp files should go here
|
||||
export TOCI_WORKING_DIR=$(mktemp -d --tmpdir toci_working_XXXXXXX)
|
||||
# Any files to be uploaded to results server goes here
|
||||
|
@ -9,6 +11,7 @@ export TOCI_LOG_DIR=$(mktemp -d --tmpdir toci_logs_XXXXXXX)
|
|||
# e.g. downloaded images, git repo's etc...
|
||||
export TOCI_CACHE_DIR=/var/tmp/toci_cache
|
||||
|
||||
|
||||
echo "Starting run $STARTTIME ($TOCI_WORKING_DIR,$TOCI_LOG_DIR)"
|
||||
|
||||
# env specific to this run, can contain
|
||||
|
|
|
@ -8,7 +8,13 @@ for repo in 'tripleo/incubator' 'tripleo/bm_poseur' 'stackforge/diskimage-builde
|
|||
get_get_repo $repo
|
||||
done
|
||||
|
||||
# install deps on host machine
|
||||
cd $TOCI_WORKING_DIR/tripleo_incubator
|
||||
# patches can be added to git repo's like this, this just a temp measure we need to make faster progress
|
||||
# until we get up and runing properly
|
||||
for PATCH in $TOCI_SOURCE_DIR/patches/incubator* ; do
|
||||
git am $PATCH
|
||||
done
|
||||
|
||||
# install deps on host machine
|
||||
./scripts/install-dependencies
|
||||
|
||||
|
|
Loading…
Reference in New Issue