Skip to content

Commit 0655c66

Browse files
Bot Updating Templated Files
1 parent 3cda985 commit 0655c66

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

Jenkinsfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,15 @@ pipeline {
197197
else
198198
echo "false" > /tmp/${COMMIT_SHA}-${BUILD_NUMBER}
199199
fi
200+
mkdir -p ${TEMPDIR}/gitbook
201+
git clone https://github.com/linuxserver/docker-documentation.git ${TEMPDIR}/gitbook/docker-documentation
202+
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
203+
cp ${TEMPDIR}/${CONTAINER_NAME}/docker-${CONTAINER_NAME}.md ${TEMPDIR}/gitbook/docker-documentation/images/
204+
cd ${TEMPDIR}/gitbook/docker-documentation/
205+
git add images/docker-${CONTAINER_NAME}.md
206+
git commit -m 'Bot Updating Templated Files'
207+
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/linuxserver/docker-documentation.git --all
208+
fi
200209
rm -Rf ${TEMPDIR}'''
201210
script{
202211
env.FILES_UPDATED = sh(

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ TLDR: Multi-arch support is changing from multiple repos to one repo per contain
2626
[![](https://images.microbadger.com/badges/image/linuxserver/duckdns.svg)](https://microbadger.com/images/linuxserver/duckdns "Get your own version badge on microbadger.com")
2727
![Docker Pulls](https://img.shields.io/docker/pulls/linuxserver/duckdns.svg)
2828
![Docker Stars](https://img.shields.io/docker/stars/linuxserver/duckdns.svg)
29+
[![Build Status](https://ci.linuxserver.io/buildStatus/icon?job=Docker-Pipeline-Builders/docker-duckdns/master)](https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-duckdns/job/master/)
30+
[![](https://lsio-ci.ams3.digitaloceanspaces.com/linuxserver/duckdns/latest/badge.svg)](https://lsio-ci.ams3.digitaloceanspaces.com/linuxserver/duckdns/latest/index.html)
2931

3032
[Duckdns](https://duckdns.org/) is a free service which will point a DNS (sub domains of duckdns.org) to an IP of your choice. The service is completely free, and doesn't require reactivation or forum posts to maintain its existence.
3133

@@ -35,6 +37,8 @@ TLDR: Multi-arch support is changing from multiple repos to one repo per contain
3537

3638
Our images support multiple architectures such as `x86-64`, `arm64` and `armhf`. We utilise the docker manifest for multi-platform awareness. More information is available from docker [here](https://github.com/docker/distribution/blob/master/docs/spec/manifest-v2-2.md#manifest-list).
3739

40+
Simply pulling `linuxserver/duckdns` should retrieve the correct image for your arch, but you can also pull specific arch images via tags.
41+
3842
The architectures supported by this image are:
3943

4044
| Architecture | Tag |
@@ -43,6 +47,7 @@ The architectures supported by this image are:
4347
| arm64 | arm64v8-latest |
4448
| armhf | arm32v6-latest |
4549

50+
4651
## Usage
4752

4853
Here are some example snippets to help you get started creating a container.
@@ -111,6 +116,25 @@ Container images are configured using parameters passed at runtime (such as thos
111116
* image version number
112117
* `docker inspect -f '{{ index .Config.Labels "build_version" }}' linuxserver/duckdns`
113118

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

116140
* **10.12.18:** - Fix docker compose example.

0 commit comments

Comments
 (0)