-
Notifications
You must be signed in to change notification settings - Fork 2
Feature : docker proxy 추가 #20
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
Open
seoyeong200
wants to merge
24
commits into
brickstudy:main
Choose a base branch
from
seoyeong200:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains hidden or 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
Collaborator
Author
instagram dag 구조status
thoughts
|
Collaborator
Author
selenium in airflowtry 1. pythonvirtualoperator 🔴
try2. remote webdriver with dockeroperator
try3. airflow.operators.selenium_plugin import SeleniumOperator |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
description
1. docker proxy container 추가
dockeroperator 쓰려면 에어플로우 안에서 호스트에 있는 도커 데몬이랑 통신해야돼서 프록시용 컨테이너 필요 -> 정상 실행 확인 완료 (airlflow dag 실행하면 지정한 search keyword 로 트윗 데이터 수집 후 csv파일로 생성해서 마운트한 경로에 저장됨)
context
(1) docker 측에서 보안적으로 매우 권장하지 않는 방법 (2) 호스트 머신 임의 configuration 필요, 적절하지 않음
rather
프록시 용도로 하나 띄워서 dockeroperator 통신 관할
todo
dag 코드 안에서 에어플로우 컨테이너 쪽 경로말고 호스트머신 경로 침조가 필요해서 코드 수정 필요(현재 스크립트에 테스트 쪽 호스트머신 절대겅로를 스트링으로 해놓은 상태)
2. dynamic task mapping
https://airflow.apache.org/docs/apache-airflow/stable/authoring-and-scheduling/dynamic-task-mapping.html
s3에서 brand 이름 갖고와서 동적으로 crawler task에 할당하는 동작 필요