Skip to content
This repository was archived by the owner on Jan 6, 2021. It is now read-only.

Commit 64e3c48

Browse files
Bot Updating Templated Files
1 parent 82c6768 commit 64e3c48

File tree

2 files changed

+30
-10
lines changed

2 files changed

+30
-10
lines changed

Jenkinsfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pipeline {
3636
script{
3737
env.EXIT_STATUS = ''
3838
env.LS_RELEASE = sh(
39-
script: '''docker run --rm alexeiled/skopeo sh -c 'skopeo inspect docker://docker.io/'${DOCKERHUB_IMAGE}':latest 2>/dev/null' | jq -r '.Labels.build_version' | awk '{print $3}' ''',
39+
script: '''docker run --rm alexeiled/skopeo sh -c 'skopeo inspect docker://docker.io/'${DOCKERHUB_IMAGE}':latest 2>/dev/null' | jq -r '.Labels.build_version' | awk '{print $3}' | grep '\\-ls' || : ''',
4040
returnStdout: true).trim()
4141
env.LS_RELEASE_NOTES = sh(
4242
script: '''cat readme-vars.yml | awk -F \\" '/date: "[0-9][0-9].[0-9][0-9].[0-9][0-9]:/ {print $4;exit;}' | sed -E ':a;N;$!ba;s/\\r{0,1}\\n/\\\\n/g' ''',

README.md

+29-9
Original file line numberDiff line numberDiff line change
@@ -216,22 +216,42 @@ Below are the instructions for updating containers:
216216
* Start the new container: `docker start letsencrypt`
217217
* You can also remove the old dangling images: `docker image prune`
218218

219-
### Via Taisun auto-updater (especially useful if you don't remember the original parameters)
220-
* Pull the latest image at its tag and replace it with the same env variables in one shot:
221-
```
222-
docker run --rm \
223-
-v /var/run/docker.sock:/var/run/docker.sock taisun/updater \
224-
--oneshot letsencrypt
225-
```
226-
* You can also remove the old dangling images: `docker image prune`
227-
228219
### Via Docker Compose
229220
* Update all images: `docker-compose pull`
230221
* or update a single image: `docker-compose pull letsencrypt`
231222
* Let compose update all containers as necessary: `docker-compose up -d`
232223
* or update a single container: `docker-compose up -d letsencrypt`
233224
* You can also remove the old dangling images: `docker image prune`
234225

226+
### Via Watchtower auto-updater (especially useful if you don't remember the original parameters)
227+
* Pull the latest image at its tag and replace it with the same env variables in one run:
228+
```
229+
docker run --rm \
230+
-v /var/run/docker.sock:/var/run/docker.sock \
231+
containrrr/watchtower \
232+
--run-once letsencrypt
233+
```
234+
* You can also remove the old dangling images: `docker image prune`
235+
236+
## Building locally
237+
238+
If you want to make local modifications to these images for development purposes or just to customize the logic:
239+
```
240+
git clone https://github.com/linuxserver/docker-letsencrypt.git
241+
cd docker-letsencrypt
242+
docker build \
243+
--no-cache \
244+
--pull \
245+
-t linuxserver/letsencrypt:latest .
246+
```
247+
248+
The ARM variants can be built on x86_64 hardware using `multiarch/qemu-user-static`
249+
```
250+
docker run --rm --privileged multiarch/qemu-user-static:register --reset
251+
```
252+
253+
Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64`.
254+
235255
## Versions
236256

237257
* **30.04.19:** - Add php-redis.

0 commit comments

Comments
 (0)