Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

714 B
Raw Blame
FROM ruby:2.6-stretch
MAINTAINER [email protected]

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"]