Skip to content

Commit

Permalink
Update README. Remove manual composer install from Dockerfile, just u…
Browse files Browse the repository at this point in the history
…se the repo version for simplicity.
  • Loading branch information
bstoots committed Jun 25, 2018
1 parent 08d8d75 commit 1b77a29
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,17 @@ RUN apt-get update && apt-get install -y \
ca-certificates \
openssl \
git \
unzip \
libxml2 \
libxml2-dev \
libxml2-utils \
php-cli \
php-mysqli \
php-pgsql \
php-xml
# Download and Install Composer
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
RUN php -r "if (hash_file('SHA384', 'composer-setup.php') === '55d6ead61b29c7bdee5cccfb50076874187bd9f21f65d8991d46ec5cc90518f447387fb9f76ebae1fbbacf329e583e30') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
RUN php composer-setup.php
RUN php -r "unlink('composer-setup.php');"
php-xml \
composer
# Install DBSteward
RUN php composer.phar global require nkiraly/dbsteward:dev-master
RUN composer global require nkiraly/dbsteward:dev-master
ENV PATH=$PATH:/root/.composer/vendor/bin
# Pick a sane entrypoint / default command
ENTRYPOINT ["dbsteward"]
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
# docker-dbsteward

Run [DBSteward](https://github.com/nkiraly/DBSteward), the SQL definition differencing tool.

Dockerfile: (https://github.com/dbsteward/docker-dbsteward/blob/master/Dockerfile)

Usage:
```
docker run -t bstoots/dbsteward
```

To mount a volume from your host:
```
docker run -t -v C:\Users\bstoots\path\to\dbxml:/db bstoots/dbsteward --xml=/db/db.xml
```

0 comments on commit 1b77a29

Please sign in to comment.