Commit Graph

26 Commits

Author SHA1 Message Date
Sam Yaple 4ff506ae5c Remove PYTHON3
The python2 is long dead and the PYTHON3 flag has been noop for a while.

Change-Id: Ia7be53e84090cc8b80e1dd5753ba1460ff454851
Related-Id: I3f4f60756887ad07229cf522803b30d4e16463cd
2022-09-21 21:28:12 -04:00
Sam Yaple 361fd6e104 Do not always install libapache2-mod-oauth2
This package is unavailable for 22.04 (the current LTS version of
Ubuntu). It is in 22.10 and may be backported to 22.04 through the
backports repo, but currently there is no prebuilt trusted source for
this package on 22.04.

This package is getting deployed on all ubuntu systems. In my opinion,
it should not have been merged, but we can gate the install around a
PROFILE='mod_oauth2' rather than revert the change entirely.

Related-Id: Ib3eac4269f7ac8365623f95a81b07a6436464ed0
Change-Id: I282b7b0aefa8aabc1f5c6495564d13b70cd0ec5d
2022-09-21 21:28:12 -04:00
Thiago Brito efccd0a853 Specify a different source for novnc/spice-html5
The StarlingX project is seen some intermittence on the gitlab where
spice-html5 source is being cloned from and we would like to select a
different source. This changes gives the option to overwrite the source
repos and versions of both spice-html5 and novnc.

This will also provide the means to easily test new versions of those
libraries when in the event of an upversion.

Partial-Bug: #1956173
Signed-off-by: Thiago Brito <thiago.brito@windriver.com>
Change-Id: I3001dad62a0caed26347dcb193d101c80901b5d8
2022-01-12 14:45:16 +00:00
Andrii Ostapenko a2a88b8ffb Make py3 default
Change-Id: Iaa3f707e48dec32aadc2f8849196990915e36451
2021-10-13 00:30:23 +00:00
Andrii Ostapenko a61c73e9b2
Update gates
* Use bionic for ussuri build as it's the latest supported
release [0][1].
* Switch to centos 8 to run master [1][2].
* Switch default base image to ubuntu:focal.

[0] https://governance.openstack.org/tc/reference/runtimes/ussuri.html
[1] https://governance.openstack.org/tc/reference/runtimes/victoria.html
[2] https://governance.openstack.org/tc/reference/runtimes/train.html

Change-Id: I9a70aebd9636e170c6e04398356933668a2bfbba
Signed-off-by: Andrii Ostapenko <andrii.ostapenko@att.com>
2021-10-12 18:30:09 -06:00
Vasyl Saienko 75bba38822 Add KEEP_ALL_WHEELS flag
The patch adds KEEP_ALL_WHEELS set to False by default.
The flag allows to do not remove wheels after built of
requirement image. This is useful where reproducibility
of builds with the same WHEEL image is needed as will allow
to keep 3rd party libs (not specified in upper-constraints.txt)
file with same versions.

Change-Id: I00fd3df2ba46072b3f19c9d08f69bb3c1f53d01f
2020-07-13 18:35:26 +00:00
Andrii Ostapenko d5ff58a973 Update dockerfiles and gates
Introduces image build for bionic with py3 and nautilus.
Switches centos to py3 and fixes related issues.
Xenial is now run with stable/ocata.

Adds ability to skip specific build for particular component specifying
"supported_releases" in zuul component configuration. Sets
supported_releases for placement not available for releases prior to
Stein.

Removes redundant parameters for project reference using defaults
instead, as they relate to loci project, not to project we build
with loci. Also hard-codes parameters in playbooks/vars.yaml, making
it a definitive build configuration.

Change-Id: I7290203d80461f46ed70d5e3bea55c9765f9e746
2020-01-20 19:37:55 -06:00
Andrii Ostapenko c94e375f8d Fix broken pydep for older releases
Currently we don't pass release name to bindep to determine python
dependencies, and even more, we don't possess this information with
current build arguments.

Change-Id: Icf657ca8e82cd7ccdde8a18674f75370afa0a585
2019-09-16 20:23:37 +00:00
Jean-Philippe Evrard 086ace64e9 Move to opendev
Change-Id: I6706ee3f611b21a4d470c68fec4bf090dc6a4cc0
2019-04-24 16:44:58 +02:00
Jean-Philippe Evrard cc50c3048b Support self-signed certificates docker registry
If you want to run a docker registry for development purposes with
self-signed certificates, and use this registry to push your
requirements wheel, the loci build process would fail at fetching the
wheels.

This brings support for self-signed certificates registries by:
- Allowing to skip protocol_detection: If protocol_detection happens on
  a https registry, urllib2 would not throw an HTTPError or URLError,
  and protocol returned by default would be HTTP, which would then cause
  issues by not using SSL to fetch data. There is no point to "detect"
  things if we provide an argument to the users.
- If the protocol is correctly given as HTTPs, no certificate is passed
  into the urllib ssl contexts by default, which would only work with
  globally valid certificates. This patch also adds an option to bypass
  the verification of certificates when the user provides
  `REGISTRY_SSL_NOVERIFY`.

Change-Id: Ib00bbc9cc63d70a88dbf8b23a518553d6134d332
2019-03-06 11:23:55 +01:00
Thippaiah, Balachandra (bt061u) 88df24b24d Add PIP_WHEEL_ARGS and use PIP_ARGS for pip install
This ps adds new argument PIP_WHEEL_ARGS
 - allows additional parameters for pip wheel
 - defaults to PIP_ARGS
