chore: updated deps

This commit is contained in:
Marvin Zhang
2024-11-22 17:55:20 +08:00
parent 9560da66b5
commit 2b3473dc48
8 changed files with 17 additions and 15 deletions

View File

@@ -1,6 +1,10 @@
module crawlab
go 1.22
go 1.22.9
replace (
github.com/crawlab-team/crawlab/core => ../core
)
require github.com/crawlab-team/crawlab/core v0.0.0-20241119103250-dc9f62dfd09a

View File

@@ -1,6 +1,6 @@
module github.com/crawlab-team/crawlab/db
go 1.22
go 1.22.9
replace github.com/crawlab-team/crawlab/trace => ../trace

View File

@@ -6,7 +6,7 @@ RUN bash /app/install/deps/deps.sh && \
bash /app/install/python/python.sh && \
bash /app/install/go/go.sh && \
bash /app/install/node/node.sh && \
bash /app/install/chromedriver/chromedriver.sh
bash /app/install/browser/browser.sh
# Final stage
FROM ubuntu:22.04

View File

@@ -21,17 +21,14 @@ apt-get install -y \
npm install -g @puppeteer/browsers
# Install chrome with auto-yes
npx -y @puppeteer/browsers install chrome@${version}
npx -y @puppeteer/browsers install chrome@${version} \
--install-deps \
--path=/chrome
# Add Chrome to PATH
CHROME_PATH="/chrome/linux-*/chrome-linux64"
if [ -d "$CHROME_PATH" ]; then
CHROME_BIN=$(find "$CHROME_PATH" -name "chrome")
if [ -n "$CHROME_BIN" ]; then
ln -sf "$CHROME_BIN" /usr/local/bin/google-chrome
chmod +x /usr/local/bin/google-chrome
fi
fi
CHROME_PATH="/chrome/linux-${version}/chrome-linux64"
CHROME_BIN="$CHROME_PATH/chrome"
ln -s "$CHROME_BIN" /usr/local/bin/google-chrome
# Verify chrome is installed (with more detailed error message)
if ! command -v google-chrome &> /dev/null; then

View File

@@ -1,6 +1,6 @@
module github.com/crawlab-team/crawlab/grpc
go 1.22
go 1.22.9
require (
google.golang.org/grpc v1.68.0

View File

@@ -1,4 +1,5 @@
github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=
github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps=
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
golang.org/x/net v0.31.0 h1:68CPQngjLL0r2AlUKiSxtQFKvzRVbnzLwMUn5SzcLHo=

View File

@@ -1,5 +1,5 @@
module github.com/crawlab-team/crawlab/trace
go 1.22
go 1.22.9
require github.com/ztrue/tracerr v0.4.0

View File

@@ -1,6 +1,6 @@
module github.com/crawlab-team/crawlab/vcs
go 1.22
go 1.22.9
require (
github.com/apex/log v1.9.0