Skip to content

Updated Dockerfile to use CrateDB version 5.6.1. #352

Updated Dockerfile to use CrateDB version 5.6.1.

Updated Dockerfile to use CrateDB version 5.6.1. #352

Workflow file for this run

---
name: CrateDB Docker images test
on: [push]
jobs:
multi-arch-build:
runs-on: ubuntu-latest
strategy:
matrix:
arch: [linux/amd64, linux/arm64]
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Update CrateDB docker image version
run: |
python -m pip install --upgrade pip --quiet
pip install -r requirements.txt --quiet
VERSION=$(curl -s https://cratedb.com/versions.json | grep crate_testing | tr -d '" ' | cut -d ":" -f2)
./update.py --cratedb-version ${VERSION} > Dockerfile
- name: Build CrateDB docker image
run: |
docker buildx build \
--platform ${{ matrix.arch }} \
--load \
--file ./Dockerfile . \
--tag crate/crate:ci_test
- name: Run Docker official images tests
run: |
git clone https://github.com/docker-library/official-images.git ~/official-images
~/official-images/test/run.sh crate/crate:ci_test