Also use PIP_ARGS with all pip installs

Useful when building requirements image with local pip mirrors

Change-Id: I43c6b921467150509d013554aaa1983f30abedff
2018-11-12 10:44:46 -05:00
Jean-Philippe Evrard ba4d187092 Introduce extra *dep parameter
Without this patch, it is not possible to have your own
bindep or pydep file, and you must rely on what is in tree.

This is a problem for deployers that want to bring their own
bindep file, as they would need to fork the repository or
'taint it' by altering its content before building.

This patch introduces new parameters, EXTRA_BINDEP and
EXTRA_PYDEP, whose contents are path of files to be copied
into the containers. These parameters will be chained
(added on top of) the default *dep files.

In the current status Docker doesn't allow multiple files
to be passed as argument, and therefore the ability of
overrides is limited, but should be enough to allow deployers
to provide ONE file on top of existing bindep/pydeps.

Change-Id: I7e9f7954bb3c31dd8fee87c253a8768c6ec52b5c
2018-10-12 15:55:49 +00:00
wangqi 5c82a796f9 Updated spice-html5 git repository URL
Change-Id: Ie84dc5f598067d5f6a80e55e3167bc21bcb0a7b6
2018-06-07 09:41:14 +00:00
LiuYang e2d5de285a add pip additional args
for example, in order to speed up, use the mirror of pypi:
--build-arg PIP_ARGS="-i https://pypi.tuna.tsinghua.edu.cn/simple"

Change-Id: I7f975c04c4dfd5b18d37a3f4b152a053374a79aa
2018-03-29 11:10:01 +08:00
Sam Yaple d647991541
Add support for installing novnc and spice-html5
Previously, these items would have needed to be bind-mounted in so the
console services could properly render these pages and provide the
console service.

Change-Id: I7fc1b9fd47da5a2a524237aa9b8e626dbc7d6a09
2018-03-20 12:33:46 -04:00
Sam Yaple 7a9855eb00
Add python packages "bindep" file
Change-Id: Ia313a689d3b57578fe8f30a584e04ddc3af97a18
2018-03-08 13:06:57 -05:00
portdirect 17d1079547 Args: Add distrobution packages to args
This PS adds the ability to install arbitary distrobution
packages via args, allowing development and deployment helper
utilities to be simply included in an image.

Change-Id: Id3ce8bceda185978e1d1843072aac44f49b3d95a
2018-02-16 12:23:47 -05:00
Sam Yaple c51f595ee8
Allow the uid and gid to be customizeable
Change-Id: Ib6fd0da0020ec71a9d70d96501b40e849c004531
2018-01-10 15:43:03 -05:00
Sam Yaple aeff89ce24
Switch to loci org
The secret needed to be updated to make this work. Now we are pushing to
quay.io as well, both under the same loci namespace

Change-Id: I086aec21c2ebe69bcdf0aa25749280d8878f946d
2017-12-21 14:59:09 -05:00
Sam Yaple f272aa3cd0
Fix requirements building
We were not failing when wheels failed to build. Implement a quick fix
for that issue

Change-Id: I934beb526caca90db93c01c8ec5ac9dd63d6ddc9
2017-12-14 01:53:33 -05:00
Sam Yaple 2e2f31c5ea Add python3 support
Not all projects support python3 yet (swift being the worst offender)
and some only have partial support. Nova doesnt support python3 with xen
yet, but it does for everything else.

With this patch a full python3 deploy of openstack *should* be possible.
For now, at least it all builds.

Change-Id: Id03bbae1063b21e949085a3ef8f8c7534d2db3ff
2017-10-28 09:32:43 -04:00
Sam Yaple 3546f8f6a2 Switch requirements to new tagging scheme
We are not consuming the images we are pushing right now. Oops!

Change-Id: I72b3de6bb3c1601b0b3051486a14fb3f16040578
2017-10-19 22:45:30 -04:00
Sam Yaple ec71665e08 Plugin support in generic Dockerfile
This would allow us to sitck with the single Dockerfile without much
duplication. We do need to handle plugins in some form.

docker build --build-arg PROJECT=neutron --tag loci-neutron .
docker build --build-arg PROJECT=neutron-fwaas --build-arg PLUGIN=true --build-arg FROM=loci-neutron .

Change-Id: I997750970a3ccab33ad832cf7408a3c52a60831e
2017-10-14 20:35:27 -04:00
Sam Yaple 335506aaa2 Update variable name
PYPI_PACKAGES isn't accurate since we are building from a set of wheels
and we never actually reach out to a pypi mirror. PIP_PACKAGES is more
accurate for the situtation.

I also stopped passing variables to the script but rather call the
variable directly in the script.

Change-Id: I7e2b35ac06f590c2013b030bd8166f87d639424c
2017-10-08 18:03:40 -04:00
Sam Yaple e85357a522 Remove GENERIC flag
Change-Id: I7015bc885b449a0ecbea66e456db1847ea756470
2017-10-03 15:08:53 -04:00
Sam Yaple 9ad99a9c95 Move to single dockerfile
Build-args will control FROM args. Centos, Ubuntu, and Debian will
remain officially supported.

This will completely remove the logic from Dockerfile and put it in the
scripts control which is the direction we have been headed for a while.

Change-Id: I8e0745b50e6c141da5ca8f57b415ae206dad5ab4
2017-09-30 22:48:56 -04:00