Commit Graph

43 Commits

Author SHA1 Message Date
Mohammed Naser 9e7b71c304 Reduce build targets
OpenSUSE LEAP is currently not in use by any known downstream
users and it has been broken for quite sometime, leaving the gate
in a broken state and unable to land any code.  There's no active
maintainer for it as well.

Debian support was added by us (VEXXHOST) but we decided that
we're not going to continue using it and move towards Ubuntu, so
we do not want to maintain it, as well as that it is building images
for Train only.

It also updates the README file accordingly as well as includes
focal in there which has been recently added.

Change-Id: Ideb497c169828184d301b6be4359a7c2228aa444
2022-05-23 15:59:49 +00:00
Gage Hugo 5c88d13eae Update README
The README currently contains some information about base linux
distros that are either no longer used or older and not supported
by loci. This change removes the list of supported distros in
favor of a more generic description.

Change-Id: I106ca7de063cfd62060da7b47dc728b18575c705
2022-04-27 14:21:32 -05:00
Andrii Ostapenko 3e5730cd53 Enable Debian gate build and fix mirrors related issues
Also fixes related issue with distutils installation for Debian Stretch
and Ubuntu Xenial with py3: unlike in Bionic, distutils is installed with
python3 and python3-distutils package is not available in these distributions.

Run Debian build with py3 against stable/train, as master requires at
least python3.6, not available for distribution out of box.

Also increases job timeout to 5400 due to increased amount of builds.

Change-Id: I04c9253af80d941afb45231bee20f7bb1c4a96d4
2021-02-16 14:33:04 +00:00
Zuul 038f3662da Merge "Update docs to reflect ubuntu paths" 2020-07-24 05:33:35 +00: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
Jake Yip a3dff124cf Update docs to reflect ubuntu paths
In Change I7290203d80461f46ed70d5e3bea55c9765f9e746 ubuntu was renamed
to ubuntu_xenial and ubuntu_bionic was introduced

Update docs to reflect this new location

Change-Id: I869e323413b03ee2f343f1777ea062e27809ab3f
2020-07-13 18:33:35 +00:00
Dantali0n 13a7ff8654 Add delimiter for service image build example
Adds the \ line delimiter for the service image build example in
README.md. This prevents only half of the command being executed
if the example is copy pasted into a terminal.

Change-Id: Id04e8679a1979da9cd0a88e652465f915fd0bf28
2020-07-09 08:43:18 +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
Thomas Bechtold 01705a2b5d Add job to build Manila images
This is useful for people who want to use Manila (shared filesystem as
a service).

Change-Id: I57655313e1a53b7f8c91a9e03f4749273665037a
2019-08-12 09:21:49 +02:00
Chris Hoge ac2b5a80ad Updated README.md to reflect need to build base image
Loci requires that base images be prepared with some
common tools and repositories. This patch updates the
README to indicate that stock vendor images will not work
and that the base images must be built.

Change-Id: I9bd41f116978e501f0dec9e52f870c81224c0660
2019-06-11 09:21:08 -07:00
Jean-Philippe Evrard 086ace64e9 Move to opendev
Change-Id: I6706ee3f611b21a4d470c68fec4bf090dc6a4cc0
2019-04-24 16:44:58 +02:00
Zuul a51afe952d Merge "Support self-signed certificates docker registry" 2019-03-08 15:52:32 +00: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
Chris Hoge 3f3a672d25 Make various spelling and usage fixes in Loci
This patch is an audit of the Loci documents and code for trivial
spelling and usage errors.

Change-Id: I64ee9d4eb5b299852c53ee9c6ab8e7d9b862ac73
2019-01-29 14:04:49 -08:00
Zuul a605fc83aa Merge "Add openSUSE Leap to Keystone image layer info example" 2018-12-10 16:14:13 +00:00
Zuul a922ba15ef Merge "Updated documentation of FROM argument" 2018-12-07 17:32:40 +00:00
Thomas Bechtold 95858277eb Add openSUSE Leap to Keystone image layer info example
There are microbadger.com images for the different distibutions listed
in the "Keystone Image Layer Info" section. Add openSUSE there as
well.
Also sort the listed distros by name and prefix the images with the
distro name so it is more obvious which image is for which distro.

Change-Id: I50958ac839f51e7ad91312a0899a20c12c38229a
2018-12-03 15:55:47 +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
Chris Hoge 0bfe65d58d Updated documentation of FROM argument
Loci now supports OpenSuse. Added documentation expanding on supported
distributions and how to use the FROM argument.

