Skip to content

Commit

Permalink
Merge pull request #847 from GRIDAPPSD/releases/2019.02.0
Browse files Browse the repository at this point in the history
Releases/2019.02.0
  • Loading branch information
craig8 authored Feb 4, 2019
2 parents 12f7f90 + fc8e233 commit eb9c3a0
Show file tree
Hide file tree
Showing 97 changed files with 56,404 additions and 4,134 deletions.
1 change: 0 additions & 1 deletion .project
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@
</buildCommand>
</buildSpec>
<natures>
<nature>org.python.pydev.pythonNature</nature>
</natures>
</projectDescription>
25 changes: 17 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
ARG GRIDAPPSD_BASE_VERSION=:v1.0
ARG GRIDAPPSD_BASE_VERSION=:master
FROM gridappsd/gridappsd_base${GRIDAPPSD_BASE_VERSION}

ARG TIMESTAMP

# Get the gridappsd-python from the proper repository
RUN cd ${TEMP_DIR} \
&& git clone https://github.com/GRIDAPPSD/gridappsd-python -b master \
&& git clone https://github.com/GRIDAPPSD/gridappsd-python -b develop \
&& cd gridappsd-python \
&& python setup.py sdist \
&& pip3 install dist/gridappsd-1.0.tar.gz \
&& pip install dist/gridappsd-1.0.tar.gz \
&& pip3 install . \
&& pip install . \
&& rm -rf /root/.cache/pip/wheels

# Copy initial applications and services into the container.
Expand All @@ -18,13 +17,15 @@ RUN cd ${TEMP_DIR} \
# 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

# Add the applications directory which is necessary for gridappsd to operate.
RUN if [ ! -d /gridappsd/applications ] ; then mkdir /gridappsd/applications ; fi

COPY ./run-gridappsd.sh /gridappsd/run-gridappsd.sh
RUN chmod +x /gridappsd/run-gridappsd.sh
RUN ln -s run-gridappsd.sh run-docker.sh
Expand All @@ -35,8 +36,6 @@ COPY ./opendss/liblinenoise.so /usr/local/lib
RUN chmod +x /usr/local/bin/opendsscmd && \
ldconfig

# Add mysql configuration
RUN echo "[client]\nuser=gridappsd\npassword=gridappsd1234\ndatabase=gridappsd\nhost=mysql" > /root/.my.cnf

# 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
Expand All @@ -55,5 +54,15 @@ WORKDIR /gridappsd

RUN echo $TIMESTAMP > /gridappsd/dockerbuildversion.txt

# Add gridappsd user , sudoers, mysql configuration, log directory
RUN useradd -m gridappsd \
&& if [ -d /etc/sudoers.d ] ; then echo "gridappsd ALL=(ALL:ALL) NOPASSWD: ALL" > /etc/sudoers.d/gridappsd ; fi \
&& echo "[client]\nuser=gridappsd\npassword=gridappsd1234\ndatabase=gridappsd\nhost=mysql" > /home/gridappsd/.my.cnf \
&& chown gridappsd:gridappsd /home/gridappsd/.my.cnf \
&& mkdir /gridappsd/log \
&& chown gridappsd:gridappsd /gridappsd/log

USER gridappsd

ENTRYPOINT ["/gridappsd/entrypoint.sh"]
CMD ["gridappsd"]
File renamed without changes.
17 changes: 0 additions & 17 deletions applications/.project

This file was deleted.

13 changes: 0 additions & 13 deletions applications/sample_app.config

This file was deleted.

145 changes: 0 additions & 145 deletions applications/sample_app/app/sample_app.py

This file was deleted.

13 changes: 0 additions & 13 deletions applications/vvo.config

This file was deleted.

Empty file removed applications/vvo/app/__init__.py
Empty file.
Loading

0 comments on commit eb9c3a0

Please sign in to comment.