15 Commits

Author SHA1 Message Date
Roman Gorshunov
09e488a20e Update base Go builder image to 1.15
Change-Id: Iab2be7f207effe0556881641cdf5bbe14837c266
2021-04-08 22:18:18 +02:00
Roman Gorshunov
de72491f2c Add commit and other labels to the airshipctl container image
Relates-To: #399

Change-Id: I0e0be8fe6dd37b346637ae9847523e4cd3734081
2021-01-11 14:52:59 +00:00
Drew Walters
7697d7561d Update Go base images
Recently, Docker.io imposed container registry pull limits, and we have
exceeded them. This has impacted continuous-integration testing in this
repository.

This change updates our base Go images from those hosted on docker.io to
gcr.io in order to circumnavigate pull restrictions.

Change-Id: I2a990846b1a49010ff2a403d99413d8162322804
Signed-off-by: Drew Walters <andrew.walters@att.com>
2020-11-11 16:49:51 +00:00
Dmitry Ukov
d783d71f05 Introduce Replacement Transformer plugin container
Relates-To: #341
Change-Id: I65a5b8cf3bcf94321fc02f240b1d8075bca45c0c
2020-10-16 16:00:56 +04:00
Ruslan Aliev
4aed3a135e Add label to Dockerfile
Change-Id: I71fcbc0ac52280544b0511e94215947ac162dfb0
Signed-off-by: Ruslan Aliev <raliev@mirantis.com>
2020-09-16 17:00:11 -05:00
Schiefelbein, Andrew
11e94ce19f Adding the ability to inject certificate authorities into docker image
Change-Id: I06697ceabe5d24b1643ceb741a923aa1ee6977e2
2020-04-24 15:06:11 -05:00
Alexander Hughes
abb28716c8 [#81] makefile to check for unused test data
This change adds logic to the docker-image-unit-tests to ensure that
code is checked within the container for coverage, valid test data,
and reduces the number of containers created in the gate - reducing
the runtime of each gate.

Relates-To: #81

Change-Id: Iab3d9bd74266d32404e6eb06ecebc234df04fd5c
Signed-off-by: Alexander Hughes <Alexander.Hughes@pm.me>
2020-03-08 00:05:48 +00:00
Ian Howell
e3ca393d9e Utilize Docker caching to speed up image building
This rearranges the Dockerfile to COPY over the go module files for
downloading prior to building, linting, and testing. This will allow
developers to more quickly test their code via Docker given that their
dependencies change infrequently.

Change-Id: I3650fbd9ca18d453921d25a536e8b4cf60ce1b5e
2019-11-19 14:00:01 -06:00
James Gu
d294a6ba37 Move up to go 1.13.1
Updated go version to 1.13.1 and updated dependency versions in mod
file. Updated Dockerfile to use golang 1.13.1 image. Removed GO111MODULE
env in Makefile which is no longer necessary.

Change-Id: Ib120e8bdfbd3724b72169c4b5ce2cbc7fd9f3ce6
2019-10-04 15:31:45 +00:00
Ian Howell
dc9c78b210 Fix the coverage tests
This fixes a bug where `make cover` was missing packages. The target now
covers all code except for code placed in the top level package (such as
main.go) and anything placed in the testutils directory.

This also fixes minor issues with the Dockerfile and the coverage_check
script

Note that this commit also strives to increase code coverage beyond the
80% margin

Change-Id: I9e1cbcf841cc869345a00f05e39774cb3da10065
2019-10-02 15:18:56 -05:00
Pete Birley
5cf0b2327c CI: Add a functional test for interacting with a existing k8s cluster
This adds Ansible playbooks to install kubernetes using minikube and
then assert that airshipctl is able to communicate with the cluster.

Change-Id: Ice5cf3de8d9192d508c79c68caf8f5a61896da9c
Signed-off-by: Pete Birley <pete@port.direct>
2019-07-09 21:04:15 +00:00
Ian Howell
d6b06a8787 Zuul: Switch from travis to zuul
This PS adds the skeleton for a set of zuul checks and gates for
airshipctl and removes the travis config.

This PS also removes some dead code from the util package. This change
is required to get unit tests passing.

Change-Id: Ifb1be49cb1bb82c62a0085b6da9b8ff1b261a95b
2019-07-01 11:00:26 -05:00
Ian Howell
863f195066 Update the Dockerfile to account for static builds 2019-05-17 10:19:58 -05:00
Ian Howell
7a34fd98d9 Change airshipadm to airshipctl 2019-05-07 10:07:54 -05:00
Ian Howell
382c9094e5 Add a rudimentary dockerfile 2019-04-29 14:07:09 -05:00