-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
194 additions
and
35 deletions.
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CRAWLAB_TAG=develop | ||
CRAWLAB_PORT=8082 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Go build artifacts | ||
*.exe | ||
*.exe~ | ||
*.dll | ||
*.so | ||
*.dylib | ||
*.test | ||
*.out | ||
|
||
# Go workspace file | ||
go.work | ||
|
||
# IDE directories | ||
.idea/ | ||
.vscode/ | ||
|
||
# Dependencies | ||
vendor/ | ||
|
||
# Build output | ||
bin/ | ||
dist/ | ||
|
||
# Debug files | ||
debug/ | ||
|
||
# Environment files | ||
.env | ||
*.env | ||
|
||
# System files | ||
.DS_Store | ||
Thumbs.db | ||
|
||
# Test coverage | ||
coverage.txt | ||
*.cover | ||
|
||
# Temporary files | ||
*.tmp | ||
*~ |
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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
version: '3.3' | ||
services: | ||
backend: | ||
build: | ||
context: ./backend | ||
image: crawlabteam/crawlab-backend:${CRAWLAB_TAG:-develop} | ||
env_file: | ||
- .env.local | ||
|
||
frontend: | ||
build: | ||
context: ./frontend | ||
image: crawlabteam/crawlab-frontend:${CRAWLAB_TAG:-develop} | ||
env_file: | ||
- .env.local | ||
|
||
base-image: | ||
build: | ||
context: ./docker/base-image | ||
image: crawlabteam/crawlab-base:${CRAWLAB_TAG:-develop} | ||
env_file: | ||
- .env.local | ||
|
||
crawlab: | ||
build: | ||
context: . | ||
image: crawlabteam/crawlab:${CRAWLAB_TAG:-develop} | ||
depends_on: | ||
- backend | ||
- frontend | ||
- base-image | ||
env_file: | ||
- .env.local | ||
|
||
master: | ||
image: crawlabteam/crawlab:${CRAWLAB_TAG:-develop} | ||
environment: | ||
CRAWLAB_NODE_MASTER: "Y" | ||
CRAWLAB_MONGO_HOST: "mongo" | ||
ports: | ||
- "${CRAWLAB_PORT:-8082}:8080" | ||
depends_on: | ||
- mongo | ||
env_file: | ||
- .env.local | ||
|
||
worker: | ||
image: crawlabteam/crawlab:${CRAWLAB_TAG:-develop} | ||
environment: | ||
CRAWLAB_NODE_MASTER: "N" | ||
CRAWLAB_MASTER_HOST: "master" | ||
depends_on: | ||
- master | ||
env_file: | ||
- .env.local | ||
|
||
mongo: | ||
image: mongo:5 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,25 @@ | ||
#!/bin/bash | ||
|
||
# version | ||
version="106.0.5249.61" | ||
version="stable" | ||
|
||
# deps | ||
apt-get install -y unzip xvfb libxi6 libgconf-2-4 | ||
apt-get install -y xvfb libxi6 libgconf-2-4 | ||
|
||
# chrome | ||
wget -q "http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${version}-1_amd64.deb" | ||
apt-get -y install "./google-chrome-stable_${version}-1_amd64.deb" | ||
echo `google-chrome --version` | ||
rm -f "./google-chrome-stable_${version}-1_amd64.deb" | ||
# install chrome | ||
npx @puppeteer/browsers install chrome@${version} | ||
|
||
# verify chrome version | ||
if [[ ! "$(google-chrome --version)" =~ ^Google\ Chrome\ ${version} ]]; then | ||
echo "ERROR: chrome version does not match. expected: \"Google Chrome ${version}\", but actual is \"$(google-chrome --version)\"" | ||
exit 1 | ||
fi | ||
|
||
# chromedriver | ||
wget "https://chromedriver.storage.googleapis.com/${version}/chromedriver_linux64.zip" | ||
unzip chromedriver_linux64.zip | ||
mv chromedriver /usr/local/bin/chromedriver | ||
chown root:root /usr/local/bin/chromedriver | ||
chmod +x /usr/local/bin/chromedriver | ||
# install chromedriver | ||
npx @puppeteer/browsers install chromedriver@${version} | ||
|
||
# verify chromedriver version | ||
if [[ ! "$(chromedriver --version)" =~ ^ChromeDriver\ ${version} ]]; then | ||
echo "ERROR: chromedriver version does not match. expected: \"ChromeDriver ${version}\", but actual is \"$(chromedriver --version)\"" | ||
exit 1 | ||
fi |
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 was deleted.
Oops, something went wrong.
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,2 +1,33 @@ | ||
# Ignore the .npmrc file | ||
.npmrc | ||
.npmrc | ||
|
||
# Ignore node_modules | ||
node_modules | ||
|
||
# local env files | ||
.env.local | ||
.env.*.local | ||
|
||
# Editor directories and files | ||
.idea | ||
.vscode | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
# Log files | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
|
||
# Ignore stats.html | ||
stats.html | ||
|
||
# Ignore .turbo | ||
.turbo | ||
|
||
# Ignore tmp directory | ||
tmp/ |