Git Product home page Git Product logo

Comments (5)

nunojusto avatar nunojusto commented on August 17, 2024

I think it needs to write that jsonnetfile.json file inside a folder that we can control.
Because having it on / (root) we cannot change that folder id permissions. And so and then we cannot write jsonnetfile.json that there

from commodore.

corvus-ch avatar corvus-ch commented on August 17, 2024

Please try to define the commodore() functions as following:

commodore() {
  docker run \
    --interactive=true \
    --tty \
    --rm \
    --user="$(id -u)" \
    --volume "${HOME}/.ssh:/app/.ssh:ro" \
    --volume "${HOME}/.gitconfig:/app/.gitconfig:ro" \
    --volume "${PWD}:/app/data" \
    --workdir /app/data \
    -e COMMODORE_API_URL=$COMMODORE_API_URL \
    -e COMMODORE_GLOBAL_GIT_BASE=$COMMODORE_GLOBAL_GIT_BASE \
    -e COMMODORE_API_TOKEN=$COMMODORE_API_TOKEN \
    projectsyn/commodore:latest \
    $*
}

from commodore.

corvus-ch avatar corvus-ch commented on August 17, 2024

Now that the mkdir is no longer required, we can also switch back to an alias.

alias commodore='docker run --interactive=true --tty --rm --user="$(id -u)" --volume "${HOME}/.ssh:/app/.ssh:ro" --volume "${HOME}/.gitconfig:/app/.gitconfig:ro" --volume "${PWD}:/app/data" --workdir /app/data -e COMMODORE_API_URL=$COMMODORE_API_URL -e COMMODORE_GLOBAL_GIT_BASE=$COMMODORE_GLOBAL_GIT_BASE -e COMMODORE_API_TOKEN=$COMMODORE_API_TOKEN projectsyn/commodore:latest'

This alias worked for me both on macOS with Docker for Mac and on Ubuntu Bionic (vagrant box).

from commodore.

nunojusto avatar nunojusto commented on August 17, 2024

I can confirm that it works.
Even the 'cache' issue is gone. Great work @corvus-ch
This can be closed

from commodore.

corvus-ch avatar corvus-ch commented on August 17, 2024

I will keep this open. The example at https://openshift.docs.vshn.ch/oc4/how-tos/cloudscale/install.html#_terraform_cluster_config is still wrong.

from commodore.

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.