& DEBIAN_FRONTEND=noninteractive apt-get install -y less nano procps \ & DEBIAN_FRONTEND=noninteractive apt-get install -y apt-utils \ # Install apt-get allowing subsequent package configuration # Map Ctrl-Up and Ctrl-Down to history based bash completion & printf "\nalias ll='ls -l'\nalias l='ls -lA'\n" > /root/.bashrc \ RUN groupadd -r mysql & useradd -r -g mysql mysql \ # add our user and group first to make sure their IDs get assigned consistently, regardless of whatever dependencies get added The Dockerfile: # Build image cmd: docker build -t debian-mysql-server-5.7. Please consider carefully when using such images. Debian Sid is not stable nor officially supported. Note: Debian Sid is the development version of Debian. My research showed that currently only Debian Sid provides MySQL 5.7 among its databases. I used the official MySQL 5.7 Docker image of Oracle as template. However existing MySQL 5.7 Docker images can be used as reference. There are MySQL 5.7 Docker images, but they are not compatible with Raspberry Pi since Raspbian uses the arm32v7/ armel architecture. curl -sSL | shĬreate the Debian based MySQL 5.7 Docker image The installation of Docker on Raspbian is easy, see Get Started with Docker on Raspberry Pi for further information. My approach is to create a Docker image for MySQL 5.7 and to run the Docker container on my Raspberry Pi. Docker Introductionĭocker allows to run isolated containers providing services.Ī Docker image is "a saved Docker container" and it contains everything that is required to run it. Luckily, Docker is supported on Raspberry Pi. However, I don't want to risk breaking the current Raspbian setup.Ī clean approach would be to use virtualization technology such as a Docker container. People installed MySQL 5.7 on Raspian Jessie or Stretch using Debian Sid packages ( Raspberry Pi: Installing MySQL 5.7 on Raspbian Jessie and Install Mysql 5.7 on raspbian jesse - pi 3). However Raspian Jessie and Stretch do not provide these DB server versions. For compatibility with the rest of the project, I need a recent database, either MariaDB 10.2 or MySQL 5.7. I'm using a Raspberry Pi 3 for weekly database jobs. Which Distribution provides MySQL 5.7 on arm32v7/armel architecture? Can MySQL 5.7 be run in a Docker container on Raspberry Pi?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |