Skip to content

Commit 21e47cd

Browse files
committed
Update for Debian buster.
And start a file descibing how to test that it works.
1 parent 2a52009 commit 21e47cd

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ WORKDIR /work/src
2424
RUN perl Build.PL --quiet --install_base /app --etcdir /etc/sqitch \
2525
--config installman1dir= --config installsiteman1dir= --config installman3dir= --config installsiteman3dir= \
2626
--with sqlite --with postgres --with firebird --with odbc \
27+
&& ln -s /usr/include/ibase.h /usr/include/firebird/ \
2728
&& ./Build test && ./Build bundle \
2829
&& rm -rf /app/man \
2930
&& find /app -name '*.pod' | grep -v sqitch | xargs rm -rf
@@ -35,11 +36,11 @@ FROM debian:stable-slim AS sqitch
3536
# Install runtime system dependencies and remove unnecesary files.
3637
RUN mkdir -p /usr/share/man/man1 /usr/share/man/man7 \
3738
&& apt-get -qq update \
38-
&& apt-get -qq --no-install-recommends install less libperl5.24 perl-doc nano \
39+
&& apt-get -qq --no-install-recommends install less libperl5.28 perl-doc nano \
3940
sqlite3 \
4041
firebird3.0-utils libfbclient2 \
4142
libpq5 postgresql-client \
42-
mariadb-client-core-10.1 libmariadbclient18 libdbd-mysql-perl \
43+
mariadb-client-core-10.3 libmariadb-dev-compat libdbd-mysql-perl \
4344
&& apt-cache pkgnames | grep python | xargs apt-get purge -qq \
4445
&& apt-cache pkgnames | grep libmagic | xargs apt-get purge -qq \
4546
&& apt-get clean \

build

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,3 @@ docker build --pull \
4646
"${tagopt[@]}" \
4747
--build-arg "VERSION=${VERSION}" \
4848
"$@" .
49-

testing.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Testing the Image
2+
=================
3+
4+
MySQL
5+
-----
6+
7+
* Run MySQL in a separate container:
8+
9+
docker run --name=mysqld -d -e MYSQL_ALLOW_EMPTY_PASSWORD=yes -p 3306:3306 mysql:8.0 --default-authentication-plugin=mysql_native_password
10+
11+
* Create a database:
12+
13+
docker run -it --rm mysql mysql -h host.docker.internal --execute 'CREATE DATABASE flipr'
14+
15+
* Test with the URI `db:mysql://[email protected]/flipr`.
16+

0 commit comments

Comments
 (0)