<p>upgrading the image version to 10.0.1 will resolve the entry point issue.</p>
<pre><code>image: inputoutput/cardano-db-sync:10.0.1
</code></pre>

CC BY-SA 4.0
2021-07-14T16:51:00.590Z
Really? The comments on the GitHub issue: https://github.com/input-output-hk/cardano-db-sync/issues/655 say the issue is still unresolved.
Nike Dattani
CC BY-SA 4.0
2021-08-02T04:49:54.107Z
@NikeDattani It was resolved by 10.0.1 release. check the issue again.
jamescheuk
CC BY-SA 4.0
2021-08-02T05:05:44.773Z
At the time of your answer, the last comment was "This is still an issue as replicated by @meiblorn." It was hours later than the issue was closed (without really answering that last comment).
Nike Dattani
CC BY-SA 4.0
2021-08-03T05:52:42.893Z
@NikeDattani 
I saw this pull request.
https://github.com/input-output-hk/cardano-db-sync/pull/698
jamescheuk
CC BY-SA 4.0
2021-07-14T10:24:44.153Z
2021-07-14T10:29:49.670Z
2021-07-14T10:29:49.670Z
jamescheuk
<p>I have a <code>docker-compose.yml</code> file which I use as a <code>devcontainer</code> for VSCode. Part of my application requires access to <code>cardano-db-sync</code> so that I can query the database for transaction information. I am unsure how to get the <code>dev</code> service to communicate with the <code>db-sync</code> service. I have copied the entire <code>docker-compose.yml</code> and <code>config/</code> directory from <code>cardano-db-sync</code> into my project. The error I'm getting is:</p>
<pre><code>Connecting to network: mainnet
/nix/store/6f4mj582ymmn8zx90j8f8n9sx540hi9x-entry-point/bin/entry-point: line 26: /nix/store/74ky2ipmmh6y7qjxp0q03vh316dxddw2-cardano-db-sync-mainnet: Is a directory
/nix/store/6f4mj582ymmn8zx90j8f8n9sx540hi9x-entry-point/bin/entry-point: line 26: exec: /nix/store/74ky2ipmmh6y7qjxp0q03vh316dxddw2-cardano-db-sync-mainnet: cannot execute: Is a directory
/nix/store/6f4mj582ymmn8zx90j8f8n9sx540hi9x-entry-point/bin/entry-point: line 26: /nix/store/74ky2ipmmh6y7qjxp0q03vh316dxddw2-cardano-db-sync-mainnet: Is a directory
/nix/store/6f4mj582ymmn8zx90j8f8n9sx540hi9x-entry-point/bin/entry-point: line 26: exec: /nix/store/74ky2ipmmh6y7qjxp0q03vh316dxddw2-cardano-db-sync-mainnet: cannot execute: Is a directory
</code></pre>
<p>My <code>dev</code> service looks like this:</p>
<pre><code>    dev:
        build:
            context: .
            dockerfile: DevContainer.Dockerfile
        volumes: [
            ../:/app/
        ]
        command: sleep infinity
        ports:
            - &quot;3001:3001&quot;
        networks:
            - dev-network
        cap_add:
            - SYS_PTRACE
        security_opt:
            - seccomp:unconfined
</code></pre>
<p>and <code>db-sync</code> is:</p>
<pre><code>    cardano-db-sync:
        image: inputoutput/cardano-db-sync:10.0.0
        environment:
            - NETWORK=${NETWORK:-mainnet}
            - POSTGRES_HOST=postgres
            - POSTGRES_PORT=5432
        depends_on:
            - cardano-node
            - postgres
        secrets:
            - postgres_password
            - postgres_user
            - postgres_db
        volumes:
            - db-sync-data:/var/lib/cdbsync
            - node-ipc:/node-ipc
        networks:
            - dev-network
        restart: on-failure
        logging:
            driver: &quot;json-file&quot;
            options:
                max-size: &quot;200k&quot;
                max-file: &quot;10&quot;

secrets:
    postgres_db:
        file: ./config/secrets/postgres_db
    postgres_password:
        file: ./config/secrets/postgres_password
    postgres_user:
        file: ./config/secrets/postgres_user

volumes:
    db-sync-data:
    postgres:
    node-db:
    node-ipc:

