Commit Graph

13 Commits

Author SHA1 Message Date
Ryan Schroder f53c51edc1 Update Spyglass to run as “airship” user in container
Spyglass previously ran as root in container

Change-Id: I341679fcb6173ca667f009dfc100237f32275ef2
2019-12-10 19:16:23 +00:00
Ian H. Pittwood 7f1ed8bcf9 Import GPG keys in OpenSUSE image
Change-Id: Ia2a0504c4d1d47b90de88b9d4c53928d22fbde1e
2019-08-21 11:01:14 -05:00
Ian H Pittwood cf673e7d80 Fix OpenSUSE image build
Change-Id: I17e72e8239a5f4c0875e6ff736ca74393e86284c
2019-08-16 20:02:57 +00:00
Ian H Pittwood 166483d6ad Fix Spyglass gates
Zuul gates broke for Spyglass due to an update made to either Zuul or
Openstack's Zuul jobs (I wasn't able to pin it down). The update caused
Zuul to attempt to install Spyglass's requirements.txt file instead of
referring to the method given in the tox configuration that utilizes
Pipenv. To bypass this issue, the requirements.txt will be removed and
Spyglass will be fully moved over to using Pipenv.

Removes requirements.txt

Updates Pipfile and Pipfile.lock for new package releases

Updates Dockerfile to install requirements from Pipfile.lock

Change-Id: I347ef6db18a44e1b88c811aa071ba8c60bccbd53
2019-08-14 14:13:47 -05:00
Alexander Hughes 597bdba490 Update OpenSuse image to 15.1 from 15.0
This change took place in Pegleg, adding to Spyglass for project
consistency.

Pegleg change: https://review.opendev.org/#/c/670421/

Change-Id: I1c3610ce6041393c94252629194295cc28eb129e
2019-07-15 19:07:42 +00:00
Ian H. Pittwood 4909870115 Implement Pipenv dependency management
Pipenv is a tool that brings better package dependency management to
python. It can automatically create and manage virtualenv as well as
managing package dependencies using Pipfile and Pipfile.lock. Adding
this dependency manager into Airship projects will decrease package
version conflicts between projects and help increase security through
hash validation of packages and vulnerability scans.

Changes:
- Imports requirements.txt type files into Pipfile
- Pipenv dependency management in tox
- Switches Safety package for "pipenv check", an implementation of
Safety
- Unpins or loosens pins on all development packages
- Soft pins package dependencies to encourage adoption of bug fixes and
prevent small version mismatches

Pipenv Docs: https://docs.pipenv.org/en/latest/

Helpful Pipenv Guide: https://realpython.com/pipenv-guide/

Change-Id: I2c9cec8acf6b6c6157f807b010def873c349d3ae
2019-07-01 16:42:34 +00:00
Alexander Hughes 1a2adc55d3 Spyglass opensuse image support
This patch:
1. Adds an OpenSUSE Dockerfile, as the other Airship projects have done
2. Adds OpenSUSE checks, gate, and publish jobs to .zuul.yaml

Change-Id: I210f0233387c28b607fe86d8589a095e892d7fef
2019-06-07 20:46:08 +00:00
Hughes, Alexander (ah8742) c6d8256038 Add Ubuntu Bionic support to Spyglass
From community meeting on 04-June-2019 Ubuntu Xenial is the default
image for Airship projects, but a desire was voiced to also add support
for Ubuntu Bionic at the convenience of the contributors for each
project.

This patch:
1. Adds a new dockerfile specific to ubuntu:18.04 (bionic).
2. Add to .zuul.yaml checks/gates/post jobs for bionic.

Change-Id: I131c894a749cc6d5f19274389a07a9edcc1a0099
2019-06-07 19:48:25 +00:00
Hughes, Alexander (ah8742) 6cfe98e0c3 Multi multi distro support images
This patch:
1. Resolves an issue where the base image was overrided with python:3.6
2. Adds framework for creating new images of other distributions and
   gating against them.

Change-Id: Iaa8ec86f947189bf24d40e5594e015554f7abddb
2019-06-07 19:15:31 +00:00
Hughes, Alexander (ah8742) 90b76c8bae Update Spyglass base image to ubuntu:16.04
Per community discussion updating default image to ubuntu:16.04 in
place of python:3.6 for two reasons:
1. Reduce number of vulnerabilities in the built image
2. Standardize across Airship the default image used as ubuntu:16.04

Change-Id: I598989ae15a86520850dbf6693feab659a135fff
2019-06-04 16:50:53 +00:00
Alexander Hughes 56e37ed5c9 Update Spyglass make images command
Bring files used in make images in line with other airship projects

Change-Id: Idb1858e3bc8fa64cfbeb768d999066cbd832e698
2019-04-24 12:03:32 -05:00
Alexander Hughes 3bf68e464a PEP-8 code styling and linting
As a newer project, Spyglass is still a work in progress in terms of its
styling. This change is meant to help improve readability and compliance
of Spyglass source code.

To match other Airship projects, this change implements YAPF into tox so
linting is automatically ran. This will hopefully keep formatting grey
areas styled consistently.

PEP-8: https://www.python.org/dev/peps/pep-0008/

OpenStack Style Guidelines:
https://docs.openstack.org/hacking/latest/user/hacking.html

PEP Index: https://www.python.org/dev/peps/

Depends on https://review.openstack.org/#/c/648764.

Change-Id: I45b19cc8a7932fd7823dcb69f64a0a1bf19fc434
2019-04-22 18:46:48 +00:00
Hemanth Nakkina 296705a0a5 Base code for spyglass
- Spyglass skelton with engine, site processor
- Spyglass data extractor with formation plugin
- Docker files and scripts to run spyglass
2018-11-28 15:19:43 +05:30