Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grunt_true.json file is missing #24

Open
mgottholsen opened this issue Sep 12, 2017 · 6 comments
Open

grunt_true.json file is missing #24

mgottholsen opened this issue Sep 12, 2017 · 6 comments

Comments

@mgottholsen
Copy link

When running "docker build -t="cartodb" docker-cartodb/", the build almost finished and returns:

env: ./config/grunt_true.json
Loading "Gruntfile.js" tasks...ERROR
>> Error: ./config/grunt_true.json file is missing! See ./config/grunt_true.json.sample for how it should look like
Warning: Task "production" not found. Use --force to continue.

Aborted due to warnings.
The command '/bin/sh -c cd cartodb &&    export PATH=$PATH:$PWD/node_modules/grunt-cli/bin &&    bundle install &&    bundle exec grunt --environment production' returned a non-zero code: 3

This is a fresh Ubuntu 16.04 install.

@sindile
Copy link

sindile commented Sep 13, 2017

See this commit sverhoeven/docker-cartodb@d919441 - might help with your issue.

@brambow
Copy link

brambow commented Sep 20, 2017

I had this issue and solved part of it by changing the /config/grunt_production.json file to grunt_true.json. It eliminated the file missing error, but I still get

Warning: Task "production" not found. Use --force to continue.

and it aborts.

@brambow
Copy link

brambow commented Sep 20, 2017

I didn't have any success with my previous comment, so I ended up dropping '--environment production' from the Dockerfile command and just running for development:

RUN cd cartodb &&\
    export PATH=$PATH:$PWD/node_modules/grunt-cli/bin &&\
    bundle install &&\
    bundle exec grunt 

@arminakvn
Copy link

this worked for me:
1.change the ADD line for copying the grunt config file from

ADD ./config/grunt_production.json /cartodb/config/grunt_production.json

to

ADD ./config/grunt_production.json /cartodb/config/grunt_true.json

2.change the RUN block from

RUN cd cartodb &&\
    export PATH=$PATH:$PWD/node_modules/grunt-cli/bin &&\
    bundle install &&\
    bundle exec grunt --environment production

to

RUN cd cartodb &&\
    export PATH=$PATH:$PWD/node_modules/grunt-cli/bin &&\
    bundle install &&\
    /bin/bash -l -c 'bundle exec grunt' && \
    rm -rf .git /root/.cache/pip node_modules	

@willkara
Copy link

Any movement on closing this and making it official?

@vichaos
Copy link

vichaos commented Mar 2, 2018

Changing from --environment production to --environment=production does the trick

RUN cd cartodb &&
export PATH=$PATH:$PWD/node_modules/grunt-cli/bin &&
bundle install &&
bundle exec grunt --environment=production

Prindle19 added a commit to Prindle19/docker-cartodb that referenced this issue Mar 26, 2018
Newest version of Windshaft (master) breaks, using 7be5361433c290e86fc881259708f74872cdd38e which I believe was the last working version prior to this Dockerfile's creation. 

Also, changing the grunt run command to address chriswhong#24
Prindle19 added a commit to Prindle19/docker-cartodb that referenced this issue Mar 26, 2018
Newest version of Windshaft (master) breaks, using #15c0f06e which I believe was the last working version prior to this Dockerfile's creation. 

Also, changing the grunt run command to address chriswhong#24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants