Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Maxwell committed Jan 28, 2016
0 parents commit bb9f42f
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
image: rancher/dind:v0.6.0
script:
- ./scripts/ci
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.*.swp
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Rancher Community Catalog

This catalog provides templates created by the community, and they are not maintained or supported by Rancher Labs.

# License
Copyright (c) 2014-2015 [Rancher Labs, Inc.](http://rancher.com)

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](http://www.apache.org/licenses/LICENSE-2.0)

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
11 changes: 11 additions & 0 deletions scripts/bootstrap
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

apt-get update && apt-get install -y curl jq python python-pip
pip install -U pip tox

## Get latest rancher-catalog
download_url=$(curl https://api.github.com/repos/rancher/rancher-catalog-service/releases/latest | jq -r '.assets[]| select(.name == "rancher-catalog-service.tar.xz")| .browser_download_url')
curl -sL -o /tmp/rancher-catalog-service.tar.xz ${download_url}
tar -xJf /tmp/rancher-catalog-service.tar.xz -C /usr/bin/


6 changes: 6 additions & 0 deletions scripts/ci
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

cd $(dirname $0)/..

./scripts/bootstrap
./scripts/test
18 changes: 18 additions & 0 deletions scripts/test
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash
set -e

cd $(dirname $0)/..

trap "rm -rf /scratch/*" exit

if [ -d "/scratch" ]; then
rsync -a --exclude .tox ./ /scratch
fi

pushd /scratch/integration

# Start rancher-catalog-service and wait for it to start.
/usr/bin/rancher-catalog-service -catalogUrl ../ -refreshInterval 7200 > /dev/null 2>&1 &
sleep 10
tox -e flake8,py27
popd

0 comments on commit bb9f42f

Please sign in to comment.