blob: 6346a9408c47f573bface94be3b0ceb5b0c23beb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
FROM gradle:alpine
MAINTAINER Fabian Mastenbroek <f.s.mastenbroek@student.tudelft.nl>
# Copy OpenDC simulator
COPY ./ /simulator
# Fix permissions
USER root
RUN chown -R gradle:gradle /simulator
USER gradle
# Set the working directory to the JPA integration
WORKDIR /simulator/opendc-integration-jpa
# Run the application
CMD ["/bin/sh", "-c", "gradle run -Ppersistence.url=$(echo \"jdbc:mysql://mariadb:3306/\"$MYSQL_DATABASE) -Ppersistence.user=$MYSQL_USER -Ppersistence.password=$MYSQL_PASSWORD"]
|