Giter Club home page Giter Club logo

Comments (3)

MichielvanBeers avatar MichielvanBeers commented on May 29, 2024

Ah, I think I got it! The dir2cast.ini is not mapped to the Docker container. Adding it as a volume like ./dir2cast.ini:/dir2cast.ini fixes it. I can do a PR for that if you want.

However, I still don't see the data generated in the tmp folder. Do you know what might be causing that?

from dir2cast.

ben-xo avatar ben-xo commented on May 29, 2024

The tmp folder will be inside the container unless you map that too.

from dir2cast.

MichielvanBeers avatar MichielvanBeers commented on May 29, 2024

Hi @ben-xo,

Thanks for your reply. I thought the same, but I can't see the content in the container as well. See below for some details. Any ideas?

Docker-compose yaml

version: "2.3"

# after "docker-compose up" try the following URLs as examples:
# http://localhost:8080/
# http://localhost:8080/test/fixtures/

services:
    web:
        image: nginx:alpine
        restart: unless-stopped
        ports:
            - "5001:80"
        volumes:
            - .:/var/www/html
            - ./docker-compose/nginx/default.conf:/etc/nginx/conf.d/default.conf
        links:
            - php-fpm

    php-fpm:
        image: php:7-fpm-alpine
        restart: unless-stopped
        volumes:
            - .:/var/www/html

            # You could also create a Dockerfile FROM php:7-fpm-alpine which includes these next two
            - ./dir2cast.php:/dir2cast.php
            - ./dir2cast.ini:/dir2cast.ini
            - ./getID3:/getID3

            # You should map a temp folder in otherwise you'll see errors about permission denied mkdir()
            - /tmp:/temp

Output of terminal after connecting with the php-fpm container

/var/www/html # ls
CHANGELOG.txt       LICENSE             README.md           books               dir2cast.ini        dir2cast.php        docker-compose      docker-compose.yml  getID3              temp                test                tmp
/var/www/html # cd temp/
/var/www/html/temp # ls -a
.   ..
/var/www/html/temp # cd ..
/var/www/html # cd tmp
/var/www/html/tmp # ls -a
.   ..
/var/www/html/tmp # 

from dir2cast.

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.