Skip to content
Snippets Groups Projects
Commit acdf4d9e authored by Raphael Storm Larsen's avatar Raphael Storm Larsen
Browse files

masse greier

parent a85bb23d
No related branches found
No related tags found
No related merge requests found
File moved
File moved
File moved
FROM ubuntu:22.04
MAINTAINER raphaesl@stud.ntnu.no
MAINTAINER saraslu@stud.ntnu.no
ENV DEBIAN_FRONTEND=noninteractive
# Install Apache
RUN apt-get update && apt-get install -y apache2 libapache2-mod-php php-pgsql net-tools
# Download needed repositories
RUN mkdir temp
RUN git clone https://github.com/hioa-cs/bookface.git
RUN git clone https://gitlab.stud.idi.ntnu.no/raphaesl/dcsg2003
# Configure files for apache
RUN rm /var/www/html/index.html
RUN mkdir /var/www/html/images
# Move bookface repo to apache
ADD temp/bookface/code/* /var/www/html/
ADD temp/bookface/init.sh /
# Move group repo to apache
ADD temp/dcsg2003/webserver/config.php /var/www/html
# Delete trash
RUN rm -r temp
# Misc
EXPOSE 80
ENTRYPOINT ["/usr/sbin/apache2ctl","-D","FOREGROUND","-k","start"]
<?php
$dbhost = "192.168.130.246";
$dbport = "26257";
$db = "bf";
$dbuser = "AETAadmin";
$dbpassw = '';
$webhost = '10.212.169.121';
$weburl = 'http://' . $webhost ;
$frontpage_limit = "500";
?>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment