-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update deps and use single browser at the cost of collecting home pag…
…es synchronously
- Loading branch information
Showing
6 changed files
with
106 additions
and
118 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 |
---|---|---|
@@ -1,42 +1,31 @@ | ||
version: '3.3' | ||
version: '3.8' | ||
|
||
services: | ||
core: | ||
build: | ||
dockerfile: docker/Dockerfile | ||
context: . | ||
container_name: REcrawler | ||
container_name: recrawler | ||
environment: | ||
- HOST=172.28.1.2 | ||
- HOST=db | ||
- PORT=3306 | ||
- MYSQL_DATABASE=recrawler | ||
- MYSQL_USER=root | ||
- MYSQL_ROOT_PASSWORD=passwd | ||
entrypoint: ["tail", "-f", "/dev/null"] | ||
volumes: | ||
- .:/usr/src/app | ||
networks: | ||
testing_net: | ||
ipv4_address: 172.28.1.1 | ||
depends_on: ["db"] | ||
|
||
db: | ||
container_name: db_scrapper | ||
image: mysql:8.0 | ||
image: mysql:8.0.35 | ||
platform: linux/amd64 | ||
environment: | ||
- MYSQL_DATABASE=recrawler | ||
- MYSQL_ROOT_PASSWORD=passwd | ||
ports: | ||
- 33069:3306 | ||
- 3306:3306 | ||
restart: always | ||
volumes: | ||
- ./docker/mysql/scripts:/docker-entrypoint-initdb.d:rw | ||
networks: | ||
testing_net: | ||
ipv4_address: 172.28.1.2 | ||
|
||
networks: | ||
testing_net: | ||
ipam: | ||
driver: default | ||
config: | ||
- subnet: 172.28.0.0/16 | ||
- ./docker/mysql/scripts:/docker-entrypoint-initdb.d:rw |
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,10 +1,11 @@ | ||
FROM adoptopenjdk/maven-openjdk11:latest | ||
FROM maven:3.9.5-amazoncorretto-17-debian-bookworm | ||
|
||
RUN apt-get update && apt-get install mysql-client -y | ||
RUN apt update && apt upgrade -y | ||
|
||
# Install project dependencies and keep sources | ||
WORKDIR /usr/src/app | ||
|
||
# install maven dependency packages (keep in image) | ||
COPY . . | ||
RUN mvn clean package | ||
RUN mvn clean package && \ | ||
mvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI -D exec.args="install --with-deps chromium" |
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