Skip to content

Commit 1a34af8

Browse files
Bot Updating Templated Files
1 parent ba30143 commit 1a34af8

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ pipeline {
202202
fi
203203
mkdir -p ${TEMPDIR}/gitbook
204204
git clone https://github.com/linuxserver/docker-documentation.git ${TEMPDIR}/gitbook/docker-documentation
205-
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
205+
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
206206
cp ${TEMPDIR}/${CONTAINER_NAME}/docker-${CONTAINER_NAME}.md ${TEMPDIR}/gitbook/docker-documentation/images/
207207
cd ${TEMPDIR}/gitbook/docker-documentation/
208208
git add images/docker-${CONTAINER_NAME}.md

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,25 @@ Container images are configured using parameters passed at runtime (such as thos
113113
* image version number
114114
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' linuxserver/ldap-auth`
115115

116+
## Updating Info
117+
118+
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.
119+
120+
Below are the instructions for updating containers:
121+
122+
### Via Docker Run/Create
123+
* Update the image: `docker pull linuxserver/ldap-auth`
124+
* Stop the running container: `docker stop ldap-auth`
125+
* Delete the container: `docker rm ldap-auth`
126+
* 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)
127+
* Start the new container: `docker start ldap-auth`
128+
* You can also remove the old dangling images: `docker image prune`
129+
130+
### Via Docker Compose
131+
* Update the image: `docker-compose pull linuxserver/ldap-auth`
132+
* Let compose update containers as necessary: `docker-compose up -d`
133+
* You can also remove the old dangling images: `docker image prune`
134+
116135
## Versions
117136

118137
* **18.09.18:** - Update pip

0 commit comments

Comments
 (0)