Comments (7)
# ls /root/workspace
PinFile
# buildah run -v /root/workspace:/workdir:rw linchpin-working-container -- linchpin -w /workdir up
Usage: linchpin [OPTIONS] COMMAND [ARGS]...
Try 'linchpin -h' for help.
Error: Invalid value for '-w' / '--workspace': Path '/workdir' is not readable.
# buildah run -v /root/workspace:/workdir:rw linchpin-working-container -- linchpin -w workdir up
/linchpin/workdir/PinFile not found. Please check that it exists and try again
from linchpin.
@abraverm can you help out here?
from linchpin.
- buildah bud only generated a linchpin container image not a container, and buildah run requires a <container_id/name> parameter, so it must be failed to follow cmdline in our documentation, I guess it may be podman not buildah command in here, or to use buildah from to generate a linchpin container before executing buildah run command
Correct, podman\docker... should be the right command for starting a container
- for '-v /path/to/workspace:/workdir', I want to know what is /path/to/workspace? is it linchpin work path or auth path? it has a little secret for users, although a Note is provided by documentation, could you give a available example? thanks!
I think the auther meant workspace. Regarding credentials, the default path where Linchpin looks for credential files is at ~/.config/linchpin
, lets take the following topology as an example:
---
topology_name: ec2-new
resource_groups:
- resource_group_name: "aws"
resource_group_type: "aws"
resource_definitions:
- name: demo-day
flavor: m1.small
role: aws_ec2
region: us-east-1
image: ami-984189e2
count: 1
credentials:
filename: aws.key
profile: default
If your run podman run linchpin -v /path/to/workspace:/workdir -- linchpin -w /wordir up
then by default it will look for credentials aws.key
at /root/.config/linchpin
inside the container. There are number of ways to handle this problem:
- mounting credentials file to
/root/.config/linchpin
, something like-v /path/to/aws/creds:/root/.config/linchpin
but when Linchpin executed it will generate number of files (logs, db, etc) and save it to the same folder. - changing the credentials path by doing one of the following:
- Environment variable
CREDS_PATH
, something likepodman run -e CREDS_PATH=/workdir
- Linchpin config file that you can put in the workspace folder and change
default_config_path
ordefault_credentials_path
- Command option
--creds-path
:linchpin -w /workdir --creds-path /workdir up
- Environment variable
from linchpin.
@abraverm it's helpful for me, thanks! and please fix issue in documentation - https://linchpin.readthedocs.io/en/latest/installation.html
from linchpin.
Please upgrade linchpin to 2.0.2 or other stable version in contrainfra/linchpin.
I rebuilt linchpin container image w/ linchpin 2.0.2, it works for me.
-------------8<----------------
PLAY RECAP *********************************************************************
localhost : ok=28 changed=4 unreachable=0 failed=0 skipped=27 rescued=0 ignored=0
Action 'up' on Target 'rhel-8.2' is complete
ID: 1
Action: up
Target Run ID uHash Exit Code
-------------------------------------------------
rhel-8.2 1 5a542d 0
from linchpin.
@chuanchang , thank you for your feedback, I will fix the documentation and create a flow to update images.
from linchpin.
@chuanchang, the images moved to [Quay.io|https://quay.io/repository/cpaas/linchpin?tab=tags], I will update the docs.
Update
The [Quay.io linchpin images|https://quay.io/repository/cpaas/linchpin?tab=tags] are not based on this repository Dockerfile. I've updated Docker Hub autobuild and the latest tag has 2.0.2. Future releases (tags) will also have their own image. If older version of Linchpin docker image is needed then I will build and publish it manually.
from linchpin.
Related Issues (20)
- AWS EC2 provisioning fails when `count` is not set
- Example link deprecated
- no_monitor option cannot be set in linchpin.conf
- Error message showing up during linchpin container build HOT 1
- Linchpin installation fails on centos8 due to openstacksdk error
- Linchpin 1.7.2 failing on openstack provisioning on python 2.7 release
- Linchpin 2.0 fails on latest version of tinydb 4.0
- Packaging process disabled HOT 7
- Beaker payload definition - Add support for reservesys XML element
- Failed to provision openstack port with os_port due to missing network param
- failed: [localhost] (item=None) => {"censored": "the output has been hidden due to the fact that 'no_log: true' was specified for this result", "changed": false} HOT 4
- TypeError: get() got an unexpected keyword argument 'eid' HOT 5
- Can't successfully destroy provisioned VM based on contrainfra/linchpin HOT 4
- Support and document how to create blank libvirt VMs HOT 5
- 'linchpin_mock' is undefined HOT 5
- Failed to destroy beaker machine HOT 9
- [OpenStack] Additional Volumes should be cleaned when I hit linchpin destroy HOT 4
- Provisioning from beaker is failed on fedora 33 HOT 3
- Possible Improvement Scope: Leftover Installation in the Ansible test scripts HOT 1
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 linchpin.