Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
pcaskey committed Feb 23, 2020
1 parent 1077bd2 commit 0920005
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM centos:centos8

RUN dnf install -y @freeradius freeradius-utils freeradius-mysql
RUN dnf install -y @freeradius freeradius-utils freeradius-mysql net-tools

RUN ln -s /etc/raddb/mods-available/sql /etc/raddb/mods-enabled/ && chgrp -h radiusd /etc/raddb/mods-enabled/sql

Expand Down Expand Up @@ -35,7 +35,6 @@ RUN chmod 755 /wait-for-it.sh
EXPOSE 1812/udp 1813/udp

#healthcheck command so that the container's state is known
HEALTHCHECK --interval=2m --timeout=30s \
CMD netstat -an | grep udp | grep 1812 > /dev/null; if [ 0 != $? ]; then exit 1; fi;
HEALTHCHECK CMD netstat -an | grep udp | grep 1812 > /dev/null; if [ 0 != $? ]; then exit 1; fi;

CMD ["/usr/sbin/radiusd","-fl","stdout"]
1 change: 0 additions & 1 deletion test-compose/db/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ RUN mysql_install_db \
&& echo "mysql -e 'CREATE USER \"${DB_USER}\"@\"%\" IDENTIFIED BY \"${DB_USER_PWD}\";'" >> /tmp/config \
&& echo "mysql -e 'GRANT ALL ON ${DB_NAME}.* TO \"${DB_USER}\"@\"%\";'" >> /tmp/config \
&& echo "mysql -e 'FLUSH PRIVILEGES;'" >> /tmp/config \
&& cat /tmp/config \
&& bash /tmp/config \
&& rm -f /tmp/config

Expand Down

0 comments on commit 0920005

Please sign in to comment.