Skip to content

Commit

Permalink
Some housekeeping, expanding test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
Jim Van Fleet committed Sep 8, 2016
1 parent accd723 commit d7d282d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN yum -y install --setopt=tsflags=nodocs mariadb-server bind-utils pwgen psmis
# Add starters and installers
ADD ./container_files /opt
RUN rm -rf /etc/my.cnf
COPY ./container_files/conf/my.cnf /etc
COPY ./conf/my.cnf /etc
# Add Volumes and Set permissions
RUN mkdir /opt/shared && chmod 777 /opt/shared && chmod 777 /opt/bin/*.sh

Expand Down
File renamed without changes.
5 changes: 5 additions & 0 deletions tests/image.bats
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@ load ../common
@test "MariaDB service available" {
docker run -i $maintainer/$imagename find /usr/lib/systemd/system/mariadb.service
}

@test "MariaDB first run consumes tmpfile" {
result="$(docker run -i $maintainer/$imagename find /tmp/firsttimerunning)"
[ "$result" != '' ]
}

0 comments on commit d7d282d

Please sign in to comment.