Giter Site home page Giter Site logo

docker-images's Introduction

Docker images for building and running ProxySQL

Images can be found at:

build-images

  • used for building of proxysql packages
  • based on upstream images
  • added GCC build tooling
  • added build dependencies

build-clang-images

  • used for building of proxysql packages
  • based on upstream images
  • added CLANG build tooling
    • clang must use lld
    • RH based distros still pull GCC as dependency
  • added build dependencies

pkgtest-images

  • used for basic testing of built proxysql packages
  • based on upstream images
  • added runtime dependencies

proxysql-images

  • proxysql prebuild image

How to build images

Native-arch

run make inside of one of the folders to build native image, e.g.:

cd build-images
make clean
make [target]

Multi-arch

run make inside of one of the folders to build multi-arch images, supported architectures are amd64 and arm64. e.g.:

cd build-images
make clean
make -f Makefile.multiarch [target]

Setup Docker for local multiarch via Qemu

Note

  • Using buildx with Docker requires Docker engine 19.03 or newer
  • since Docker v23, BuildX is packaged and will be installed if you install from upstream

Install docker from upstream

Qemu is required for multiarch local builds

apt-get install --no-install-recommends qemu-system-arm

Bootstrap BuildX for local multiarch using qemu

docker rm -f buildx_buildkit_multiarch0
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
docker buildx rm multiarch
docker buildx create --name multiarch --driver docker-container --use
docker buildx inspect --bootstrap
docker buildx ls

Setup Docker for distributed native multiarch

Note

  • This requires native hosts for buidling respective arch
  • docker and buildx must be installed on all nodes
  • make sure to test the ssh connection first
docker buildx rm distarch
docker buildx create --name distarch --node local_amd64
docker buildx create --name distarch --append --node remote_arm64 ssh://root@<IP>
docker buildx use distarch
docker buildx inspect --bootstrap
docker buildx ls

Inner workings

Runing image build

docker buildx build -t proxysql/packaging:build-debian11 --platform linux/arm64,linux/amd64 proxysql-build-debian11

Uploading finished build

docker credentials
docker buildx build -t proxysql/packaging:build-debian11 --platform linux/arm64,linux/amd64 proxysql-build-debian11 --push

Resources...

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.