Skip to content

Commit

Permalink
Dockerizing
Browse files Browse the repository at this point in the history
  • Loading branch information
synchrone committed Nov 13, 2016
1 parent a9cbf55 commit 740d666
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Dockerfile
@@ -0,0 +1,30 @@
FROM alpine
RUN apk update
RUN apk add bash
RUN apk add postgresql-client
RUN apk add mysql-client
RUN apk add sqlite
RUN apk add --update openssl

RUN wget -O /bin/shmig https://raw.githubusercontent.com/naquad/shmig/master/shmig
RUN chmod +x /bin/shmig

## SHMIG configuration
ENV TYPE mysql
ENV HOST localhost
ENV PORT 3389
ENV DATABASE db
ENV LOGIN root
ENV PASSWORD ''
ENV ASK_PASSWORD0 0
ENV MIGRATIONS "/sql"
ENV MYSQL "/usr/bin/mysql"
ENV PSQL "/usr/bin/psql"
ENV SQLITE3 "/usr/bin/sqlite3"
ENV UP_MARK="==== UP ===="
ENV DOWN_MARK="==== DOWN ===="
ENV COLOR auto
ENV SCHEMA_TABLE shmig_version

ADD entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
3 changes: 3 additions & 0 deletions entrypoint.sh
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
export > /shmig.conf
shmig $@

0 comments on commit 740d666

Please sign in to comment.