Skip to content

Commit

Permalink
Fixing the "context deadline exceeded" issue. (#46)
Browse files Browse the repository at this point in the history
Fixing the "context deadline exceeded" issue.
Fix the GLIBC errors due to the new OS version used by latest golang docker image.

Error message:
/app/servicenow-instance-wakeup: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /app/servicenow-instance-wakeup)
/app/servicenow-instance-wakeup: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /app/servicenow-instance-wakeup)

---------

Co-authored-by: Richard Szolár <richard@szolar.ly>
  • Loading branch information
gu-does-git and 0x111 committed Dec 17, 2023
1 parent f5b583f commit f07357b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang as builder
FROM golang:bullseye as builder
ADD . /src
RUN cd /src && make linux_amd64

Expand All @@ -12,4 +12,4 @@ ENV TIMEOUT 60
WORKDIR /app
COPY --from=builder /src/build/servicenow-instance-wakeup-linux-amd64 /app/servicenow-instance-wakeup
RUN chmod a+x /app/servicenow-instance-wakeup
ENTRYPOINT /app/servicenow-instance-wakeup -headless=$HEADLESS -username=$USERNAME -password=$PASSWORD -debug=$DEBUG -timeout=$TIMEOUT
ENTRYPOINT /app/servicenow-instance-wakeup -headless=$HEADLESS -username=$USERNAME -password=$PASSWORD -debug=$DEBUG -timeout=$TIMEOUT
4 changes: 2 additions & 2 deletions servicenow-instance-wakeup.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@ func main() {
os.Exit(1)
}

opts := []chromedp.ExecAllocatorOption{
opts := append(chromedp.DefaultExecAllocatorOptions[:],
chromedp.NoFirstRun,
chromedp.NoDefaultBrowserCheck,
chromedp.DisableGPU,
}
)

log.Printf("Starting the app with debug=%t/headless=%t/account=%s", configuration.Debug, configuration.ChromeHeadless, configuration.Username)

Expand Down

0 comments on commit f07357b

Please sign in to comment.