Sign inSign up

richardjecooke/ruby-mysql-in-memory

By richardjecooke

•Updated over 9 years ago

Child of spittet/ruby-mysql where MySql data is in /dev/shm (in-memory, RAM) for fast RSpec tests

Image
0

317

richardjecooke/ruby-mysql-in-memory repository overview

Note: Run ./start_mysql.sh in your Dockerfile when using this image or it won't work.

This command has to be in the container because every time you start /dev/sh is cleared (cos it's RAM) and so MySql must be moved again

⁠The Dockerfile for this image:

FROM spittet/ruby-mysql
MAINTAINER [email protected]

RUN echo '/etc/init.d/mysql start && /etc/init.d/mysql stop && cp -R -p /var/lib/mysql /dev/shm && sed -i -e 's,/var/lib/mysql,/dev/shm/mysql,g' /etc/mysql/my.cnf && /etc/init.d/mysql start' > start_mysql.sh && \
    chmod +x start_mysql.sh

Tag summary

Content type

Image

Digest

Size

302 MB

Last updated

over 9 years ago

docker pull richardjecooke/ruby-mysql-in-memory