Fabric
Fabric copied to clipboard
dockerised or containerised fabric
What this Pull Request (PR) does
I added the docker folder with the required DockerFile etc. to containerise fabric application.
Related issues
closes #327.
@xssdoctor what do you think on this one?
+1 on this. This allows me to run this without installing a bunch of stuff on my computer
actually apparently I can just do this and it saves the install of fabic
alias gocontainer='docker run -it --pull always --rm -v $HOME:/root -v $(pwd):/go -w /go golang:latest'
Thank you for the PR.
Please also check those 3 points.
- Docker image for production Your image will work for sure. The best practice for production is to use small Docker images that contain only the application itself, without any unnecessary dependencies. To run Fabric, we don't need the Go development environment; we only need the binary. To create such an image, a multi-stage Dockerfile is typically used. Please check the example here and adapt the Dockerfile accordingly.
-
Please clean up docker-compose file. Remove all commented out lines and the traefic network.
-
Please add Github Action to build and publish Docker image to Github Registry, see e.g. here
Love it.
- Please add Github Action to build and publish Docker image to Github Registry, see e.g. here
Hi,
Thanks for the suggestions. I can look into point 1 and 2. But for point 3 I think it's better if @danielmiessler would publish the image on dockerhub himself. it would also confirm that the docker image is officially supported.
Someone help me install Fabric AI in a docker on Unraid? I don't know how to build this docker in Unraid because it asks for the image path.
Someone help me install Fabric AI in a docker on Unraid? I don't know how to build this docker in Unraid because it asks for the image path.
It would be best to learn to build the image yourself. Unless I am mistaken, based on reading this PR, you still need to build the image for yourself because the choice to automate the build and upload to GHCR was pushed back on the core dev, and then there was some confusing statement about using Docker Hub instead of the proposed GHCR.
In summary, there's a missing step and more work needs to be done and there is some confusion between two people as to where to upload the image after it's built.
Someone help me install Fabric AI in a docker on Unraid? I don't know how to build this docker in Unraid because it asks for the image path.
It would be best to learn to build the image yourself. Unless I am mistaken, based on reading this PR, you still need to build the image for yourself because the choice to automate the build and upload to GHCR was pushed back on the core dev, and then there was some confusing statement about using Docker Hub instead of the proposed GHCR.
In summary, there's a missing step and more work needs to be done and there is some confusion between two people as to where to upload the image after it's built.
I don't have the knowledge to do this. I'll study more and follow the forum. Thanks for your help