I want to create a cloudron app using docker image
-
Hello, I am interesting running Teamcity Server in my cloudron instance.
The way to run the server using docker is given as
docker run --name teamcity-server-instance \ -v <path to data directory>:/data/teamcity_server/datadir \ -v <path to logs directory>:/opt/teamcity/logs \ -p <port on host>:8111 \ jetbrains/teamcity-server
How can I convert this into a "Cloudron" app? Can some point me the right direction or to a document / tutorial?
I have read how to the build cloudron app and looked the examples too, but I seem to missinga) How to publish the app from a docker image directly?
b) Configure the volumes and the port as given here.Thanks in advance.
Senthil
-
@senthilkumaran https://docs.cloudron.io/packaging/tutorial/ is a good place to start. Otherwise, we have a forum section to help out with packaging related queries. Feel free to ask for help.
a) How to publish the app from a docker image directly?
This is not possible. You have to make a package specifically for Cloudron. There are a number of runtime restrictions in Cloudron and the Docker image has to be adapted accordingly.
b) Configure the volumes and the port as given here.
This is all possible. Please let us know if the tutorial clarifies questions.
-
-
@senthilkumaran I also suggest you check out the sample apps which Cloudron made and are available for testing proof of concept and as a base for your own package(s).
Also look on git.cloudron.io : there are many custom apps there from users (not Cloudron staff). Those can give you a good idea of how people approach the task of packaging, and i particular the task of separating read only
/app/code
and read write/app/data
.