Git Product home page Git Product logo

Comments (5)

tuanavu avatar tuanavu commented on May 30, 2024

Hi @yunus89,

After making the changes, you have to rebuild the image:
docker-compose up -d --build

from airflow-tutorial.

sud11 avatar sud11 commented on May 30, 2024

Hi @tuanavu, I have the same issue when I have these files locally: Dockerfile, entrypoint.sh and airflow.cfg (all from here https://github.com/puckel/docker-airflow#1.10.2) and try to get the environment up using docker-compose up. I want to customize the Dockerfile to add some additional packages. Please help me out! :) Thanks

from airflow-tutorial.

tuanavu avatar tuanavu commented on May 30, 2024

Hi @sud11,

I see. In this case, you are customizing your local Dockerfile, and all the config files. In this case, you have to change the docker-compose.yml file to build the Dockerfile locally, not the one from puckel github repo.

You may want to change your docker-compose.yml like this:

services:
    webserver:
        image: sud11/docker-airflow:1.10.2
        build: .        

This will ensure you build the local Dockerfile, then just build it using the command:

docker-compose up -d --build

from airflow-tutorial.

sud11 avatar sud11 commented on May 30, 2024

This is my docker-compose.yml and I have the Dockerfile in the same dir.

services:
    postgres:
        image: postgres:9.6
        container_name: airflow_db
        environment:
            - POSTGRES_USER=airflow
            - POSTGRES_PASSWORD=airflow
            - POSTGRES_DB=airflow
        ports:
            - "5432:5432"
    webserver:
        build:
            context: .
            dockerfile: Dockerfile
        container_name: airflow_webserver
        depends_on:
            - postgres
        volumes:
            - ./dags:/usr/local/airflow/dags
            - ./plugins:/usr/local/airflow/plugins
        ports:
            - "8080:8080"
        command: webserver

I am not seeing the libpq.so.5 import error now. 😃
Thanks @tuanavu 👍

from airflow-tutorial.

tuanavu avatar tuanavu commented on May 30, 2024

@sud11,

Great, glad you figure it out.

from airflow-tutorial.

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.