Commit Graph

33 Commits (5473a9489b939f7e6b6005505960effea8a707aa)

Author SHA1 Message Date
Michael Gattozzi c88cb5f093
feat: build binaries and Docker images in CI (#24751)
For releases we need to have Docker images and binary images available for the
user to actually run influxdb3. These CI changes will build the binaries on a
release tag and the Docker image as well, test, sign, and publish them and make
them available for download.

Co-Authored-By: Brandon Pfeifer <bpfeifer@influxdata.com>
2024-05-03 16:39:42 -04:00
Michael Gattozzi 59d8e23d49
fix: Readd the Dockerfile for the main branch (#24719) 2024-02-29 16:33:36 -05:00
Michael Gattozzi 73e261c021
feat: Split out shared core crates from Edge (#24714)
This commit is a major refactor for the code base. It mainly does four
things:

1. Splits code shared between the internal IOx repository and this one
   into it's own repo over at https://github.com/influxdata/influxdb3_core
2. Removes any docs or anything else that did not relate to this project
3. Reorganizes the Cargo.toml files to use the top level Cargo.toml to
   declare dependencies and versions to keep all crates in sync and sets
   all others to use `<dep>.workspace = true` unless it's an optional
   dependency
4. Set the top level Cargo.toml to point to the core crates as git
   dependencies

With this any changes specific to Edge will be contained here, updating
deps will be a PR over in `influxdata/influxdb3_core`, and we can prove
out the viability for this model to use for IOx.
2024-02-29 16:21:41 -05:00
Michael Gattozzi 9d81c73785
fix: set Dockerfile to build influxdb3 not IOx (#24563)
Now that we're transitioning the repo code to have influxdb3 Edge not
IOx be what's here, we can update the Dockerfile to build influxdb3.
This is mostly just updating which version of Rust to use, changing the
command that's run when docker runs the container to serve, and changing
influxdb_iox to influxdb3 everywhere in the file.
2024-01-09 15:19:21 -05:00
Marco Neumann 089f512e88
fix: do not use empty `RUSTFLAGS` for docker build (#8052)
Empty `RUSTFLAGS` overrides everything that we define in our cargo
config.
2023-06-22 14:03:11 +00:00
Marco Neumann 4d1c6f805c
refactor: clean up rustflags and build args (#8047)
- move `tokio_unstable` to cargo config, so all we can use it within
   our code (e.g. for #7982)
- disable incremental builds for prod docker builds. this was tried
  before but got lost at some point because build params weren't passed
  to docker correclty
- fix `CARGO_NET_GIT_FETCH_WITH_CLI` for docker builds (env wasn't
  passed through)
2023-06-22 09:58:46 +00:00
Marco Neumann bfc3c0d934
chore: update CI and prod image to Debian 12 / bookworm (#7972)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-06-12 09:33:23 +00:00
Marco Neumann 0679cae4c6
chore: reduce prod image layer count (#7539)
- fuse two RUN commands into one, they're not cached anyways
- remove pointless `RUN ls ...`

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-04-13 12:06:59 +00:00
Carol (Nichols || Goulding) 98621f560b
fix: Remove obsolete SERVER_MODE from the Dockerfile 2022-11-11 16:14:13 -05:00
Adrian Thurston 33e31725c9
feat: added rustup toolchain dir to docker buildkit cache (#5474)
Added /usr/local/rustup to the list of directories cached during build. This is
where rustup installs the toolchain, so we save the download and install on
every build.

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-08-29 12:32:20 +00:00
Marco Neumann 5f15d97dd1
chore: always pass `ROARING_ARCH` (#5203)
* chore: always pass `ROARING_ARCH`

Always pass the `ROARING_ARCH` that we would use for our prod builds.
Otherwise this can easily be missed during testing, profiling or build
system changes (e.g. should we ever move aways for our `Dockerfile`).

This feature was introduced with Rust/Cargo 1.56.

* docs: explain env passing

Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>

Co-authored-by: Andrew Lamb <andrew@nerdnetworks.org>
2022-07-25 16:15:39 +00:00
Andrew Lamb 3961568fff
fix: Add protobuf compiler to docker build image (#4369) 2022-04-20 13:33:06 +00:00
Marco Neumann 50cff27b01
chore: remove rdkafka dependency (#3625)
All features are now covered by rskafka. This also removes the need to
specify a server ID for write buffer consumers. This was only used for
rdkafka since there we needed to specify a consumer group, even though
we did not use any transactions.
2022-02-03 13:33:56 +00:00
Marco Neumann 7feb10dd30
fix: bring back GIT revision to our prod images (#3537)
This was likely broken since #3313 and leads to IOx reporting `UKNOWN`
instead of a proper GIT revision. Having the latter one available can be
very useful for debugging a binary or if you look through log files (we
print the IOx version and revision during server startup).

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2022-01-26 10:12:43 +00:00
Marco Neumann 6153e3df0b chore: build docker image for data generator
Closes #3322.
2021-12-14 12:44:41 +01:00
Marco Neumann 9c0fd4360d ci: use lld to speedup linking 2021-12-14 12:44:08 +01:00
Carol (Nichols || Goulding) beede9bd4e
feat: Test and build releases with the Kafka feature enabled 2021-12-09 08:49:34 -05:00
Carol (Nichols || Goulding) 2561af666e
fix: Use profile name variable in build artifact paths
Co-authored-by: Marco Neumann <marco@crepererum.net>
2021-12-08 09:53:19 -05:00
Carol (Nichols || Goulding) 361745803e
feat: Use a PROFILE arg/env var in the Dockerfile 2021-12-08 09:53:19 -05:00
Marco Neumann 1706bc94a0 chore: provide a single way to build prod IOx images
Closes #3310.
2021-12-06 15:20:28 +01:00
Jacob Marble 2976244244
chore: update one-shot Dockerfile to not depend on rust:ci (#3133)
* chore: update one-shot Dockerfile to not depend on rust:ci

* chore: update Debian to bullseye

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-11-18 16:01:32 +00:00
Marco Neumann 640cd88df3 ci: update CI images from docker buster to bullseye
This will break `perf_image` until the new CI image is built due to the
newly required `--all-tags` parameter to `docker push` that isn't
available for the docker version we run on buster.
2021-11-17 10:00:31 +01:00
Marco Neumann 705fa3cb98
fix: dockerfiles should select database server mode by default (#3010)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-11-03 18:06:01 +00:00
Raphael Taylor-Davies 92e6173f49
feat: implement jaeger-agent protocol directly (#2607)
* feat: implement jaeger-agent protocol directly

* chore: review feedback

* fix: remove jaeger feature flag
2021-09-22 17:30:37 +00:00
Raphael Taylor-Davies 3fdc0e9a6a
chore: remove orphaned code from trogging (#2371)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2021-08-24 10:12:59 +00:00
Andrew Lamb 5e1cb244f7
feat: make pprof optional (#2331) 2021-08-18 15:13:37 +00:00
Jacob Marble c068c36011
chore: enable object stores and tracing impls in Dockerfile (#2327)
Make the image generated by Dockerfile very useful for users who don't
have to build it themselves. Enable all object store backends and
tracing destinations.
2021-08-17 10:55:40 -07:00
Marko Mikulicic 58b01b4ad3 fix: Add ca-certificates to iox docker image 2021-03-15 16:53:42 +00:00
Marko Mikulicic 334fb149b1
feat: Rename server run command to just run
Closes #976
2021-03-12 18:36:04 +01:00
Marko Mikulicic 8029aa887d feat: Add subcommands to server 2021-03-11 16:07:42 +00:00
Marko Mikulicic 79105b2c50
feat: Make server no longer the default command 2021-03-10 16:49:49 +01:00
Marko Mikulicic 4643dee61a feat: Simplify Dockerfile
Simplify Dockerfile by re-using toolchain and build dependencies from the image used to run iox's CI
system.
2021-03-02 18:06:53 +00:00
Jacob Marble 485024cb5b feat(docker): add one-command Dockerfile
This adds a simple Dockerfile for anyone to just `docker build .` and
get a Docker image. This Dockerfile is optimized for human consumption,
not for build performance.
2021-03-01 15:45:27 -08:00