Commit Graph

22 Commits

Author SHA1 Message Date
Sergiy Markin ac4edb0c64 [focal] Deckhand project updates
- adjusted .gitignore to keep fresh egg-info and omit build artifacts
- fresh egg-info data is needed for promenade that depends on Deckhand
- restored deckhand-functional-uwsgi-py38 gate
- restored deckhand-integration-uwsgi-py38 gate
- made deckhand-airskiff-deployment gate voting ( treasuremap project
  has been updated)
- removed bionic gates
- updated focal dockerfile
- added more binary deps into bindep.txt
- updated deckhand chart values to latest images - focal and wallaby
- fixed python code to compy with CVE's found by fresh version of bandit
- implemented pip freeze approach
- added tox -e freeze profile to manage it
- requirements-frozen.txt is now main file with requirements
- requirements-direct.txt is the file to control deps
- updated setup.cfg to adjust to newer version of setuptools
- fixed airskiff-deploy gate
- fixed docker-image-build playbook to restore Quay repo image publish
- updated other playbooks to include roles from zuul/base-jobs in order
  to setup build hosts properly
- removed workaround with hardcoded dns resolver ip 10.96.0.10 as it
  became obsolette due to recent fix in openstack-helm-infra
- adjusted tools/whitespace-linter.sh script
- tox.ini has been brought to compliance with tox4 requirements
- replaced str() calls with six.text_type() according to D325 Deckhand specific
  commandment from Hacking.rst
- locked python-barbicanclient version with 5.2.0 because of breaking
  changes in the upper versions

Change-Id: I1cd3c97e83569c4db7e958b3400bdd4b7ea5e668
2023-04-20 19:39:43 +00:00
Wahlstedt, Walter (ww229g) 70aa35a396 update to focal and python 3.8
update dockerfile for python deckhand install
add deckhand version to chart 1.0
add chart version 0.2.0
update all packages to latest in requirements.txt
update zuul jobs for focal and python 3.8
remove zuul job functional-uwsgi-py38 in favor of functional-docker-py38
update tox config
typecast to string in re.sub() function
add stestr to test-requirements.txt
add SQLAlchemy jsonpickle sphinx-rtd-theme stestr to requirements.txt
deprecated function: BarbicanException -> BarbicanClientException
fix mock import using unittest
fix import collections to collections.abc
fix for collections modules for older than python 3.10 versions.
deprecated function: json -> to_json
deprecated function:  werkzeug.contrib.profiler ->
    werkzeug.middleware.profiler
deprecated function: falcon.AIP -> falcon.App
deprecation warning: switch from resp.body to resp.text
rename fixtures to dh_fixtures because there is an imported module
    fixtures
switch from stream.read to bounded_stream.read
deprecated function: falcon process_response needed additional parameter
deprecated function: falcon default_exception_handler changed parameter
    order
move from MagicMock object to falcon test generated object to fix
    incompatability with upgraded Falcon module.
Adjust gabbi tests to fix incompatability with upgraded DeepDiff module
update Makefile to execute ubuntu_focal
update HTK (helmtoolkit)
unpin barbican to pass integration tests
Use helm 3 in chart build.
    `helm serve` is removed in helm 3 so this moves
    to using local `file://` dependencies [0] instead.

Change-Id: I180416f480edea1b8968d80c993b3e1fcc95c08d
2023-02-24 10:51:57 -05:00
Ahmad Mahmoudi e203c15e94 Add support for Ubuntu bionic base image
- Added ability to build deckhand docker image, using either the
  Ubuntu xenial or the Ubuntu bionic base image.
- Made the bionic base image the default base image for deckhand
  docker image build.

Change-Id: I26657de34a233ee3223a7f93fc667e734ac9140b
2020-02-06 17:42:33 -06:00
Arun Kant 8eb74b0509 Adding opensuse image build for deckhand
Adding DISTRO parameter for makefile to invoke distribution specific
Dockerfile and build image accordingly.

Updated logic for existing jobs to have distro specific logic
for building and publishing images.

Added multiple distro specific document in operator section.

Change-Id: I415ab28b06ea17b21e76d28ccb3e284041c8072d
2019-05-30 17:22:57 +00:00
Roman Gorshunov c81a88b963 Embed UML generated diagrams into docs, fix docs build
Remove manual generation of UML diagrams; they will be built by Sphinx
itself.

Require to install PlantUML and Graphviz via bindep in
openstack-tox-docs job; ReadTheDocs service already has both PlantUML
and Graphviz installed for documentation builds.

Change-Id: I21ab124a80e7768bc9edd891b975b4e0f8a6e50d
Story: 2004747
2019-02-14 13:55:44 +01:00
Dimitrios Markou f884d248d1 Create Makefile target to install Helm binary
In Makefile there is no target which actually installs
Helm binary.

Change-Id: I74a8099d7ff9592f3a86df060a9a54e2b56f6f33
Signed-off-by: Dimitrios Markou <dm844v@att.com>
2018-11-09 15:10:02 -06:00
Roman Gorshunov 82639b443f Minor: meaningful default label
Making default label meaningful and conformant to "key=value" requirement.

