Speed up image build

* Ignore FIO output file when building docker
* Removes PBR and removes .git from docker context

Change-Id: I58d4fa7e9d538035c52b1826d1488f72e74beea8
This commit is contained in:
Mark Burnett 2018-04-25 11:56:51 -05:00
parent 01d0b17d8e
commit 38ac4bff79
4 changed files with 14 additions and 42 deletions

View File

@ -8,6 +8,8 @@ charts/*/requirements.lock
# Build & test artifacts
.eggs
.fiotest
.git
.helm-pid
.tox
AUTHORS

View File

@ -1,39 +0,0 @@
# Copyright 2017 The Promenade Authors.
#
# 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
# 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.
[metadata]
name = promenade
[pbr]
use-egg = false
[files]
packages =
promenade
package-data =
templates = templates/*
schemas = schemas/*
[entry_points]
console_scripts =
promenade = promenade.cli:promenade
[build_sphinx]
source-dir = docs/source
build-dir = docs/build
all_files = 1
warning-is-error = 1
[upload_sphinx]
upload-dir = docs/build/html

View File

@ -17,6 +17,15 @@
from setuptools import setup
setup(
setup_requires=['pbr>=1.9', 'setuptools>=17.1'],
pbr=True,
setup_requires=['setuptools>=17.1'],
name='promenade',
version='0.8.0',
packages=['promenade'],
package_data={
'schemas': 'schemas/*',
'templates': 'templates/*',
},
entry_points={
'console_scripts': 'promenade=promenade.cli:promenade',
},
)

View File

@ -26,7 +26,7 @@ deps =
-r{toxinidir}/test-requirements.txt
commands =
rm -rf docs/build
python setup.py build_sphinx {posargs}
sphinx-build -b html docs/source docs/build
[testenv:fmt]
deps = yapf==0.20.0