Code Monkey home page Code Monkey logo

librephotos-docker's Introduction

For common users:

Set the needed variables in .env (take librephotos.env as model)

Clone the repo: git clone [email protected]:LibrePhotos/librephotos-docker.git

docker-compose up -d This will get the pre-built images and start all the needed processes

For developers:

Set the needed variables in .evn (take librephotos.env as model) Also set the codedir variable that tells docker where your source folder are Pull frontend code with git clone https://github.com/LibrePhotos/librephotos-frontend.git ${codedir}/frontend/

Pull backend code into git clone https://github.com/LibrePhotos/librephotos.git ${codedir}/backend/

Pull this repo and run docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d

This will build images from scratch (can take a long time the first time) Now you can develop and benefit from code auto reload from both backend and frontend N.B. If you already built this image once, when you do force rebuild you have to run

docker-compose -f docker-compose.yml -f docker-compose.dev.yml build --no-cache frontend

docker-compose -f docker-compose.yml -f docker-compose.dev.yml build --no-cache backend

based on which one you changed if these changes need rebuild as for added dependencies/libraries etc.

and then the usual docker-compose -f docker-compose.yml -f docker-compose.dev.yml up -d

If you use vscode you can also benefit auto completion and other goodies. For this just type code . in your dockerfile folder. Vscode will open and ask you if you want to reopen it in the container. If you do it he will add his server to the docker layers (first time you do it can take a couple of minutes) and you will have the same python interpreter librephotos is using internally hence the same installed libraries in auto completion and the same development environment will be shared by all devs (isort, flake8 and pylint for example)

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.