Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
EventsAPI
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
jards
EventsAPI
Commits
84d4ebb0
Commit
84d4ebb0
authored
Oct 29, 2017
by
CarstenKarbach
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://github.com/CarstenKarbach/EventsAPI.git
parents
d9accf80
5b3a6348
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
Dockerfile
+39
-1
39 additions, 1 deletion
Dockerfile
LICENSE.txt
+1
-0
1 addition, 0 deletions
LICENSE.txt
utils/Commands.txt
+3
-1
3 additions, 1 deletion
utils/Commands.txt
with
43 additions
and
2 deletions
Dockerfile
+
39
−
1
View file @
84d4ebb0
FROM
nimmis/apache-php7
FROM
ubuntu:16.04
MAINTAINER
Carsten Karbach (c.karbach@fz-juelich.de)
# install dependencies, certificates, apache
RUN
apt-get update
\
&&
apt-get
install
-y
--no-install-recommends
ca-certificates
\
&&
apt-get
-y
dist-upgrade
\
&&
apt-get autoremove
-y
\
&&
apt-get clean all
\
&&
apt-get
install
-y
apache2
\
&&
rm
-r
/var/lib/apt/lists/
*
# Set environment variables.
ENV
HOME /root
# Define working directory.
WORKDIR
/root
# disable interactive functions
ENV
DEBIAN_FRONTEND noninteractive
# Install php
RUN
apt-get update
&&
\
apt-get
install
-y
curl zip unzip php libapache2-mod-php
\
php-fpm php-cli php-mysqlnd php-pgsql php-sqlite3 php-redis
\
php-apcu php-intl php-imagick php-mcrypt php-json php-gd php-curl
&&
\
phpenmod mcrypt
&&
\
rm
-rf
/var/lib/apt/lists/
*
# Install composer
RUN
cd
/tmp
&&
curl
-sS
https://getcomposer.org/installer | php
&&
mv
composer.phar /usr/local/bin/composer
# Setup for EventsAPI application
RUN
rm
/var/www/html/index.html
RUN
rm
/var/www/html/index.html
# Add EventsApi source
# Add EventsApi source
ADD
. /var/www/html/EventsAPI
ADD
. /var/www/html/EventsAPI
...
@@ -11,3 +41,11 @@ RUN cp /var/www/html/EventsAPI/configs/000-default.conf /etc/apache2/sites-avail
...
@@ -11,3 +41,11 @@ RUN cp /var/www/html/EventsAPI/configs/000-default.conf /etc/apache2/sites-avail
RUN
a2ensite default-ssl.conf
RUN
a2ensite default-ssl.conf
# Set access rights for www-data, run composer
# Set access rights for www-data, run composer
RUN
php /var/www/html/EventsAPI/utils/install.php
RUN
php /var/www/html/EventsAPI/utils/install.php
# DO not allow access to root doc
RUN
echo
"deny from all"
>
/var/www/html/.htaccess
# Default command
CMD
["apachectl", "-D", "FOREGROUND"]
This diff is collapsed.
Click to expand it.
LICENSE.txt
+
1
−
0
View file @
84d4ebb0
...
@@ -15,3 +15,4 @@ EventsAPI -- Application for receiving events
...
@@ -15,3 +15,4 @@ EventsAPI -- Application for receiving events
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
This diff is collapsed.
Click to expand it.
utils/Commands.txt
+
3
−
1
View file @
84d4ebb0
...
@@ -3,3 +3,5 @@ docker run -d -p 8080:80 karbach/restapi:v1
...
@@ -3,3 +3,5 @@ docker run -d -p 8080:80 karbach/restapi:v1
# Including ssl
# Including ssl
docker run -d -p 443:443 -p 80:80 karbach/restapi:v1
docker run -d -p 443:443 -p 80:80 karbach/restapi:v1
docker exec -ti <container-id> /bin/bash
docker exec -ti <container-id> /bin/bash
# Add volume for data backup
docker run -d -p 8081:80 -p 4433:443 -v /path/to/folder/on/host:/var/www/html/EventsAPI/data karbach/restapi:v1
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