From 46f4a0191776736c1af8350ab4884cedadfcfdca Mon Sep 17 00:00:00 2001 From: root Date: Tue, 15 Mar 2022 10:02:06 +0100 Subject: [PATCH] a --- DockerFile | 23 +++++++++++++++++++++++ build.sh | 2 ++ docker-compose.yml | 0 run.sh | 2 ++ 4 files changed, 27 insertions(+) create mode 100644 DockerFile create mode 100755 build.sh create mode 100755 docker-compose.yml create mode 100755 run.sh diff --git a/DockerFile b/DockerFile new file mode 100644 index 0000000..7bdd9e2 --- /dev/null +++ b/DockerFile @@ -0,0 +1,23 @@ +from ubuntu:focal +MAINTAINER patrick@neurohr-it.de +LABEL Description="Koha Testing Patrick" Vendor="Patrick" Version="0.1" + +#install useful tools +ARG DEBIAN_FRONTEND=noninteractive +ENV TZ=Europe/Berlin + +RUN apt-get update +RUN apt-get install -y tzdata +RUN apt-get -y install wget gnupg git + +#add koha repository +#RUN echo deb http://debian.koha-community.org/koha stable main | tee /etc/apt/sources.list.d/koha.list +#RUN wget -O- http://debian.koha-community.org/koha/gpg.asc | apt-key add - +#RUN apt-get update + +# Install Koha + Apache +#RUN apt-get -y install koha-common apache2 mysql-server phpmyadmin +RUN apt-get -y install mysql-server + +#Ports rausreichen +EXPOSE 80 3306 \ No newline at end of file diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..16e92d8 --- /dev/null +++ b/build.sh @@ -0,0 +1,2 @@ +#!/bin/bash +docker build -t koha-patrick --file ./DockerFile . --no-cache \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100755 index 0000000..e69de29 diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..65f11e9 --- /dev/null +++ b/run.sh @@ -0,0 +1,2 @@ +#!/bin/bash +docker run -d -it -p 10800:80 -p 10330:3306 --name koha-patrick koha-patrick:latest