-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify map session management #1931
Merged
kradalby
merged 25 commits into
juanfont:main
from
kradalby:kradalby/close-via-notifier
May 24, 2024
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
e2d95e2
try to close on existing connection, also reject
kradalby 5b132b6
expand notifier and mapresp metrics
kradalby 59c522d
make timeout and rejects label node id
kradalby 1f9ffaa
remove mapresponse map
kradalby eb33299
standardise trace logging in notifier
kradalby 9851123
update comments
kradalby 3ed9f72
format id in metrics
kradalby 97f8b36
add missing ts version
kradalby 0a69b26
send updates async so we reach select in poll
kradalby 3d92837
expand integ test cert validity
kradalby 789bfe7
only print nodes with not all up peers in test
kradalby c96f11d
set a timeout for sendall nodes
kradalby e8e9290
split mapresp serve by streaming
kradalby fa97a86
up notifier timeout
kradalby edcd23b
name integration test metrics by hostname
kradalby 9060260
fix not setting sendtimeout
kradalby c76128c
add env options for debug deadlock and config
kradalby 0cfe0dd
add debug to intg test, make high cardin metrics debug flag
kradalby 516da1c
change how conditional metric is registered
kradalby 5e5b443
comment on sendall timeout
kradalby c03497d
dump config in integ test
kradalby e9c6687
add debug metric for last sent to node
kradalby 00aa63c
add 1.66 to testing
kradalby 0047008
fix issue where new clients are not always setting NetInfo
kradalby a49755e
replace docker head file with upstream and bisect note
kradalby File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,43 @@ | ||
# This Dockerfile and the images produced are for testing headscale, | ||
# and are in no way endorsed by Headscale's maintainers as an | ||
# official nor supported release or distribution. | ||
# Copyright (c) Tailscale Inc & AUTHORS | ||
# SPDX-License-Identifier: BSD-3-Clause | ||
|
||
FROM golang:latest | ||
# This Dockerfile is more or less lifted from tailscale/tailscale | ||
# to ensure a similar build process when testing the HEAD of tailscale. | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y dnsutils git iptables ssh ca-certificates \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
FROM golang:1.22-alpine AS build-env | ||
|
||
RUN useradd --shell=/bin/bash --create-home ssh-it-user | ||
WORKDIR /go/src | ||
|
||
RUN apk add --no-cache git | ||
|
||
# Replace `RUN git...` with `COPY` and a local checked out version of Tailscale in `./tailscale` | ||
# to test specific commits of the Tailscale client. This is useful when trying to find out why | ||
# something specific broke between two versions of Tailscale with for example `git bisect`. | ||
# COPY ./tailscale . | ||
RUN git clone https://github.com/tailscale/tailscale.git | ||
|
||
WORKDIR /go/tailscale | ||
WORKDIR /go/src/tailscale | ||
|
||
|
||
# see build_docker.sh | ||
ARG VERSION_LONG="" | ||
ENV VERSION_LONG=$VERSION_LONG | ||
ARG VERSION_SHORT="" | ||
ENV VERSION_SHORT=$VERSION_SHORT | ||
ARG VERSION_GIT_HASH="" | ||
ENV VERSION_GIT_HASH=$VERSION_GIT_HASH | ||
ARG TARGETARCH | ||
|
||
RUN GOARCH=$TARGETARCH go install -ldflags="\ | ||
-X tailscale.com/version.longStamp=$VERSION_LONG \ | ||
-X tailscale.com/version.shortStamp=$VERSION_SHORT \ | ||
-X tailscale.com/version.gitCommitStamp=$VERSION_GIT_HASH" \ | ||
-v ./cmd/tailscale ./cmd/tailscaled ./cmd/containerboot | ||
|
||
FROM alpine:3.18 | ||
RUN apk add --no-cache ca-certificates iptables iproute2 ip6tables curl | ||
|
||
RUN git checkout main \ | ||
&& sh build_dist.sh tailscale.com/cmd/tailscale \ | ||
&& sh build_dist.sh tailscale.com/cmd/tailscaled \ | ||
&& cp tailscale /usr/local/bin/ \ | ||
&& cp tailscaled /usr/local/bin/ | ||
COPY --from=build-env /go/bin/* /usr/local/bin/ | ||
# For compat with the previous run.sh, although ideally you should be | ||
# using build_docker.sh which sets an entrypoint for the image. | ||
RUN mkdir /tailscale && ln -s /usr/local/bin/containerboot /tailscale/run.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please never use alpine images. Musl C is so broken.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why in general agree with you, this particular case will reproduce the head image so it's more or less the same as all the other ones which we pull from dockerhub and is built by that file.
So in this case this is fixing the odd one out.