From 8d3c0c42f442564a9dbe4161f4f1ce929d2e270b Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Mon, 13 Feb 2023 10:01:30 +0100 Subject: [PATCH 1/1] wip #5725 @0.5 --- .gitignore | 27 +++++++++++++++++++++++++++ Dockerfile | 19 +++++++++++++++++++ README.md | 5 +++++ app/composer.json | 28 ++++++++++++++++++++++++++++ app/info.php | 2 ++ app/ping.php | 2 ++ docker-compose.yml | 23 +++++++++++++++++++++++ overrides.conf | 37 +++++++++++++++++++++++++++++++++++++ ssh/id_rsa | 38 ++++++++++++++++++++++++++++++++++++++ ssh/id_rsa.pub | 1 + ssh/known_hosts | 4 ++++ startup | 2 ++ update | 15 +++++++++++++++ updateall.bat | 1 + updatecode | 11 +++++++++++ updatecode.bat | 1 + 16 files changed, 216 insertions(+) create mode 100644 .gitignore create mode 100644 Dockerfile create mode 100644 README.md create mode 100644 app/composer.json create mode 100644 app/info.php create mode 100644 app/ping.php create mode 100644 docker-compose.yml create mode 100644 overrides.conf create mode 100644 ssh/id_rsa create mode 100644 ssh/id_rsa.pub create mode 100644 ssh/known_hosts create mode 100644 startup create mode 100644 update create mode 100644 updateall.bat create mode 100644 updatecode create mode 100644 updatecode.bat diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ad2b13e --- /dev/null +++ b/.gitignore @@ -0,0 +1,27 @@ +### Laravel template +/app/vendor/ +node_modules/ +npm-debug.log +yarn-error.log + +# Laravel 4 specific +bootstrap/compiled.php +app/storage/ + +# Laravel 5 & Lumen specific +public/storage +public/hot + +# Laravel 5 & Lumen specific with changed public path +public_html/storage +public_html/hot + +storage/*.key +.env +Homestead.yaml +Homestead.json +/.vagrant +.phpunit.result.cache + +composer.lock +.idea \ No newline at end of file diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d317418 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,19 @@ +FROM ubuntu:jammy +WORKDIR "/application" + +ENV TERM=linux +ENV DEBIAN_FRONTEND=noninteractive + +RUN apt-get update && apt-get install -y --no-install-recommends gnupg \ + && echo "deb http://ppa.launchpad.net/ondrej/php/ubuntu jammy main" > /etc/apt/sources.list.d/ondrej-php.list \ + && apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4F4EA0AAE5267A6C \ + && apt-get update \ + && apt-get -y --no-install-recommends install x11-common pdftk poppler-utils ghostscript netpbm sshfs mupdf-tools php8.1-cli php8.1-fpm php8.1-curl php8.1-exif php8.1-xml php8.1-gd php8.1-ssh php8.1-zip libjpeg-turbo-progs zip unzip \ + less nano wget bash lynx + +COPY --from=composer:2 /usr/bin/composer /usr/bin/composer +COPY overrides.conf /etc/php/8.1/fpm/pool.d/z-overrides.conf +COPY --chmod=755 startup /usr/bin/startup +CMD exec /usr/bin/startup +STOPSIGNAL SIGQUIT +EXPOSE 9000 diff --git a/README.md b/README.md new file mode 100644 index 0000000..c60304c --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# Installation + +On the farming server : + +`apt install -y git docker-composer-plugin;mkdir -p /docker/fluidbook-distantstorage;cd /docker/fluidbook-distantstorage;git clone git://git.cubedesigners.com/fluidbook_distantstorage.git .;./update` \ No newline at end of file diff --git a/app/composer.json b/app/composer.json new file mode 100644 index 0000000..938334a --- /dev/null +++ b/app/composer.json @@ -0,0 +1,28 @@ +{ + "name": "fluidbook/distantstorage", + "description": "description", + "minimum-stability": "dev", + "license": "proprietary", + "repositories": [ + { + "type": "composer", + "url": "https://composer.cubedesigners.com/" + } + ], + "authors": [ + { + "name": "Vincent VANWAELSCAPPEL", + "email": "vincent@cubedesigners.com" + } + ], + "autoload": { + "psr-4": { + "Fluidbook\\DistantStorage\\": "src" + } + }, + "prefer-stable": true, + "require": { + "php": ">=8.0", + "fluidbook/tools": "dev-master" + } +} \ No newline at end of file diff --git a/app/info.php b/app/info.php new file mode 100644 index 0000000..bfd863b --- /dev/null +++ b/app/info.php @@ -0,0 +1,2 @@ +