Git Product home page Git Product logo

docker-neologism's Introduction

docker-neologism

This docker will deploy a full installation of neologism, a lightweight web-based vocabulary editor and publishing tool built with Drupal.

Launching the docker

Use this command to launch the docker, inserting the appropriate parameters server_port (needed), web_logs_dir (optional) and database_data_dir (needed if you want to keep the database when the container is shut down). If you are fine with the default settings (good for local developement) you can directly use this, which will download the latest image from the docker registry, otherwise read the next section.

    docker run -d                                           \
        -p 0.0.0.0:8080:80                                  \
        -v <web_logs_dir>:/var/log/apache2                  \
        -v <database_data_dir>:/var/lib/mysql               \
        spaziodati/neologism

Personalizing the docker settings

In order to customize the docker settings you need to have a copy of the repository on your machine; you can obtain it via git (git clone https://github.com/SpazioDati/docker-neologism.git) or by downloading this zip archive.

The parameters you can customize are in the Dockerfile and are passed as environment variables to the services which need them. Here's the section in the Dockerfile:

    # to change these you have to rebuild the image
    ENV DB_USER ontology
    ENV DB_NAME ontology
    ENV DB_PASS password
    ENV MYSQL_USER admin
    ENV MYSQL_PASS password

    # the following can be changed when running the docker via -e, --env or --env-file
    ENV SERVER_NAME localhost
    ENV OUR_SERVER_PROTOCOL http
    ENV OUR_SERVER_PORT 8080

You might want to change SERVER_NAME, OUR_SERVER_PROTOCOL and OUR_SERVER_PORT to match your domain setup (these settings are used by apache to build the correct domain name). The other parameters are the database name, username and password for the web site and for the mysql database administrator. The website administrator's username is admin and its password is password.

When you have finished configuring the parameters, build the docker image with the following command (from the directory which contains the repository):

    docker build --tag='spaziodati/neologism' .

docker-neologism's People

Contributors

e-dorigatti avatar gigaroby avatar vad avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.