Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BeastCloud
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexander Kristian Damhaug
BeastCloud
Commits
a3390122
Commit
a3390122
authored
3 years ago
by
Alexander Kristian Damhaug
Browse files
Options
Downloads
Patches
Plain Diff
awdwadaw
parent
80038797
No related branches found
No related tags found
No related merge requests found
Pipeline
#153188
failed
3 years ago
Stage: build
Stage: test
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
Dockerfile
+15
-0
15 additions, 0 deletions
Dockerfile
init.sh
+18
-0
18 additions, 0 deletions
init.sh
with
33 additions
and
0 deletions
Dockerfile
0 → 100644
+
15
−
0
View file @
a3390122
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"]
This diff is collapsed.
Click to expand it.
init.sh
0 → 100755
+
18
−
0
View file @
a3390122
#!/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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment