Giter VIP home page Giter VIP logo

Comments (10)

nickjj avatar nickjj commented on June 5, 2024

Hi,

What happens if you update to Docker Compose version 1.27+ or higher? 1.21 is back from 2018. 1.27+ supports certain features that might be related to this error.

from build-a-saas-app-with-flask.

jonathanlever avatar jonathanlever commented on June 5, 2024

that's a lot better, now I get through to

10% building 0/2 entries 2/2 dependencies 0/2 modulesBrowserslist: caniuse-lite is outdated. Please run:
webpack_1 | npx browserslist@latest --update-db
webpack_1 |
webpack_1 | Why you should do it regularly:
webpack_1 | https://github.com/browserslist/browserslist#browsers-data-updating
snakeeyes_web_1 exited with code 1
snakeeyes_worker_1 exited with code 1
37% building 1/2 entries 17/17 dependencies 7/8 modulesBrowserslist: caniuse-lite is outdated. Please run:
webpack_1 | npx browserslist@latest --update-db
webpack_1 |
webpack_1 | Why you should do it regularly:
webpack_1 | https://github.com/browserslist/browserslist#browsers-data-updating
99% end closing watch compilation[webpack-cli] [Error: EACCES: permission denied, mkdir '/app/public/fonts'] {
webpack_1 | errno: -13,
webpack_1 | code: 'EACCES',
webpack_1 | syscall: 'mkdir',
webpack_1 | path: '/app/public/fonts'
webpack_1 | }
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
snakeeyes_webpack_1 exited with code 2

from build-a-saas-app-with-flask.

nickjj avatar nickjj commented on June 5, 2024

What's the output of running id from your terminal?

I'm guessing your user and group are not both set to 1000? This is unfortunately an issue when wanting to run Docker containers as a non-root user and also wanting to use volumes. This issue only happens on native Linux btw but it can be worked around.

from build-a-saas-app-with-flask.

jonathanlever avatar jonathanlever commented on June 5, 2024

I get
uid=1001(azureuser) gid=1004(azureuser) groups=1004(azureuser),27(sudo),101(systemd-journal),117(docker),1001(ciusers),1002(_azbatchgrp),1003(_azbatchsudogrp)

from build-a-saas-app-with-flask.

nickjj avatar nickjj commented on June 5, 2024

I'm not familiar with Azure but is it possible to create a user there which has a uid:gid of 1000?

from build-a-saas-app-with-flask.

jonathanlever avatar jonathanlever commented on June 5, 2024

I'm not very familiar with azure either. There is an existing user _azbatch with uid 1000 and group 1002

from build-a-saas-app-with-flask.

nickjj avatar nickjj commented on June 5, 2024

Are you using it as a dev machine or deploying to production?

from build-a-saas-app-with-flask.

jonathanlever avatar jonathanlever commented on June 5, 2024

currently dev

from build-a-saas-app-with-flask.

nickjj avatar nickjj commented on June 5, 2024

What if you follow the steps here https://askubuntu.com/a/167400 to change the azureuser to 1000 for both the uid/gid? I'm not sure what the _azbatch user is tho. I've never seen a cloud hosting provider not give its initial user 1000:1000.

from build-a-saas-app-with-flask.

nickjj avatar nickjj commented on June 5, 2024

This has now been fixed in 30a0f34 which allows you to build and run your containers with a custom uid/gid.

from build-a-saas-app-with-flask.

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.