Giter Club home page Giter Club logo

Comments (5)

tianon avatar tianon commented on August 16, 2024

It was last pushed three days ago, from what I can see: (on https://hub.docker.com/r/tianon/ehour/)

image

When I run it, I run with a custom properties file (because otherwise, the image is hard-coded to use mysql as the DB host name, user as the user, and pass as the password) and a dedicated network for eHour and MySQL, something like this: (untested, but this is the gist of how I run it)

$ docker network create ehour
$ docker run -dit --name ehour-mysql --memory 512m --network ehour --network-alias mysql --stop-timeout 60 -v ehour-mysql:/var/lib/mysql -e MYSQL_RANDOM_ROOT_PASSWORD=1 -e MYSQL_USER=ehour -e MYSQL_PASSWORD=some-super-secure-random-string -e MYSQL_DATABASE=ehour mysql:5.7
$ cat ehour.properties
ehour.standalone.port=8000
ehour.database=mysql
ehour.database.url=mysql://ehour:some-super-secure-random-string@mysql:3306/ehour?zeroDateTimeBehavior=convertToNull&useOldAliasMetadataBehavior=true
ehour.database.checkouttimeout=2000
ehour.configurationType=DEPLOYMENT
ehour.translations=%ehour.home%/resources/i18n
ehour.database.cp=hikari
$ docker run -dit --name ehour --network ehour -v "$PWD/ehour.properties":/usr/local/ehour/home/conf/ehour.properties:ro tianon/ehour

I then use NGINX in front to deliver traffic from the host's port 80 to the eHour container's port 8000 for a particular hostname.

from dockerfiles.

tianon avatar tianon commented on August 16, 2024

Oh, right, and you'll also need to seed your database the first time you run it. I forgot about that bit -- the necessary SQL files are embedded into the image itself.

If you're getting a 503 when you access the server, you can use docker logs on the container to discover what the error is.

from dockerfiles.

tianon avatar tianon commented on August 16, 2024

Ok, I've pushed a short adapted version of this both in Git and to Docker Hub. 👍

from dockerfiles.

dolphinkite avatar dolphinkite commented on August 16, 2024

Thanks for the extra information.

The push to DockerHub seems indeed to occur on a daily basis, but the last BUILD (under the tab "Build Details" happenned 5 months ago. I am not sure what is the mechanism for the automated build to occur, but I suspect something it broken with that regards.

Thanks

from dockerfiles.

tianon avatar tianon commented on August 16, 2024

from dockerfiles.

Related Issues (20)

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.