mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-23 06:09:59 +00:00
Move build-tools.Dockerfile -> build-tools/Dockerfile (#12590)
## Problem This is a prerequisite for neondatabase/neon#12575 to keep all things relevant to `build-tools` image in a single directory ## Summary of changes - Rename `build_tools/` to `build-tools/` - Move `build-tools.Dockerfile` to `build-tools/Dockerfile`
This commit is contained in:
committed by
GitHub
parent
ff526a1051
commit
7a7ab2a1d1
@@ -27,4 +27,4 @@
|
|||||||
!storage_controller/
|
!storage_controller/
|
||||||
!vendor/postgres-*/
|
!vendor/postgres-*/
|
||||||
!workspace_hack/
|
!workspace_hack/
|
||||||
!build_tools/patches
|
!build-tools/patches
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ jobs:
|
|||||||
secretKey: ${{ secrets.HETZNER_CACHE_SECRET_KEY }}
|
secretKey: ${{ secrets.HETZNER_CACHE_SECRET_KEY }}
|
||||||
use-fallback: false
|
use-fallback: false
|
||||||
path: pg_install/v14
|
path: pg_install/v14
|
||||||
key: v1-${{ runner.os }}-${{ runner.arch }}-${{ inputs.build-type }}-pg-${{ steps.pg_v14_rev.outputs.pg_rev }}-bookworm-${{ hashFiles('Makefile', 'build-tools.Dockerfile') }}
|
key: v1-${{ runner.os }}-${{ runner.arch }}-${{ inputs.build-type }}-pg-${{ steps.pg_v14_rev.outputs.pg_rev }}-bookworm-${{ hashFiles('Makefile', 'build-tools/Dockerfile') }}
|
||||||
|
|
||||||
- name: Cache postgres v15 build
|
- name: Cache postgres v15 build
|
||||||
id: cache_pg_15
|
id: cache_pg_15
|
||||||
@@ -162,7 +162,7 @@ jobs:
|
|||||||
secretKey: ${{ secrets.HETZNER_CACHE_SECRET_KEY }}
|
secretKey: ${{ secrets.HETZNER_CACHE_SECRET_KEY }}
|
||||||
use-fallback: false
|
use-fallback: false
|
||||||
path: pg_install/v15
|
path: pg_install/v15
|
||||||
key: v1-${{ runner.os }}-${{ runner.arch }}-${{ inputs.build-type }}-pg-${{ steps.pg_v15_rev.outputs.pg_rev }}-bookworm-${{ hashFiles('Makefile', 'build-tools.Dockerfile') }}
|
key: v1-${{ runner.os }}-${{ runner.arch }}-${{ inputs.build-type }}-pg-${{ steps.pg_v15_rev.outputs.pg_rev }}-bookworm-${{ hashFiles('Makefile', 'build-tools/Dockerfile') }}
|
||||||
|
|
||||||
- name: Cache postgres v16 build
|
- name: Cache postgres v16 build
|
||||||
id: cache_pg_16
|
id: cache_pg_16
|
||||||
@@ -174,7 +174,7 @@ jobs:
|
|||||||
secretKey: ${{ secrets.HETZNER_CACHE_SECRET_KEY }}
|
secretKey: ${{ secrets.HETZNER_CACHE_SECRET_KEY }}
|
||||||
use-fallback: false
|
use-fallback: false
|
||||||
path: pg_install/v16
|
path: pg_install/v16
|
||||||
key: v1-${{ runner.os }}-${{ runner.arch }}-${{ inputs.build-type }}-pg-${{ steps.pg_v16_rev.outputs.pg_rev }}-bookworm-${{ hashFiles('Makefile', 'build-tools.Dockerfile') }}
|
key: v1-${{ runner.os }}-${{ runner.arch }}-${{ inputs.build-type }}-pg-${{ steps.pg_v16_rev.outputs.pg_rev }}-bookworm-${{ hashFiles('Makefile', 'build-tools/Dockerfile') }}
|
||||||
|
|
||||||
- name: Cache postgres v17 build
|
- name: Cache postgres v17 build
|
||||||
id: cache_pg_17
|
id: cache_pg_17
|
||||||
@@ -186,7 +186,7 @@ jobs:
|
|||||||
secretKey: ${{ secrets.HETZNER_CACHE_SECRET_KEY }}
|
secretKey: ${{ secrets.HETZNER_CACHE_SECRET_KEY }}
|
||||||
use-fallback: false
|
use-fallback: false
|
||||||
path: pg_install/v17
|
path: pg_install/v17
|
||||||
key: v1-${{ runner.os }}-${{ runner.arch }}-${{ inputs.build-type }}-pg-${{ steps.pg_v17_rev.outputs.pg_rev }}-bookworm-${{ hashFiles('Makefile', 'build-tools.Dockerfile') }}
|
key: v1-${{ runner.os }}-${{ runner.arch }}-${{ inputs.build-type }}-pg-${{ steps.pg_v17_rev.outputs.pg_rev }}-bookworm-${{ hashFiles('Makefile', 'build-tools/Dockerfile') }}
|
||||||
|
|
||||||
- name: Build all
|
- name: Build all
|
||||||
# Note: the Makefile picks up BUILD_TYPE and CARGO_PROFILE from the env variables
|
# Note: the Makefile picks up BUILD_TYPE and CARGO_PROFILE from the env variables
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ jobs:
|
|||||||
ARCHS: ${{ inputs.archs || '["x64","arm64"]' }}
|
ARCHS: ${{ inputs.archs || '["x64","arm64"]' }}
|
||||||
DEBIANS: ${{ inputs.debians || '["bullseye","bookworm"]' }}
|
DEBIANS: ${{ inputs.debians || '["bullseye","bookworm"]' }}
|
||||||
IMAGE_TAG: |
|
IMAGE_TAG: |
|
||||||
${{ hashFiles('build-tools.Dockerfile',
|
${{ hashFiles('build-tools/Dockerfile',
|
||||||
'.github/workflows/build-build-tools-image.yml') }}
|
'.github/workflows/build-build-tools-image.yml') }}
|
||||||
run: |
|
run: |
|
||||||
echo "archs=${ARCHS}" | tee -a ${GITHUB_OUTPUT}
|
echo "archs=${ARCHS}" | tee -a ${GITHUB_OUTPUT}
|
||||||
@@ -144,7 +144,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0
|
- uses: docker/build-push-action@471d1dc4e07e5cdedd4c2171150001c434f0b7a4 # v6.15.0
|
||||||
with:
|
with:
|
||||||
file: build-tools.Dockerfile
|
file: build-tools/Dockerfile
|
||||||
context: .
|
context: .
|
||||||
provenance: false
|
provenance: false
|
||||||
push: true
|
push: true
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ RUN echo 'Acquire::Retries "5";' > /etc/apt/apt.conf.d/80-retries && \
|
|||||||
echo -e "retry_connrefused=on\ntimeout=15\ntries=5\nretry-on-host-error=on\n" > /root/.wgetrc && \
|
echo -e "retry_connrefused=on\ntimeout=15\ntries=5\nretry-on-host-error=on\n" > /root/.wgetrc && \
|
||||||
echo -e "--retry-connrefused\n--connect-timeout 15\n--retry 5\n--max-time 300\n" > /root/.curlrc
|
echo -e "--retry-connrefused\n--connect-timeout 15\n--retry 5\n--max-time 300\n" > /root/.curlrc
|
||||||
|
|
||||||
COPY build_tools/patches/pgcopydbv017.patch /pgcopydbv017.patch
|
COPY build-tools/patches/pgcopydbv017.patch /pgcopydbv017.patch
|
||||||
|
|
||||||
RUN if [ "${DEBIAN_VERSION}" = "bookworm" ]; then \
|
RUN if [ "${DEBIAN_VERSION}" = "bookworm" ]; then \
|
||||||
set -e && \
|
set -e && \
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
#
|
#
|
||||||
# build-tools: This contains Rust compiler toolchain and other tools needed at compile
|
# build-tools: This contains Rust compiler toolchain and other tools needed at compile
|
||||||
# time. This is also used for the storage builds. This image is defined in
|
# time. This is also used for the storage builds. This image is defined in
|
||||||
# build-tools.Dockerfile.
|
# build-tools/Dockerfile.
|
||||||
#
|
#
|
||||||
# build-deps: Contains C compiler, other build tools, and compile-time dependencies
|
# build-deps: Contains C compiler, other build tools, and compile-time dependencies
|
||||||
# needed to compile PostgreSQL and most extensions. (Some extensions need
|
# needed to compile PostgreSQL and most extensions. (Some extensions need
|
||||||
@@ -115,7 +115,7 @@ ARG EXTENSIONS=all
|
|||||||
FROM $BASE_IMAGE_SHA AS build-deps
|
FROM $BASE_IMAGE_SHA AS build-deps
|
||||||
ARG DEBIAN_VERSION
|
ARG DEBIAN_VERSION
|
||||||
|
|
||||||
# Keep in sync with build-tools.Dockerfile
|
# Keep in sync with build-tools/Dockerfile
|
||||||
ENV PROTOC_VERSION=25.1
|
ENV PROTOC_VERSION=25.1
|
||||||
|
|
||||||
# Use strict mode for bash to catch errors early
|
# Use strict mode for bash to catch errors early
|
||||||
@@ -1790,7 +1790,7 @@ RUN set -e \
|
|||||||
#########################################################################################
|
#########################################################################################
|
||||||
FROM build-deps AS exporters
|
FROM build-deps AS exporters
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
# Keep sql_exporter version same as in build-tools.Dockerfile and
|
# Keep sql_exporter version same as in build-tools/Dockerfile and
|
||||||
# test_runner/regress/test_compute_metrics.py
|
# test_runner/regress/test_compute_metrics.py
|
||||||
# See comment on the top of the file regading `echo`, `-e` and `\n`
|
# See comment on the top of the file regading `echo`, `-e` and `\n`
|
||||||
RUN if [ "$TARGETARCH" = "amd64" ]; then\
|
RUN if [ "$TARGETARCH" = "amd64" ]; then\
|
||||||
|
|||||||
@@ -217,7 +217,7 @@ if SQL_EXPORTER is None:
|
|||||||
self, logs_dir: Path, config_file: Path, collector_file: Path, port: int
|
self, logs_dir: Path, config_file: Path, collector_file: Path, port: int
|
||||||
) -> None:
|
) -> None:
|
||||||
# NOTE: Keep the version the same as in
|
# NOTE: Keep the version the same as in
|
||||||
# compute/compute-node.Dockerfile and build-tools.Dockerfile.
|
# compute/compute-node.Dockerfile and build-tools/Dockerfile.
|
||||||
#
|
#
|
||||||
# The "host" network mode allows sql_exporter to talk to the
|
# The "host" network mode allows sql_exporter to talk to the
|
||||||
# endpoint which is running on the host.
|
# endpoint which is running on the host.
|
||||||
|
|||||||
Reference in New Issue
Block a user