Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Docker image #2

Closed
chiptus opened this issue Jul 31, 2021 · 8 comments
Closed

Docker image #2

chiptus opened this issue Jul 31, 2021 · 8 comments

Comments

@chiptus
Copy link

chiptus commented Jul 31, 2021

Is there a chance to have a docker image so we can install it with a oneliner and without deps?

@ant4g0nist
Copy link
Owner

yes, it should be possible. Sandbox would be a concern as I am using docker to launch Flextesa container from inside chinstrap. Would be Dockerception!

dockerception

@chiptus
Copy link
Author

chiptus commented Jul 31, 2021 via email

@ant4g0nist
Copy link
Owner

ant4g0nist commented Jul 31, 2021

done!

docker run -v /var/run/docker.sock:/var/run/docker.sock -it ant4g0nist/chinstrap:0.0.13

Please give it a try!

@chiptus
Copy link
Author

chiptus commented Jul 31, 2021 via email

@ant4g0nist
Copy link
Owner

Is that good for now? :)

@chiptus
Copy link
Author

chiptus commented Aug 1, 2021

I guess the image is built for mac, right?

he requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64) and no specific platform was requested

can we have an amd64 image?

@chiptus
Copy link
Author

chiptus commented Aug 1, 2021

building it locally worked, I think.

why the entrypoing of the image is bash and not chinstrap?

I expect to see the regular output of chinstrap when I'm running the image.

When I run docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -it chinstrap:local chinstrap I get:

import-im6.q16: unable to open X server `' @ error/import.c/ImportImageCommand/360.
/usr/local/bin/chinstrap: line 3: from: command not found
/usr/local/bin/chinstrap: chinstrap: line 6: syntax error near unexpected token `('
/usr/local/bin/chinstrap: chinstrap: line 6: `    with warnings.catch_warnings():'

@ant4g0nist
Copy link
Owner

Okay. thanks for checking it. fixed and pushed both arm and amd images and made chinstrap the entrypoint.

note: the target folder needs to be shared with Docker

docker run -v /var/run/docker.sock:/var/run/docker.sock -v `pwd`:/home -it ant4g0nist/chinstrap:0.0.13 --init

Screenshot 2021-08-01 at 17 02 05

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants