Coder Social home page Coder Social logo

Comments (8)

lucacasonato avatar lucacasonato commented on April 27, 2024 2

This makes sense to me, especially now that we store origin data (localStorage) in DENO_DIR.

from deno_docker.

hayd avatar hayd commented on April 27, 2024

What did you have to set DENO_DIR to for gitlab-ci?

from deno_docker.

x80486 avatar x80486 commented on April 27, 2024

The original file was like this:

default:
  cache:
    key: $CI_COMMIT_REF_SLUG
    paths:
      - $DENO_DIR/
  image: docker.io/hayd/alpine-deno:1.7.2 # https://hub.docker.com/r/hayd/alpine-deno/

stages:
  - verify

format:
  stage: verify
  rules:
    - if: $CI_COMMIT_BRANCH == "master"
    - if: $CI_MERGE_REQUEST_ID
  script:
    - deno fmt --check

Removing the cache key it's all I needed to remove the warnings and make the pipeline works without failing. I think setting DENO_DIR to /home/deno/.cache/deno (the defaults) makes sense and should probably fix this.

from deno_docker.

hayd avatar hayd commented on April 27, 2024

cc @lucacasonato for an opinion on this one.

from deno_docker.

x80486 avatar x80486 commented on April 27, 2024

Hello folks...any progress on this one?

from deno_docker.

x80486 avatar x80486 commented on April 27, 2024

OK...that would be great then! 🥂

from deno_docker.

felipecrs avatar felipecrs commented on April 27, 2024

Question:

The README suggests to mount --volume $HOME/.deno:/deno-dir. On my $HOME/.deno, I only see the folder bin, even though I have some things cached already. So, what's the use case of --volume $HOME/.deno:/deno-dir?

from deno_docker.

felipecrs avatar felipecrs commented on April 27, 2024

BTW, @x80486 you can set the DENO_DIR environment variable to be whatever you want, as a folder inside of the HOME if you prefer.

It does not make sense to set the default value for DENO_DIR inside the container to be /home/deno/.deno/cache, as the container can be run as not only deno, but root as well.

from deno_docker.

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.