GithubHelp home page GithubHelp logo

cytomine / dockerfiles Goto Github PK

View Code? Open in Web Editor NEW
7.0 7.0 8.0 13.36 MB

Dockerfiles used to compile Cytomine docker images

License: Apache License 2.0

Shell 1.13% Python 0.05% Groovy 0.38% PLpgSQL 97.20% Dockerfile 0.96% HTML 0.28%

dockerfiles's People

Contributors

geektortoise avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dockerfiles's Issues

Postgrelsql do not start : Missing /var/lib/postgrel file

root@postgresql-5759959858-qv8kf:~# /etc/init.d/postgresql start

  • Starting PostgreSQL 10 database server * Error: /var/lib/postgresql/10/main is not accessible or does not exist
    [fail]
  • Starting PostgreSQL 12 database server * Error: /var/lib/postgresql/12/main is not accessible or does not exist

Using this docker image : cytomine/postgis:v2.0.1

suggestion: use init script instead of prepopulated data for postgres

While convenient in docker, kubernetes can't mount data volumes and preserve the data. This can be handled with a workaround, but both cases could be solved in the same way by instead dumping the sql schema as postgres init data!
For official postgres images you do this by placing sql files in /docker-entrypoint-initdb.d/, something similar might be possible with your setup.

Dockerfiles run tail

Many docker containers starts their process, and then run tail -f to print a log-file. This doesn't allow the container to crash properly if the main process encounters an error (as tail will still run). If a log-file is wanted, starting the process as <cmd> | tee <logfile> will allow for both a log file and a log written to stdout.

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.