Skip to content
Snippets Groups Projects
Commit a3390122 authored by Alexander Kristian Damhaug's avatar Alexander Kristian Damhaug
Browse files

awdwadaw

parent 80038797
No related branches found
No related tags found
No related merge requests found
Pipeline #153188 failed
FROM ubuntu:20.04
MAINTAINER BeastCloud
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y apache2 libapache2-mod-php php-mysql git php-memcache curl php-cli php-mbstring unzip php-pgsql glusterfs-client wget2 prometheus-apache-exporter supervisor
RUN git clone https://gitlab.stud.idi.ntnu.no/alexankd/beastcloud.git
RUN rm /var/www/html/index.html
ADD beastCloud/code/* /var/www/html/
ADD init.sh /
ADD config.php /var/www/html
EXPOSE 80
ENTRYPOINT ["/init.sh"]
init.sh 0 → 100755
#!/bin/bash -x
# env | grep _ >> /etc/apache2/envvars
# echo "export BF_DB=dookfacedb" >> /etc/apache2/envvars
# if [ -n "$GLUSTER_IMAGE_VOL" ]; then
# echo "GlusterFS enabled for images. Source: $GLUSTER_IMAGE_VOL";
# if mount -t glusterfs $GLUSTER_IMAGE_VOL /var/www/html/images; then
# echo "Volume mounted successfully!";
# else
# tail /var/log/syslog
# echo "failed to mount volume!"
# exit 1;
# fi
# fi
chmod 777 /var/www/html/images
/usr/sbin/apache2ctl -D FOREGROUND -k start
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment