|
|
@@ -33,11 +33,6 @@ RUN \
|
|
|
COPY setup-testdb /root/setup-testdb
|
|
|
|
|
|
RUN bash /root/setup-testdb
|
|
|
-# service mysql start && \
|
|
|
-# bash -c 'mysql < <( echo -e "create database busdb;\ncreate user bus;\ngrant all privileges on busdb.* to \'bus\'@\'%\';\nflush privileges;\n" ) ' && \
|
|
|
-# su bus -c " cd /home/bus && \
|
|
|
-# mysql -u bus busdb < popufare/server/create_tables.sql && \
|
|
|
-# mysql -u bus busdb < popufare/server/testing/db/setup-testdb.sql "
|
|
|
|
|
|
## setup test ssh access
|
|
|
##
|
|
|
@@ -53,6 +48,18 @@ RUN su bus -c \
|
|
|
RUN \
|
|
|
apt-get install -y vim
|
|
|
|
|
|
+RUN \
|
|
|
+ mkdir -p /etc/ridelogic && \
|
|
|
+ mkdir -p /etc/ridelogic/logs && \
|
|
|
+ mkdir -p /var/log/ridelogic && \
|
|
|
+ mkdir -p /var/run/ridelogic && \
|
|
|
+ cp -f /home/bus/popufare/server/install/etc/ridelogic/api.conf /etc/ridelogic && \
|
|
|
+ cp -f /home/bus/popufare/server/install/etc/ridelogic/daemon.conf /etc/ridelogic && \
|
|
|
+ cp -f /home/bus/popufare/server/scripts/RideLogic.pm /usr/share/perl5 && \
|
|
|
+ cp -f /home/bus/popufare/server/scripts/RideLogicDBI.pm /usr/share/perl5 && \
|
|
|
+ cp -f /home/bus/popufare/server/scripts/RideLogicACL.pm /usr/share/perl5 && \
|
|
|
+ cp -f /home/bus/popufare/server/scripts/RideLogicAPIQueryWrapper.pm /usr/share/perl5
|
|
|
+
|
|
|
# main startup scripts
|
|
|
#
|
|
|
COPY ./startup_and_persist.sh /root/startup_and_persist.sh
|
|
|
@@ -62,5 +69,4 @@ RUN \
|
|
|
|
|
|
EXPOSE 80 22 443 6055 2857 7277 2455 3556 8377
|
|
|
|
|
|
-
|
|
|
CMD ["/root/startup_and_persist.sh"]
|