Change-Id: I9c65feaaf7637c63e2b258a972afda773eeb1ab5
2018-11-08 19:32:19 +01:00
Roman Gorshunov e2edd5fef9 Fix: adding back the possibility to add arbitrary labels
Arbitrary labels could be added as `make` parameter `LABEL=`, which is used in
att-comdev/cicd Jenkins pipelines.

Sample parameter:
'LABEL=org.label-schema.vcs-url=${GERRIT_CHANGE_URL} \
--label org.label-schema.base-image=${base_sha256}'

Sample usage:
See Jenkinsfile files under images/ directory in att-comdev/cicd repo.

In addition to that, if `COMMIT` variable is undefined when invoking `make`, we
use result of `git rev-parse HEAD` command, which should output latest git
commit ID.

[0] https://github.com/att-comdev/cicd

Change-Id: I795d1443f60f362c5ecb244cb90ee8052603854f
2018-10-24 18:28:52 +02:00
Zuul 84de5c17b8 Merge "Fix: git commit id labels on images" 2018-09-21 20:25:16 +00:00
Roman Gorshunov 48f79aee44 Fix: git commit id labels on images
1) Use OCI Image Specs for labels instead of custom 'commit-id=xxxxx'
   or legacy "Label Schema"
2) Fix missing git commit id labels on images (.revision)
3) Add human-readable title (.title) of the image, URL (.url), and
   a few other properties (annotations) according to the latest Specs

Change-Id: Iebb37edd003204d3adc41aa9af76612ab419993a
2018-09-21 03:31:12 +02:00
Roman Gorshunov 451f2c7f5c Unify publishing of docs
Unified publishing to the readthedocs with other Airship projects.

Change-Id: I6e68a491d56916cdbdcd67909cf292f98ea0a1d0
2018-09-14 20:59:22 +02:00
Roman Gorshunov d30e9b8660 Unifying proxy variables for docker build
This patch adds proxy-related variables to 'docker build' command.

Change-Id: Ia494f1a90328c80681f9cbe31763b4d2058042b1
2018-06-22 14:43:03 +02:00
Stacey Fletcher bb36db23ce Makefile HTTP fix
Putting build arguments to all caps to match Dockerfile ARG for
HTTP_PROXY HTTPS_PROXY

Change-Id: I9f6fdbfc202a483ca78562b95b010e913a410656
2018-06-21 15:11:32 -05:00
Pete Birley 17973c5d7d Docker: support build behind proxy
This PS adds support to build behind a corp proxy.

Change-Id: I435065e99113f2319101b6cd2924edc4a94b03be
Signed-off-by: Pete Birley <pete@port.direct>
2018-06-08 09:17:21 -05:00
Bryan Strassner 1860c8679b Add tests target to Makefile for Deckhand
Change-Id: I9a152c4ebb4c2b9637250720158acb0af5434288
2018-05-04 15:00:11 -05:00
Anthony Lin 28254bc7ff Update Makefile - Dryrun
Add template for deckhand chart dry-run

Change-Id: I9eab723a9ad905627c993aafdbf12b62c7dfc865
2018-03-29 21:22:23 -04:00
Anthony Lin 218beff695 Update Deckhand Dockerfile
This patch set does the following:

1) Moves Dockerfile to images/deckhand to align with the
   convention used by the rest of the UCP components

2) Installs Deckhand module

Change-Id: I48e5a061538367678314fef213cfb38de53e90bd
2018-02-27 09:46:10 -05:00
Stacey Fletcher 4924e65a0f Update Makefile
This ps updates the build commands to allow the same
format to be used in att-comdev projects

Change-Id: I82c7083cfb1414c18b3e3bc14852a316e68736f3
2018-02-24 23:05:02 -05:00
Stacey Fletcher 0d9d243a5d Add label to docker image Makefile
This ps adds the ability to add labels to the docker image at
build time

Change-Id: I6c24379f1d0884ba97c09da8fdd5c273a49cbd1e
2018-02-19 16:30:53 -05:00
Kochetov, Mikhail (mk899x) a3f0bafb7f Fix initial 'make charts' failure
Change-Id: Iddba014c9f58aaab24918b51a1f8942aa5ea4c01
2017-11-09 16:23:32 -07:00
Felipe Monteiro a407eb55cd Fix Makefile using wrong target in docker build command
Changes `docker build` command to use '.' instead of
'images/deckhand/' as the Dockerfile source directory.

Change-Id: Iceee9c64e15889c34701679357cc9ef37edee33d
2017-11-01 21:45:19 +00:00
Felipe Monteiro 6ff443de2d Deckhand Makefile for CICD
Add Makefile to Deckhand for building charts and running lint checks
against the code base (including charts).

Modeled after Shipyard's Makefile.

Change-Id: I23a9b746369f5765cf4d75e9cb0854b9f5f65972
2017-10-30 16:21:49 -04:00