Skip to content

Commit cb9eb88

Browse files
Bot Updating Templated Files
1 parent 36ed1c8 commit cb9eb88

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ pipeline {
203203
fi
204204
mkdir -p ${TEMPDIR}/gitbook
205205
git clone https://github.com/linuxserver/docker-documentation.git ${TEMPDIR}/gitbook/docker-documentation
206-
if [ ! -f ${TEMPDIR}/gitbook/docker-documentation/images/docker-${CONTAINER_NAME}.md ] || [ "$(md5sum ${TEMPDIR}/gitbook/docker-documentation/images/docker-${CONTAINER_NAME}.md | awk '{ print $1 }')" != "$(md5sum ${TEMPDIR}/${CONTAINER_NAME}/docker-${CONTAINER_NAME}.md | awk '{ print $1 }')" ]; then
206+
if [ "${BRANCH_NAME}" = "master" ] && [ ! -f ${TEMPDIR}/gitbook/docker-documentation/images/docker-${CONTAINER_NAME}.md ] || [ "$(md5sum ${TEMPDIR}/gitbook/docker-documentation/images/docker-${CONTAINER_NAME}.md | awk '{ print $1 }')" != "$(md5sum ${TEMPDIR}/${CONTAINER_NAME}/docker-${CONTAINER_NAME}.md | awk '{ print $1 }')" ]; then
207207
cp ${TEMPDIR}/${CONTAINER_NAME}/docker-${CONTAINER_NAME}.md ${TEMPDIR}/gitbook/docker-documentation/images/
208208
cd ${TEMPDIR}/gitbook/docker-documentation/
209209
git add images/docker-${CONTAINER_NAME}.md

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ In this instance `PUID=1001` and `PGID=1001`, to find yours use `id user` as bel
126126
uid=1001(dockeruser) gid=1001(dockergroup) groups=1001(dockergroup)
127127
```
128128

129+
129130
 
130131
## Application Setup
131132

@@ -142,6 +143,25 @@ The webui is at `<your ip>:8200` , create backup jobs etc via the webui, for loc
142143
* image version number
143144
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' linuxserver/duplicati`
144145

146+
## Updating Info
147+
148+
Most of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (ie. nextcloud, plex), we do not recommend or support updating apps inside the container. Please consult the [Application Setup](#application-setup) section above to see if it is recommended for the image.
149+
150+
Below are the instructions for updating containers:
151+
152+
### Via Docker Run/Create
153+
* Update the image: `docker pull linuxserver/duplicati`
154+
* Stop the running container: `docker stop duplicati`
155+
* Delete the container: `docker rm duplicati`
156+
* Recreate a new container with the same docker create parameters as instructed above (if mapped correctly to a host folder, your `/config` folder and settings will be preserved)
157+
* Start the new container: `docker start duplicati`
158+
* You can also remove the old dangling images: `docker image prune`
159+
160+
### Via Docker Compose
161+
* Update the image: `docker-compose pull linuxserver/duplicati`
162+
* Let compose update containers as necessary: `docker-compose up -d`
163+
* You can also remove the old dangling images: `docker image prune`
164+
145165
## Versions
146166

147167
* **13.01.19:** - Use jq instead of awk in dockerfiles.

0 commit comments

Comments
 (0)