forked from GRIDAPPSD/GOSS-GridAPPS-D
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
47 lines (38 loc) · 1.73 KB
/
Copy pathDockerfile
File metadata and controls
47 lines (38 loc) · 1.73 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
ARG GRIDAPPSD_VERSION_LABEL=:rc2
FROM gridappsd/gridappsd_base${GRIDAPPSD_VERSION_LABEL}
# Add specific pip requirements files for installation onto this image in
# the following location.
#
# NOTE: as an example the fncsgossbridge requirements file can be used as a
# reference point.
RUN apt-get update && \
apt-get install -y python-pip && \
rm -rf /var/cache/apt/archives/* && \
rm -rf /root/.cache/pip/wheels
# Copy initial applications and services into the container.
#
# NOTE: developers should mount a volume over the top of these or
# mount other items specifically in the /gridappsd/appplication
# and/or /gridappsd/services location in order for gridappsd
# to be able to "see" and ultimately start them.
COPY ./applications /gridappsd/applications
COPY ./services /gridappsd/services
COPY ./gov.pnnl.goss.gridappsd/conf /gridappsd/conf
COPY ./entrypoint.sh /gridappsd/entrypoint.sh
COPY ./requirements.txt /gridappsd/requirements.txt
RUN chmod +x /gridappsd/entrypoint.sh
COPY ./run-docker.sh /gridappsd/run-docker.sh
RUN chmod +x /gridappsd/run-docker.sh
# This is the location that is built using the ./gradlew export command from
# the command line. When building this image we must make sure to have run that
# before executing this script.
COPY ./gov.pnnl.goss.gridappsd/generated/distributions/executable/run.bnd.jar /gridappsd/lib/run.bnd.jar
RUN pip install -r /gridappsd/requirements.txt && \
pip install -r /gridappsd/services/fncsgossbridge/requirements.txt && \
rm -rf /root/.cache/pip/wheels
# Should match what is in conf/pnnl.goss.core.server.cfg and
# conf/pnnl.goss.core.client.cfg
EXPOSE 61616 61613 61614 8000-9000
WORKDIR /gridappsd
ENTRYPOINT ["/gridappsd/entrypoint.sh"]
CMD ["gridappsd"]