Change-Id: Ifef14545bfa58b194082aa4e6e1ebbe43c15ce29
2018-11-06 18:02:03 -08: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
Jean-Philippe Evrard 62f35e726c Fix typo
I am not sure entropy is rightly used here, but at least I am
sure it's not entopy.

Change-Id: Ibc6aeb407e3f6630ab8d72420fa6f92baf5d6788
2018-09-20 18:58:23 +02:00
Zuul f983334bf8 Merge "Update centos example in README to use WHEELS" 2018-07-26 22:53:45 +00:00
Jean-Philippe Evrard 24065605a2 Clarify build requirements
LOCI build requires a docker version >= 17.0.5 to work,
due to the FROM given as argument (See this new feature
in the 17.0.5 release changelog [1])

Without this patch, a new contributor might think the image
building is broken, while LOCI works perfectly fine.

This patch solves the problem by being explicit in the minimum
required version.

[1]: https://docs.docker.com/release-notes/docker-ce/#17050-ce-2017-05-04

Change-Id: I4ebdcbd641607ffce3a20731cbf035c7a9a9af65
2018-07-25 15:47:01 +02:00
Paul Bourke 73aaf1072c Update centos example in README to use WHEELS
It's important to specify WHEELS when building a distro other than the
default. This was missing from the README example.

Change-Id: Id1ab77b14e6efcc14d6e043d3c2d38883d072809
2018-07-18 00:06:39 +01:00
Iago Santos 44835dcd42 Adds octavia support
Change-Id: I9257f676861e3e23fd84fa1daa0ce92785bdb77b
Implements: blueprint octavia
2018-06-11 12:54:22 +02: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
Zuul 655d07ee50 Merge "Remove warning about stability" 2018-03-20 13:40:52 +00:00
Sam Yaple 52b95fc20c
Remove warning about stability
LOCI is running in production and is pretty low entropy, i think its
safe to all it stable ;)

Change-Id: Ib4e5c74058748df39067a7aecdd5ade2d89f40e6
2018-03-09 09:29:25 -05:00
Paul Bourke 9c55e26225 Some README fixups
* Fix the microbadges

* Wrap commands to 100 lines so github doesn't show a horizontal scroll
  bar

* Break out the example for building from a different base so its more
  clear

* Fix a typo and add some backticks around inline code blocks

Change-Id: Ib5144cc34e5c9968c333caf9a1083c78f86ae652
2018-03-08 18:03:05 +00: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 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 dbacbcc4f0 Update docs
I removed the Docker Hub building because that is no longer strictly
true. HOWEVER, as soon as zuulv3 turns back on, we will be publishing in
the 'post' pipeline to DockerHub. Code has already merged for this. Once
that happens, I will amend the docs again.

Change-Id: I38103df6658f2e44df15deabdfd3e67904789874
2017-10-04 14:08:52 -04:00
Paul Bourke 6a093420af Add a note about building behind proxies
Change-Id: I0278db24010d8a5125135ba08dc9f7e4d169c09c
2017-08-11 11:43:17 +01:00
Sam Yaple ff5f1592de Remove reference to DOCKER_* vars in the docs
Change-Id: I2a69f83383e71840d0c78daa8321491d454e2d30
2017-04-15 20:29:02 +00:00
Sam Yaple bc1b8908c8 Remove all traces of YAODU
Change-Id: Ibd6cc18e2a4dbda75b5f59a593fbf72c494b7043
2017-04-14 20:16:09 +00:00
Sam Yaple e7f097506f Update README with new variables
Change-Id: I350a4cdf57e0b301cb1df9fd7ced03550509dd85
2017-04-06 03:38:00 +00:00
Paul Bourke b045a1a2a7 Fix wording in main README.md
Change-Id: Ib0cd8442e78a68134178ce069dc9fda3ae643cfa
2017-03-30 11:28:08 +01:00
Paul Bourke df9c6bc809 Wrap README.md lines to 79 chars
Wrap source lines so that lines length does not exceed 79 characters.
This requirement matches PEP8 standards (from Python) and helps with
side-by-side diffs on reviews. [0]

[0] https://docs.openstack.org/contributor-guide/rst-conv/general-guidelines.html

Change-Id: I598e25272ae396bb49883f19fc4ef67662652145
2017-03-30 11:26:45 +01:00
Sam Yaple a88a707bcd Add list of LOCI repositories
Change-Id: I3ec830ba5931a555c4a4f718fd9c7ff9681724c5
2017-03-30 03:35:13 +00:00
Sam Yaple fca2a1d3a1 Add README for other LOCI projects to reference
Change-Id: Iac99c2dee08af9a4f85e3e605a21aa187a498272
2017-03-27 15:27:19 +00:00