Commit Graph

9 Commits

Author SHA1 Message Date
Clark Boylan ae8090ef4a Use bullseye instead of buster
It occurred to me after we landed the switch to buster that the old
testing would've been closer to bullseye. I suspect that now that
bullseye has released testing has moved ahead of that and that is what
broke things. Anyway lets use bullseye instead as it is newer and more
up to date.

Change-Id: I2b405c4e3cd6c7d06d79875f540262ebba788336
2021-10-14 16:22:53 -07:00
James E. Blair ab9115d4f9 Switch base image to debian buster
This is probably what "testing" was the last time we build this
anyway.  Current "testing" doesn't work with bindep.

Change-Id: I475f782e6516a5854cb7fc54c07200ef1e20a7fc
2021-10-14 13:33:19 -07:00
Monty Taylor f19e38dab5 Simplify build
We only compile for a single platform, the one inside our container.
Since we do that, we can massively simplify this build.

Change-Id: Ic7d088fd85f2cf88838cb83524aaf1c8b2e858bf
2020-07-15 12:03:05 -05:00
James E. Blair 26d88125ef Handle SSL proxying and other fixes
Enable mod_ssl and enable proxying to ssl-terminated endpoints.

In the case where the artifact is not found, return NULL instead
of the bogus "Artifact_not_found" url, otherwise we can end up in
a loop where we continuously append that to the url.

Strip trailing slashes from the returned proxy target.  We can't
guarantee that folks won't have a '/' at the end of the artifact
url they return to Zuul (and in fact, it's probably more correct
that they do).  But our regex in mod_rewrite guarantees that we
will add a slash to it.  One sure way to handle this is just to
strip it from the data returned from Zuul if present.

Add a .dockerignore file with both itself and the Dockerfile
added, so that docker won't rebuild extra layers (like the C++
compile layer) if we just change the Dockerfile.

Change-Id: I00dfd0b6842abedf938702a816698d1c6526974d
2020-04-08 09:50:29 -07:00
Monty Taylor d78f94457f Use debian:testing-minimal base image 2019-02-11 18:26:42 +00:00
James E. Blair 7b680c18ec Use an env var for the API url 2019-02-11 08:39:01 -08:00
James E. Blair 9b9951dff5 Run apache
Add an apache vhost config file which uses zuul-preview as a
rewritemap.

Remove extraneous output from zuul-preview.

Add an exception handler around the http code.

Remove the mutex (as we are single threaded).

Run apache as the docker CMD.
2019-02-10 17:33:27 -08:00
Monty Taylor 31d726c6e6 Overhaul warnings, debug and optimize settings
There's a ton of stuff in here that's holdovers from the days of
Drizzle, such as intel c compiler and solaris support, that can
just flat go away. There's also support for being able to turn off
a bunch of various things with m4 parameters that were there to let
us deal with legacy MySQL code. We don't need any of those. We can
also just depend on autoconf archive for more functions and align
with the behavior there rather than carrying local logic.

While we're at it, rename both pandora and zuul prefixed things to
opendev. pandora-build is what we were calling the collection of
autoconf stuff 10 years ago, but is a long-dead project. That said,
none of this is specific to zuul, but might still be useful for
general C++ "I want to build things cleanly and stricly like
Drizzle did". Use opendev for now, with the thought that perhaps
we'll extract these into their own repo to be used by people
should they choose.

Perhaps a better prefix choice would be "DRIZZLE_" - since these
are "build things inspired by Drizzle" - but maybe that implies
a provenance that doesn't exist.

Update copyright for the files that have essentially been rewritten.
For the ones that are still legitimately based on the original code,
add a Red Hat header line.
2019-02-10 17:31:33 +00:00
Monty Taylor bab23a5e9b Add Dockerfile 2019-02-10 14:45:53 +00:00