networks:
    dev-network:
</code></pre>

CC BY-SA 4.0
2021-07-14T09:20:21.827Z
saw this GitHub issue 
https://github.com/input-output-hk/cardano-db-sync/issues/655
jamescheuk
<cardano-node><cardano-db-sync>
Error running cardano-db-sync in docker-compose file as devcontainer
# Error running cardano-db-sync in docker-compose file as devcontainer

(Asked by: username_0 on 2021-06-17)

I have a docker-compose.yml file which I use as a devcontainer for VSCode. Part of my application requires access to cardano-db-sync so that I can query the database for transaction information. I am unsure how to get the dev service to communicate with the db-sync service. I have copied the entire docker-compose.yml and config/ directory from cardano-db-sync into my project. The error I'm getting is:
Connecting to network: mainnet
/nix/store/6f4mj582ymmn8zx90j8f8n9sx540hi9x-entry-point/bin/entry-point: line 26: /nix/store/74ky2ipmmh6y7qjxp0q03vh316dxddw2-cardano-db-sync-mainnet: Is a directory
/nix/store/6f4mj582ymmn8zx90j8f8n9sx540hi9x-entry-point/bin/entry-point: line 26: exec: /nix/store/74ky2ipmmh6y7qjxp0q03vh316dxddw2-cardano-db-sync-mainnet: cannot execute: Is a directory
/nix/store/6f4mj582ymmn8zx90j8f8n9sx540hi9x-entry-point/bin/entry-point: line 26: /nix/store/74ky2ipmmh6y7qjxp0q03vh316dxddw2-cardano-db-sync-mainnet: Is a directory
/nix/store/6f4mj582ymmn8zx90j8f8n9sx540hi9x-entry-point/bin/entry-point: line 26: exec: /nix/store/74ky2ipmmh6y7qjxp0q03vh316dxddw2-cardano-db-sync-mainnet: cannot execute: Is a directory

My dev service looks like this:
    dev:
        build:
            context: .
            dockerfile: DevContainer.Dockerfile
        volumes: [
            ../:/app/
        ]
        command: sleep infinity
        ports:
            - "3001:3001"
        networks:
            - dev-network
        cap_add:
            - SYS_PTRACE
        security_opt:
            - seccomp:unconfined

and db-sync is:
    cardano-db-sync:
        image: inputoutput/cardano-db-sync:10.0.0
        environment:
            - NETWORK=${NETWORK:-mainnet}
            - POSTGRES_HOST=postgres
            - POSTGRES_PORT=5432
        depends_on:
            - cardano-node
            - postgres
        secrets:
            - postgres_password
            - postgres_user
            - postgres_db
        volumes:
            - db-sync-data:/var/lib/cdbsync
            - node-ipc:/node-ipc
        networks:
            - dev-network
        restart: on-failure
        logging:
            driver: "json-file"
            options:
                max-size: "200k"
                max-file: "10"

secrets:
    postgres_db:
        file: ./config/secrets/postgres_db
    postgres_password:
        file: ./config/secrets/postgres_password
    postgres_user:
        file: ./config/secrets/postgres_user

volumes:
    db-sync-data:
    postgres:
    node-db:
    node-ipc:

networks:
    dev-network:

**Tags:** cardano-node, cardano-db-sync
> **Comments:**
> **username_1**: saw this GitHub issue  https://github.com/input-output-hk/cardano-db-sync/issues/655  

---

## 1 answers

### Answer by username_1 on 2021-07-14. Score: 0

upgrading the image version to 10.0.1 will resolve the entry point issue.
image: inputoutput/cardano-db-sync:10.0.1

> **Comments:**
> **username_2**: Really? The comments on the GitHub issue: https://github.com/input-output-hk/cardano-db-sync/issues/655 say the issue is still unresolved.  
> **username_1**: @NikeDattani It was resolved by 10.0.1 release. check the issue again.  
> **username_2**: At the time of your answer, the last comment was "This is still an issue as replicated by @meiblorn." It was hours later than the issue was closed (without really answering that last comment).  
> **username_1**: @NikeDattani  I saw this pull request. https://github.com/input-output-hk/cardano-db-sync/pull/698  

---

