Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions infra/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM ppc64le/ubuntu:16.04

#installing packages and downloading files
RUN apt update && \
apt install -y ipmitool && \
apt install -y python2.7 && \
apt install -y apache2 && \
apt install -y python-pip && \
apt install -y git && \
cd /var/www/ && \
git clone https://github.com/Unicamp-OpenPower/powergraph.git && \
cd powergraph/ && \
pip install -r requirements.txt && \
mv backend/* ../html/ && \
mv frontend/* ../html/ && \
a2enmod headers && a2enmod expires && \
service apache2 restart && \
cp -f infra/apache.conf /etc/apache2/sites-available/000-default.conf