-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #88 from telefonicaid/hardening/CLAUDIA-6267_insta…
…llation Hardening/claudia 6267 installation
- Loading branch information
Showing
8 changed files
with
140 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
FROM centos:7 | ||
ENV CLOTO_SETTINGS_FILE /etc/fiware.d/fiware-cloto.cfg | ||
RUN yum groupinstall -y 'development tools' | ||
RUN yum install -y python-devel MySQL-python mysql-devel nmap | ||
RUN curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" | ||
RUN python get-pip.py | ||
RUN pip install supervisor | ||
RUN git clone https://github.com/telefonicaid/fiware-cloto /opt/fiware-cloto | ||
WORKDIR /opt/fiware-cloto | ||
RUN mkdir /etc/fiware.d/ | ||
RUN mkdir /var/log/fiware-cloto | ||
RUN pip install -r requirements.txt | ||
COPY fiware-cloto.cfg /etc/fiware.d/fiware-cloto.cfg | ||
RUN cp utils/cloto_start /etc/fiware.d/ | ||
RUN chmod a+x /etc/fiware.d/cloto_start | ||
RUN mkdir -p /etc/supervisor/conf.d | ||
RUN cp utils/fiware-cloto.conf /etc/supervisor/conf.d | ||
COPY start_centos7.sh start_centos7.sh | ||
CMD ./start_centos7.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
sed -i -e "s/{ADM_TENANT_NAME}/${ADM_TENANT_NAME}/" /etc/fiware.d/fiware-cloto.cfg | ||
sed -i -e "s/{ADM_PASSWORD}/${ADM_PASSWORD}/" /etc/fiware.d/fiware-cloto.cfg | ||
sed -i -e "s/{KEYSTONE_IP}/${KEYSTONE_IP}/" /etc/fiware.d/fiware-cloto.cfg | ||
sed -i -e "s/{ADM_TENANT_ID}/${ADM_TENANT_ID}/" /etc/fiware.d/fiware-cloto.cfg | ||
sed -i -e "s/{ADM_USERNAME}/${ADM_USERNAME}/" /etc/fiware.d/fiware-cloto.cfg | ||
sed -i -e "s/{OS_USER_DOMAIN_NAME}/${OS_USER_DOMAIN_NAME}/" /etc/fiware.d/fiware-cloto.cfg | ||
|
||
while ! nmap -Pn -p3306 mysql; do sleep 8; done | ||
python setup.py install | ||
cd / | ||
gunicorn fiware_cloto.cloto.wsgi -b 0.0.0.0 |