Skip to content

Commit

Permalink
Merge pull request #71 from poulpreben/master
Browse files Browse the repository at this point in the history
Add Dockerfile and instructions
  • Loading branch information
nielsengelen authored Oct 21, 2020
2 parents ba06bb6 + e68a974 commit c4676f2
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM php:7.4-apache

ENV DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Copenhagen

RUN apt-get update && apt-get install -yq zip unzip zlib1g-dev libzip-dev && rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-install zip
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

ADD . /var/www/html/

WORKDIR /var/www/html

RUN composer install

RUN a2enmod rewrite

10 changes: 10 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,16 @@ SharePoint view:

This serves as an example on how to work with the RESTful API calls and should be tested before using it in production. Feel free to modify and re-use it however many calls are done with default values which can be modified if needed.

## 🐋 Run with Docker

Adjust timezone in `Dockerfile` as required.

```bash
docker build -t vbo365-rest:latest .
docker run --rm --name vbo365-rest -p 8080:80 -d vbo365-rest:latest
```


## ❗ Known issues/notes

**Note:** There is currently no SSL verification due to self signed certificate testing, please change settings 'verify' to true or remove the specific line accordingly in `veeam.class.php`.
Expand Down

0 comments on commit c4676f2

Please sign in to comment.