Skip to content

Instantly share code, notes, and snippets.

View toabctl's full-sized avatar

Thomas Bechtold toabctl

  • Canonical
  • Berlin/Germany
View GitHub Profile
#!/bin/bash
# Author: Thomas Bechtold <[email protected]>
# Requirements:
# - obs-service-download_files from https://build.opensuse.org/project/show/openSUSE:Tools
# - rpm-packaging git repo checkout (https://github.com/openstack/rpm-packaging) under BASE_RPM_PACKAGING
# - Cloud:OpenStack:Upstream:Master checkout (https://build.opensuse.org/project/show/Cloud:OpenStack:Upstream:Master)
# under BASE_OBS_PROJECT
# pymod2pkg installation (https://pypi.python.org/pypi/pymod2pkg or https://build.opensuse.org/package/show/devel:languages:python/python-pymod2pkg)
# renderspec installation (https://pypi.python.org/pypi/renderspec or https://build.opensuse.org/package/show/Cloud:OpenStack:Master/python-renderspec)

Keybase proof

I hereby claim:

  • I am toabctl on github.
  • I am toabctl (https://keybase.io/toabctl) on keybase.
  • I have a public key whose fingerprint is 1F26 0C1E 74B2 8F6A EC95 97DB 45EF F8F9 315A A8CA

To claim this, I am signing this object:

#!/usr/bin/env python
# Copyright (c) 2016 SUSE Linux GmbH
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@toabctl
toabctl / cleanvm
Created November 8, 2016 13:00
Build a cleanvm for CI
#!/usr/bin/env python
# Copyright (c) 2015 SUSE Linux GmbH
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@toabctl
toabctl / oslo-config-test.py
Created September 27, 2016 13:20
Print all config options
#!/usr/bin/env python
# Author: Thomas Bechtold <[email protected]>
# License: Apache-2.0
# sample program to demonstrate the --config-file and --config-dir options
from __future__ import print_function
import sys
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2016 SUSE Linux GmbH
# Author: Thomas Bechtold <[email protected]>
from __future__ import print_function
import argparse
#!/bin/bash
RPM_PACKAGING_DIR=~/devel/openstack/rpm-packaging
FACTORY_PACKAGING_DIR=~/devel/bs/pub/Cloud/OpenStack/Factory
printf "%-30s %-10s %-10s\n" "suse pkg name" "upstream version" "suse version"
for templatepath in $RPM_PACKAGING_DIR/openstack/*/*.spec.j2; do
# the spec.j2 template name
specj2=$(basename $templatepath)
#!/bin/bash
set -xe
pypi_name=$1
BASE_OBS_PROJECT=~/devel/bs/pub/Cloud:OpenStack:Upstream
BASE_RPM_PACKAGING=~/devel/openstack/rpm-packaging
pushd $BASE_OBS_PROJECT
@toabctl
toabctl / render-testbuild
Last active August 22, 2016 13:27
Use renderspec and OBS to run a quick local build
#!/bin/bash
# Author: Thomas Bechtold <[email protected]>
# Requirements:
# - obs-service-download_files from https://build.opensuse.org/project/show/openSUSE:Tools
# - rpm-packaging git repo checkout (https://github.com/openstack/rpm-packaging) under BASE_RPM_PACKAGING
# - Cloud:OpenStack:Upstream:Master checkout (https://build.opensuse.org/project/show/Cloud:OpenStack:Upstream:Master)
# under BASE_OBS_PROJECT
# pymod2pkg installation (https://pypi.python.org/pypi/pymod2pkg or https://build.opensuse.org/package/show/devel:languages:python/python-pymod2pkg)
#!/bin/bash
tmpdir=~/tmp/
jenkins_url=https://ci.suse.de/
buildjob=$1
buildnumber=$2
builddir=$tmpdir/ci-logs/$buildjob/ci-$buildnumber/
if ! [ -e "$builddir" ]; then
echo "mkdir"