OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/docker/prod/mysql-to-postgres/Dockerfile

23 lines
714 B

FROM ruby:2.6-stretch
MAINTAINER operations@openproject.com
ENV PGLOADER_DEPENDENCIES "libsqlite3-dev make curl gawk freetds-dev libzip-dev"
# Install
#
# 1) mysql and postgres clients
# 2) pgloader dependencies minus SBCL since we use CCL
RUN apt-get update -qq && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
mysql-client postgresql-client \
$PGLOADER_DEPENDENCIES && \
apt-get clean && rm -rf /var/lib/apt/lists/*
# pgloader
ENV CCL_DEFAULT_DIRECTORY /opt/ccl
COPY docker/mysql-to-postgres/bin/build /tmp/build-pgloader
RUN /tmp/build-pgloader && rm /tmp/build-pgloader
COPY docker/mysql-to-postgres/bin/migrate-mysql-to-postgres /usr/local/bin/
CMD ["migrate-mysql-to-postgres"]