Skip to content

Conversation

@AlekSi
Copy link
Contributor

@AlekSi AlekSi commented Dec 21, 2022

See https://containrrr.dev/watchtower/running-multiple-instances/

com.centurylinklabs.watchtower.enable and --label-enable are kept for backward compatibility.

Closes #48.

@AlekSi AlekSi requested a review from a team as a code owner December 21, 2022 15:20
local -ar docker_shadowbox_flags=(
--name "${CONTAINER_NAME}" --restart always --net host
--label 'com.centurylinklabs.watchtower.enable=true'
--label 'com.centurylinklabs.watchtower.scope=shadowbox'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this prevent watchtower itself from being updated?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, the label and the flag will be applied simultaneously. So old version without the label and the flag will update itself to a new version with the label and the flag.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed scope name to make it a bit more explicit. PTAL

@AlekSi AlekSi requested a review from fortuna December 23, 2022 18:03
See https://containrrr.dev/watchtower/running-multiple-instances/

`com.centurylinklabs.watchtower.enable` and `--label-enable` are kept for backward compatibility.

Closes OutlineFoundation#48.
# testing). Otherwise refresh every hour.
local -ir WATCHTOWER_REFRESH_SECONDS="${WATCHTOWER_REFRESH_SECONDS:-3600}"
local -ar docker_watchtower_flags=(--name watchtower --restart always \
--label 'com.centurylinklabs.watchtower.enable=true' \
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

furthermore, this change now allows watchtower to update itself
right now every instance of outline-server has its watchtower image stuck on the installation version due to the presence of --label-enable

@AlekSi
Copy link
Contributor Author

AlekSi commented Feb 14, 2023

Ping

@AlekSi
Copy link
Contributor Author

AlekSi commented Nov 16, 2023

@fortuna poke

@fortuna
Copy link
Collaborator

fortuna commented Nov 6, 2024

I'm sorry, this felt through the cracks.

I believe it's a good change. Though it seems it has some conflicts with the existing code now that need to be fixed.

# Conflicts:
#	src/server_manager/install_scripts/install_server.sh
@AlekSi
Copy link
Contributor Author

AlekSi commented Nov 11, 2024

@fortuna PTAL

@sbruens sbruens changed the title Allow to run Outline on a server with another Watchtower feat(server): allow running Outline on a server with another Watchtower Nov 14, 2024
@sbruens sbruens merged commit f558117 into OutlineFoundation:master Nov 14, 2024
13 of 14 checks passed
@AlekSi AlekSi deleted the watchtower-scope branch November 14, 2024 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set Watchtower to selectively watch shadowbox

4 participants