Skip to content

Commit

Permalink
bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pcaskey committed Feb 22, 2020
1 parent 9628f1b commit 21dc4eb
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ RUN chgrp -h radiusd /etc/raddb/mods-enabled/sql
#install Daloradius


COPY container_files/docker-entrypoint.sh /
RUN chmod 755 /docker-entrypoint.sh
#COPY container_files/docker-entrypoint.sh /
#RUN chmod 755 /docker-entrypoint.sh

EXPOSE 1812/udp 1813/udp
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["radiusd"]
#ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["/usr/sbin/radiusd","-f"]
2 changes: 1 addition & 1 deletion test-compose/db/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ RUN mysql_install_db \
&& echo "mysql -e 'DROP DATABASE IF EXISTS test;'" >> /tmp/config \
&& echo "mysql -e 'DELETE FROM mysql.db WHERE Db=\"test\" OR Db=\"test\\_%\";'" >> /tmp/config \
&& echo "mysql -e 'CREATE DATABASE ${DB_NAME};'" >> /tmp/config \
&& echo "mysql -u root --password=${DB_PWD} ${DB_NAME} < /rad-schema.sql" >> /tmp/config \
&& echo "mysql -e 'GRANT ALL ON ${DB_NAME}.* TO ${DB_USER}@localhost IDENTIFIED BY \"${DB_USER_PWD}\";'" >> /tmp/config \
&& echo "mysql -e 'FLUSH PRIVILEGES;'" >> /tmp/config \
&& echo "mysql -u root --password=${DB_PWD} radius < /rad-schema.sql" >> /tmp/config \
&& bash /tmp/config \
&& rm -f /tmp/config

Expand Down
9 changes: 5 additions & 4 deletions test-compose/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ services:
- front
- back
ports:
- "1812/udp:1812/udp"
- "1813/udp:1813/udp"
- "1812:1812/udp"
- "1813:1813/udp"
- "443:443"

db:
Expand All @@ -36,13 +36,14 @@ services:
volumes:
- radius_db:/var/lib/mysql

networks:
front:
driver: bridge
back:
back:
driver: bridge


volumes:
radius_db:
radius_db:
driver: local

2 changes: 1 addition & 1 deletion test-compose/radius/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM tier/eduroam-radius:3.0_20200221
FROM tier/eduroam-freeradius:3.0-20200221


COPY container_files/rad-sql.cfg /etc/raddb/mods-available/sql
Expand Down
2 changes: 1 addition & 1 deletion test-compose/radius/container_files/rad-sql.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ sql {

# Connection info:
#
server = "localhost"
server = "db"
port = 3306
login = "radius"
password = "MySecretPassword"
Expand Down

0 comments on commit 21dc4eb

Please sign in to comment.