Comments (5)
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.
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.
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.
I can confirm that it works.
Even the 'cache' issue is gone. Great work @corvus-ch
This can be closed
from commodore.
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)
- Sign commits with GPG in Docker image HOT 3
- --local is not useful if new components are added to the catalog HOT 1
- Catalog compile quietly overwrites local changes HOT 1
- Sort the output of 'commodore catalog list' HOT 1
- Refactor classes `Component` and `Package` to have a shared base class
- Add option to filter dependency list for `component sync` and `package sync`
- Improve handling of secondary rate-limits in `sync_dependencies()` HOT 3
- Support rendering preview of template changes in a feature branch for `component update` / `package update`
- `commodore component update` commits files in gitignore HOT 1
- kube-libsonnet is using soon deprecated API versions HOT 4
- Commodore's template sync creates PRs even if there's no actual changes
- YAML generated by Commodore postprocess filters uses non-standard formatting
- `commodore inventory lint` crashes on YAML documents which contain top-level `parameters` key which isn't a dict
- Report template changes in sync PRs
- Add support for explicit component dependencies
- Make Poetry version in Dockerfile renovatable
- Required dependency libmagic not present on macOS HOT 2
- Address new bandit lints B113, B603, B607 HOT 1
- Compilation fails when using an empty string as key HOT 2
- Support arbitrary default branch names for cluster catalog and dependency repositories
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from commodore.