harbor/migration/Dockerfile

24 lines
377 B
Docker
Raw Normal View History

2016-05-09 08:11:34 +02:00
FROM mysql:5.6
MAINTAINER bhe@vmware.com
RUN sed -i -e 's/us.archive.ubuntu.com/archive.ubuntu.com/g' /etc/apt/sources.list
RUN apt-get update
RUN apt-get install -y curl python python-pip git python-mysqldb
RUN pip install alembic
RUN mkdir -p /harbor-migration
WORKDIR /harbor-migration
COPY ./ ./
COPY ./migration.cfg ./
2016-05-09 12:50:04 +02:00
RUN ./prepare.sh
2016-05-09 08:11:34 +02:00
ENTRYPOINT ["./run.sh"]