From 50f2fc0ee288c1231150efdeae796d32ee75cbaf Mon Sep 17 00:00:00 2001 From: Danijel Korzinek Date: Sat, 14 Nov 2020 18:57:04 +0100 Subject: [PATCH] Updated image to public dockerhub repo. --- docker/Readme.md | 36 ++++++++++++++++++------------------ docker/docker-compose.yml | 2 +- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/docker/Readme.md b/docker/Readme.md index 60e7ca3..3dcf61b 100644 --- a/docker/Readme.md +++ b/docker/Readme.md @@ -1,26 +1,12 @@ # InterText server docker setup -This folder contains a self-maintained Docker setup for the InterText server. To use the setup you need to first build the *intertext* image using the Dockerfile below and then you can start the service using the provided docker-compose configuration. Of course, this all assumes you have the official docker and docker-compose commands installed on your system. - -## Dockerfile - -As there is no image at any public repository at the moment, you need to run this script to build the image locally. The script clones the official Github repository and creates an image using the latest sources. You need only the files from this folder to build the image. - -If you want *hunalign* functionality, you need to acquire the binary (eg. from the GUI version of the program), copy it to this folder (same as the Dockerfile) and uncomment the last line of the Dockerfile. - -Once you are ready, simply run: - -``` -docker build -t intertext . -``` - -This will take a little while. If everything is succesful, you should see your *intertext* image on the list by running `docker images`. +This folder contains a self-maintained Docker setup for the InterText server. To use the setup you can start the service using the provided docker-compose configuration. Of course, this all assumes you have the official docker and docker-compose commands installed on your system. ## docker-compose -This script will run the service and the database instance required for it to function. +This script will run the service (based on PHP and Apache) and the necesary database instance (mysql). -The configuration mounts a couple of scripts to initialize the database the first time the image is created. These will create the default users and tables needed for the page to load for the first time. +The configuration mounts a couple of scripts to initialize the database the first time the image is created. These will create the default users and tables needed for the page to load for the first time. To login simply use "admin" with the password "test". You can later change these accounts and their passwords from the web interface. We also mount the import folder to `/import` if you want to use the CLI tools to import many files. @@ -48,4 +34,18 @@ To enter the terminal to use the CLI tools use the following command: docker exec -it intertext_www_1 bash ``` -Then simply enter the `cli` dir and try out all the commands there. Remeber, you can share the files between the docker containter and the host using the `./import` dir (mounted as `/import` inside the container). +Then simply enter the `cli` directory and try out the commands there. Remeber, you can share the files between the docker containter and the host using the `./import` directory (mounted as `/import` inside the container). + +## Dockerfile + +The image is hosted on a public dockerhub repository under the name *speechclarinpl/intertext*, but if you want you can build the image locally. This may be useful if the public image isn't up-to-date or if you simply want to modify something. The Dockerfile clones the official Github repository and creates an image using the latest sources. You need only the files from this directory to build the image (the sources are always pulled from Github). + +If you want *hunalign* functionality, you need to acquire the binary (eg. from the GUI version of the program), copy it to this folder (same as the Dockerfile) and uncomment the last line of the Dockerfile. + +Once you are ready, simply run: + +``` +docker build -t intertext . +``` + +This will take a little while. If everything is succesful, you should see your *intertext* image on the list by running `docker images`. diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 61ebe4d..fafbe8e 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -17,7 +17,7 @@ services: www: depends_on: - db - image: intertext:latest + image: speechclarinpl/intertext volumes: - ./config.php:/var/www/html/config/config.php - ./import:/import