R
Runtipiβ€’5mo ago
nptytn

Custom Docker Image

I've some questions about the custom docker image. How do i create a custom image and use my image instead the one from the runtipi appstore? with the user-config/docker-compose.yml file? Does the restart app button from the ui suppose to reload my config and apply my custom image? So, my docker-compose.yml looks like the following:
version: "3.7"
services:
code-server:
image: nptytn/code-server:4.90.3
volumes:
- ${APP_DATA_DIR}/data/config:/config
- ${APP_DATA_DIR}/data/projects:/projects
- /usr/bin/vim:/usr/local/bin/vim
- /home/euro/.nvm:/config/.nvm
- /home/euro/.local/share/pnpm/pnpm:/usr/local/bin/pnpm
- /usr/bin/gh:/usr/local/bin/gh
version: "3.7"
services:
code-server:
image: nptytn/code-server:4.90.3
volumes:
- ${APP_DATA_DIR}/data/config:/config
- ${APP_DATA_DIR}/data/projects:/projects
- /usr/bin/vim:/usr/local/bin/vim
- /home/euro/.nvm:/config/.nvm
- /home/euro/.local/share/pnpm/pnpm:/usr/local/bin/pnpm
- /usr/bin/gh:/usr/local/bin/gh
9 Replies
InfBoumcyCastle
InfBoumcyCastleβ€’5mo ago
How do i create a custom image
as i see, you already have your own image created and stored at docker hub (A) if your own image matches all / most of the default-tipi-vscode parameters, then you can go that way: https://runtipi.io/docs/guides/customize-app-config and use the your compose via user-config. your and the original compose file will get merged. (B) if your version of vscode has some conflicting settings with the tipi one, then it might be best to create your own app and install and use it from your own app store repo. this is probably the best method when using a custom image where the official tipi app store will not be able to provide automatic updates for the app then. https://runtipi.io/docs/contributing/adding-a-new-app in one of the next versions of runtipi, there will be the possibility to have more than one repository defined - so it will be more convenient to have a peronal app store repo next to the official one. I am doing (A) with freshrss, since the tipi verion from linuxserver image misses a feature. when the multi-app-repo version of tipi is published, i likely will switch to (B)
Runtipi
Runtipi - Homeserver management made easy
Free and open-source, Runtipi lets you install all your favorite self-hosted apps without the hassle of configuring and managing each service. One-click installs and updates for more than 80 popular apps.
Runtipi
Runtipi - Homeserver management made easy
Free and open-source, Runtipi lets you install all your favorite self-hosted apps without the hassle of configuring and managing each service. One-click installs and updates for more than 80 popular apps.
nptytn
nptytnOPβ€’5mo ago
Thanks for prompt reply! much appreciated πŸ™‡β€β™‚οΈ I believe my custom docker image matches all the tipi vscode params because it extends from the base image which defines in the runtipi-appstore, and includes additional few cli commands such as lazygit and zsh. However, the problem is, when I tried to restart my server, it doesn't seem to use my image at all.
InfBoumcyCastle
InfBoumcyCastleβ€’5mo ago
what does docker inspect show? if you are using vscode (as app) you could use the docker extensions and have a look:
No description
nptytn
nptytnOPβ€’5mo ago
Looks like it failed to start the image from the UI right now, but starting the app from runtipi-cli is working fine. Here's the response from docker inspect command:
[{
...
"Image": "sha256:bb5990b6fb56bfb9487bcb3f370b8afabb06ec46e0cc42b8cf443efc60e18b4d",
...
}]
[{
...
"Image": "sha256:bb5990b6fb56bfb9487bcb3f370b8afabb06ec46e0cc42b8cf443efc60e18b4d",
...
}]
InfBoumcyCastle
InfBoumcyCastleβ€’5mo ago
the point i was trying to make was to compare the image hash from the running container with that of your image to see if your config picks up the correct image so docker container inspect and docker image inspect
nptytn
nptytnOPβ€’5mo ago
They are not the same, so this tells it doesn't pick up the same image that I want to use. This means we have to go back to my original question again. You have suggested 2 options: A and B. I think the option A should work because it extends from the base image that gets included in the runtipi-appstore with minimal addition of cli binaries. But then the option A doesn't actually work because when I start the app, it doesn't pick up my image. So the question is what could be wrong about it?
InfBoumcyCastle
InfBoumcyCastleβ€’5mo ago
Well A works, as shown in my screenshot, where I use a custom image. Are you sure, your path to the user-config is correct?
nptytn
nptytnOPβ€’5mo ago
Alright, i don't know what happens, but restarting runtipi server works. Now, it points to my custom image correctly πŸ™πŸ» Thanks for your help!
Unknown User
Unknown Userβ€’4mo ago
Message Not Public
Sign In & Join Server To View

Did you find this page helpful?