Skip to content
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

Disclaimers #3

Closed
wants to merge 528 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
528 commits
Select commit Hold shift + click to select a range
bc469b1
retest
akspha Mar 30, 2020
c797095
Merge pull request #5 from AgentIQ/staging
akspha Mar 30, 2020
560057a
Update Dockerfile
JaekwanLee Mar 30, 2020
29f2219
Merge pull request #7 from AgentIQ/update-version-1.10.9
mchow Mar 30, 2020
bb6d77f
Merge pull request #8 from AgentIQ/release/0.90.4-staging
akspha Mar 30, 2020
17e0abd
Merge pull request #10 from AgentIQ/release/0.90.4-backmerge
akspha Mar 31, 2020
ab31e08
Add sample fernet key setting to persist variable (#9)
JaekwanLee Apr 2, 2020
352d7f4
Remove s3 usage (#12)
JaekwanLee Apr 6, 2020
8f16713
update emails (#13)
JaekwanLee Apr 6, 2020
9a145c8
Merge pull request #16 from AgentIQ/release/0.91.0-qae
akspha Apr 27, 2020
3675141
Merge branch 's1' of github.com:AgentIQ/aiq-airflow into s1
akspha Apr 29, 2020
d44e038
Add a line (#18)
JaekwanLee Apr 29, 2020
5c5e4bb
Update airflow failure fix (#19)
JaekwanLee Apr 29, 2020
df2c356
Merge pull request #20 from AgentIQ/release/0.91.1-qae
akspha Apr 29, 2020
6b62e00
Merge pull request #21 from AgentIQ/release/0.91.0-staging
akspha Apr 30, 2020
cf2b9c0
Merge pull request #22 from AgentIQ/release/0.91.0-prod
akspha Apr 30, 2020
2a1a386
Merge branch 's1' of github.com:AgentIQ/aiq-airflow into s1
akspha May 4, 2020
f3eb755
Start airflow seeding readme
akspha May 4, 2020
6fb5d37
DAGs on
akspha May 4, 2020
3cf9dbc
update script to generate variables (#25)
JaekwanLee May 5, 2020
6b845ff
update doc to persist variable (#24)
JaekwanLee May 12, 2020
5dc2f54
add runtime var import for airflow
agentiqd May 13, 2020
440c368
update flow
agentiqd May 13, 2020
3212a1d
Merge pull request #27 from AgentIQ/F/add-import-airflow
agentiqd May 14, 2020
426f1aa
Merge branch 's1' of github.com:AgentIQ/aiq-airflow into s1
akspha May 26, 2020
27c4a21
fix airflow lint
akspha May 26, 2020
2896336
f string
akspha May 26, 2020
3cf174f
Merge pull request #29 from AgentIQ/B/lint_fix
akspha May 26, 2020
87e76c8
Merge pull request #30 from AgentIQ/release/0.92.1-develop
akspha May 26, 2020
7f69c70
Add dag for agent events (#31)
JaekwanLee May 28, 2020
8c8660f
Add python-tool and remove duplicate (#32)
JaekwanLee May 28, 2020
e646b92
Update variables.json (#34)
agentiqd May 28, 2020
d67c2f4
Ag 6013 change s3 bucket path (#33)
JaekwanLee May 28, 2020
9fe3904
Run simple stats in airflow (#35)
JaekwanLee May 29, 2020
c385061
Update python-tool (#36)
JaekwanLee May 29, 2020
54ae5d2
Add stats configuration as airflow variables (#37)
JaekwanLee May 29, 2020
743b1c1
Merge pull request #38 from AgentIQ/release/0.92.5-staging
akspha May 31, 2020
e18eeb0
Merge pull request #39 from AgentIQ/release/0.92.0-prod
akspha May 31, 2020
7396b80
Run customer events from airflow dag (#40)
JaekwanLee Jun 2, 2020
b8d254c
Run topic clustering in airflow (#41)
JaekwanLee Jun 2, 2020
ae676f4
remove test dag file (#42)
JaekwanLee Jun 2, 2020
8527081
update python tool (#43)
JaekwanLee Jun 3, 2020
836ed39
fix unwanted error (#44)
JaekwanLee Jun 5, 2020
154084c
Use python instead of python3 (#45)
JaekwanLee Jun 5, 2020
da8ff38
Add ai manager environment variables (#46)
JaekwanLee Jun 5, 2020
7552e0c
Add dag documentation (#48)
JaekwanLee Jun 5, 2020
39f0559
Merge pull request #50 from AgentIQ/release/0.93.0-develop
akspha Jun 9, 2020
f02797c
pull request template
Jun 12, 2020
d685cfa
Merge pull request #52 from AgentIQ/SOC2
mchow Jun 15, 2020
cfb4cd6
suggestions dags
akspha Jun 15, 2020
7c5e479
Merge pull request #54 from AgentIQ/F/suggestions_2
akspha Jun 15, 2020
0341150
update pytools and include code to do so
akspha Jun 16, 2020
d3cc758
Merge pull request #56 from AgentIQ/B/submodule_update
akspha Jun 16, 2020
001589e
No catchup. Should start upon deployment (#55)
JaekwanLee Jun 16, 2020
a1615cd
Merge pull request #57 from AgentIQ/release/0.94.1-develop
akspha Jun 17, 2020
3b56a8f
pull latest pytools
akspha Jun 18, 2020
f584272
Merge pull request #58 from AgentIQ/B/update_pytools
akspha Jun 18, 2020
b02112f
bump for stopwords
akspha Jun 19, 2020
c87bf5a
Merge pull request #59 from AgentIQ/B/update_pytools
akspha Jun 19, 2020
a2c34d9
bump pytools with pull ai configs fix
akspha Jun 19, 2020
c0dc8d1
Merge pull request #60 from AgentIQ/B/update_pytools
akspha Jun 19, 2020
e3c52f6
bump for gensim
akspha Jun 19, 2020
4a7d624
Merge pull request #61 from AgentIQ/B/update_pytools
akspha Jun 19, 2020
0fe47d7
bump for generate model
akspha Jun 19, 2020
d00e968
Merge pull request #62 from AgentIQ/B/update_pytools
akspha Jun 19, 2020
cc2d710
tken
akspha Jun 19, 2020
d9842f7
Merge pull request #63 from AgentIQ/B/base_api_token
akspha Jun 19, 2020
15b02c9
download nltk models
akspha Jun 19, 2020
d6029be
bump pytool
akspha Jun 19, 2020
203a1bd
lint fix
akspha Jun 19, 2020
f03ad92
Merge pull request #66 from AgentIQ/HF/pytoolUpdate
akspha Jun 19, 2020
4bc0282
Merge pull request #65 from AgentIQ/F/download_models_dag
akspha Jun 19, 2020
b71038f
Merge pull request #67 from AgentIQ/release/0.94.2-develop
akspha Jun 19, 2020
e55e050
Correct cron schedule to local time (#68)
JaekwanLee Jun 26, 2020
fb85a30
Merge pull request #69 from AgentIQ/release/0.94.4-backmerge
akspha Jun 27, 2020
bf7dd25
Merge pull request #70 from AgentIQ/release/0.94.4-staging
akspha Jun 29, 2020
88105b2
timedelta
akspha Jun 29, 2020
20a43d0
Merge pull request #71 from AgentIQ/B/exec_dates
akspha Jun 29, 2020
c1cfc1b
delta and then format
akspha Jun 29, 2020
efe8ff5
dates
akspha Jun 30, 2020
fa5d8db
base-api token
akspha Jun 30, 2020
ce4c93b
Add how to add env
JaekwanLee Jun 30, 2020
a82151d
Merge pull request #72 from AgentIQ/B/exec_dates
akspha Jun 30, 2020
64561ca
Merge pull request #74 from AgentIQ/how-to-add-env
akspha Jun 30, 2020
2253088
Merge pull request #75 from AgentIQ/release/0.94.4-prod
akspha Jul 1, 2020
8bccd62
Merge pull request #76 from AgentIQ/release/0.94.5-backmerge
akspha Jul 1, 2020
50990d1
bump pytools and make corresponding changes
akspha Jul 1, 2020
2195051
TIMEZONE var
akspha Jul 1, 2020
54d728d
restore space
akspha Jul 1, 2020
9e2d935
Merge pull request #77 from AgentIQ/B/UpPyTool
akspha Jul 1, 2020
b3990df
Merge pull request #78 from AgentIQ/release/0.94.6-develop
akspha Jul 1, 2020
ab33b15
Merge pull request #79 from AgentIQ/release/0.94.6-staging
akspha Jul 1, 2020
5976fe1
Merge pull request #80 from AgentIQ/release/0.94.6-prod
akspha Jul 1, 2020
82153f5
bump pytool
akspha Jul 8, 2020
30fe96f
Merge pull request #81 from AgentIQ/bumpPyTool
akspha Jul 8, 2020
db17a9c
bump up pytools
akspha Jul 9, 2020
f8723c8
Merge pull request #82 from AgentIQ/SubModuleBump
akspha Jul 9, 2020
9620fa2
Merge pull request #84 from AgentIQ/release/0.95.1-develop
akspha Jul 20, 2020
ce53a6c
add config env vars
agentiqd Jul 21, 2020
c42d2ad
add config env vars
agentiqd Jul 21, 2020
d47ecff
new config
agentiqd Jul 21, 2020
386d135
integrate SMTP
agentiqd Jul 21, 2020
bd5bfce
fix lint
agentiqd Jul 21, 2020
506e324
cleanup
agentiqd Jul 22, 2020
2f9d982
test dag
agentiqd Jul 22, 2020
ba6f0b6
test bad export
agentiqd Jul 22, 2020
d0da188
export at startup
agentiqd Jul 22, 2020
8cd6e63
change email
agentiqd Jul 22, 2020
ea5a125
Merge pull request #85 from AgentIQ/release/0.95.1-staging
akspha Jul 22, 2020
8744467
Merge pull request #86 from AgentIQ/release/0.95.1-prod
akspha Jul 23, 2020
a0ea90f
update pytool
akspha Jul 24, 2020
83db943
Merge pull request #87 from AgentIQ/upPyTool
akspha Jul 24, 2020
967d0a4
bump pytool develop
akspha Jul 24, 2020
11aa461
Merge pull request #89 from AgentIQ/HF/updatedPytool
akspha Jul 24, 2020
dea786a
Merge pull request #90 from AgentIQ/release/0.95.3-staging
akspha Jul 24, 2020
91bd730
Merge pull request #91 from AgentIQ/release/0.95.3-prod
akspha Jul 24, 2020
d7c7968
Merge pull request #92 from AgentIQ/release/0.96.0-backmerge
akspha Jul 31, 2020
c8e419f
Merge pull request #93 from AgentIQ/release/0.96.1-develop
akspha Aug 3, 2020
5221af7
Move Api export to airflow (#47)
JaekwanLee Aug 3, 2020
52c33bc
Update python tool (#94)
JaekwanLee Aug 4, 2020
a1ab4c9
update python tool (#95)
JaekwanLee Aug 5, 2020
04f6e05
Enable email on failure for some dags (#96)
JaekwanLee Aug 5, 2020
c4a6a7a
validation helpers
akspha Aug 5, 2020
6d72d83
validate exports task
akspha Aug 5, 2020
31512cb
import validator into dag
akspha Aug 6, 2020
1862777
output of backfill = input for db push
akspha Aug 7, 2020
4142df5
space
akspha Aug 7, 2020
1eee828
space
akspha Aug 7, 2020
44edcf7
Merge pull request #97 from AgentIQ/B/onboarding_dag_fix
akspha Aug 7, 2020
a5b9921
Revert "make sure uuids go in for events"
akspha Aug 7, 2020
d764265
Merge pull request #98 from AgentIQ/release/0.96.1-uat
akspha Aug 7, 2020
a53d395
Merge pull request #99 from AgentIQ/revert-97-B/onboarding_dag_fix
akspha Aug 7, 2020
d2b4ad9
resolve merge conflicts
agentiqd Aug 11, 2020
f0b4c6c
Merge pull request #101 from AgentIQ/release/0.96.0-prod
akspha Aug 11, 2020
275e970
primary agent validation for customer and approved templates from etl…
akspha Aug 11, 2020
7de88b6
primary agent validation for customer and approved templates from etl…
akspha Aug 11, 2020
89179e2
logging changes
akspha Aug 11, 2020
8327a7d
ENV from Var and single quots
akspha Aug 11, 2020
71ac630
logging instead of print
akspha Aug 11, 2020
1a747a4
invalid indicator
akspha Aug 11, 2020
1ddd8c7
lint fix
akspha Aug 11, 2020
64b1336
lint fix
akspha Aug 11, 2020
850bfc9
more validation fields
akspha Aug 11, 2020
ba7d3a9
implement custom emailer
agentiqd Aug 11, 2020
dad03a7
date normalization and then comparison
akspha Aug 12, 2020
68d6829
remove path insert
akspha Aug 12, 2020
1649a1d
Merge pull request #103 from AgentIQ/F/custom-emailer
agentiqd Aug 12, 2020
d5e9b9d
lint lint
agentiqd Aug 12, 2020
92a8048
moar lint
agentiqd Aug 12, 2020
c42b9de
update pytool
akspha Aug 13, 2020
f940419
resolve conflicts
akspha Aug 13, 2020
c46c1c4
use single quotes instead of double quotes
akspha Aug 13, 2020
8269208
Merge pull request #102 from AgentIQ/B/validation
akspha Aug 13, 2020
8b94774
connect run validate to exports dag
akspha Aug 14, 2020
f941d6d
set env for each task
akspha Aug 14, 2020
0b59c21
name cahnge
akspha Aug 14, 2020
e6e6a2e
Merge pull request #104 from AgentIQ/B/validation
akspha Aug 14, 2020
07639bb
Merge pull request #105 from AgentIQ/release/0.97.0-qae
akspha Aug 17, 2020
d9818d0
upgrade emailer
agentiqd Aug 19, 2020
1cd31fe
implement email callback as default
agentiqd Aug 19, 2020
3e08ce6
Merge branch 's1' of github.com:AgentIQ/aiq-airflow into s1
agentiqd Aug 19, 2020
3497862
lint
agentiqd Aug 19, 2020
649e637
Merge pull request #107 from AgentIQ/release/0.97.0-uat
akspha Aug 24, 2020
cd18f96
Merge pull request #108 from AgentIQ/release/0.97.0-prod
akspha Aug 25, 2020
76006bb
Merge branch 'master' of github.com:AgentIQ/aiq-airflow into s1
agentiqd Aug 31, 2020
d902880
update email to
agentiqd Aug 31, 2020
c3e134d
retest
akspha Aug 31, 2020
42ac6c9
Merge pull request #109 from AgentIQ/release/0.98.0-qae
akspha Aug 31, 2020
7c27369
update readme
akspha Sep 1, 2020
2449efb
submodule update comment
akspha Sep 1, 2020
5125994
rearrange vars generation doc
akspha Sep 1, 2020
ace3558
Merge pull request #111 from AgentIQ/release/0.98.0-uat
akspha Sep 8, 2020
8f5422a
update pytools and gitmodules
akspha Sep 16, 2020
2ef896c
populate ids before fetching events
akspha Sep 16, 2020
5983c2b
Merge pull request #23 from AgentIQ/B/seed_readme
akspha Sep 16, 2020
225b801
python3 and update pytools
akspha Sep 16, 2020
a69f30a
lint fix
akspha Sep 17, 2020
989d5a4
python
akspha Sep 17, 2020
88c66ac
Merge pull request #115 from AgentIQ/F/user_mapping_task
akspha Sep 17, 2020
22ac30a
Merge pull request #110 from AgentIQ/updateDoc
akspha Sep 17, 2020
0a7fb2a
fix errors (#118)
JaekwanLee Sep 18, 2020
dc37a61
do not catch up (#120)
JaekwanLee Sep 18, 2020
7f65594
return True if nothing to validate (#121)
JaekwanLee Sep 18, 2020
927fe16
Merge pull request #123 from AgentIQ/release/0.99.0-uat
akspha Sep 21, 2020
cd360c6
bump pytool
akspha Sep 23, 2020
2dd6d7e
Merge pull request #126 from AgentIQ/update_pytool
akspha Sep 23, 2020
fa8438b
Merge pull request #125 from AgentIQ/release/0.100.0-backmerge
akspha Sep 23, 2020
5f733de
update cmd line interaction with remote connection (#122)
JaekwanLee Sep 23, 2020
ea30a71
bump python tool for adding tags in simple stats (#127)
JaekwanLee Sep 24, 2020
bef8a0d
recover startup.sh (#128)
JaekwanLee Sep 24, 2020
cadee2a
retest
akspha Sep 29, 2020
2f32b00
update pytoool
akspha Sep 29, 2020
5478c6a
Merge pull request #130 from AgentIQ/release/0.100.1-develop
akspha Sep 29, 2020
3f65a6c
fix all
agentiqd Oct 2, 2020
64d851e
Merge pull request #131 from AgentIQ/F/fix-airflow-startup
agentiqd Oct 2, 2020
ee6bb03
Merge pull request #132 from AgentIQ/release/0.100.2-develop
akspha Oct 7, 2020
5d135ba
Merge pull request #133 from AgentIQ/release/0.100.0-staging
akspha Oct 8, 2020
16ad9d8
fetch events from last 7 days for backfill, bump pytool
akspha Nov 3, 2020
971149a
Merge pull request #137 from AgentIQ/B/customer_events_time
akspha Nov 4, 2020
897248a
Merge pull request #140 from AgentIQ/release/0.102.0-develop
akspha Nov 10, 2020
e8c3a07
bump pytool
akspha Nov 11, 2020
0269233
Merge pull request #141 from AgentIQ/bump_ptool
akspha Nov 11, 2020
3327bfd
Merge pull request #142 from AgentIQ/release/0.102.1-develop
akspha Nov 11, 2020
2dceb7b
Merge pull request #143 from AgentIQ/release/0.102.0-staging
akspha Nov 16, 2020
9b10a8f
bump pytools
akspha Dec 4, 2020
ea97e93
Merge pull request #148 from AgentIQ/bump_ptool
akspha Dec 4, 2020
972ba61
Merge pull request #149 from AgentIQ/release/0.103.5-develop
akspha Dec 5, 2020
fb35691
Merge pull request #150 from AgentIQ/release/0.103.5-staging
akspha Dec 5, 2020
1aba8ef
bump dynamo
akspha Feb 24, 2021
267f091
bump base app image
agentiqd Feb 25, 2021
3678721
bump submod
agentiqd Feb 25, 2021
bb79523
bump base img
agentiqd Feb 26, 2021
7c5eb0f
bump submod rnd 2
agentiqd Feb 26, 2021
7b44210
pull aiq-dynamo with pynamo update
akspha Mar 3, 2021
0a26096
Merge branch 'F/bumpDynamo' of github.com:AgentIQ/aiq-airflow into F/…
akspha Mar 3, 2021
73a3d95
urllib update
akspha Mar 3, 2021
9c618ef
test_table update
akspha Mar 3, 2021
2b94d6c
Merge pull request #168 from AgentIQ/F/bumpDynamo
akspha Mar 3, 2021
b024a10
up submodules
akspha Mar 5, 2021
5ee18de
Merge pull request #171 from AgentIQ/B/bump_pytool
akspha Mar 5, 2021
c2e7ba4
Merge pull request #172 from AgentIQ/release/0.110.1-s1-develop
akspha Mar 5, 2021
327d174
retest
akspha Mar 10, 2021
a10c13c
Merge pull request #173 from AgentIQ/release/0.110.0-develop-staging
akspha Mar 10, 2021
f5ff50b
change export dag dates, bump pytool
akspha Apr 29, 2021
e91ad07
UPDATE CURl
agentiqd Apr 29, 2021
680e68d
Pin docker
agentiqd Apr 29, 2021
a2c098b
update docker install to fix install + allow for future version pinning
agentiqd Apr 30, 2021
c674496
add update
agentiqd Apr 30, 2021
a7dee59
no sudo
agentiqd Apr 30, 2021
64eb87f
remove cleanup
agentiqd Apr 30, 2021
7955afd
bump base image to buster and re-try install script
agentiqd May 3, 2021
3f34f13
swap base image to buster os 3.6
agentiqd May 5, 2021
f3cccae
bump aiq-dynamo submodule
akspha May 6, 2021
9d262f0
Merge pull request #184 from AgentIQ/HF/exports_dag_date
akspha May 6, 2021
b2a363e
Merge pull request #188 from AgentIQ/release/0.114.2-staging-develop-…
akspha May 11, 2021
c2cfa03
Merge pull request #190 from AgentIQ/release/0.115.0-develop-s1
akspha May 12, 2021
3f833af
DAG for customer selections
akspha May 21, 2021
fc0ed6c
bump pytools
akspha May 26, 2021
b6db815
start date in past
akspha May 26, 2021
ae82d6b
email on failure and dag name
akspha May 26, 2021
9421b4c
Merge pull request #194 from AgentIQ/F/customer_selections_dag
akspha May 26, 2021
3255cf2
execute format should match script format
akspha May 26, 2021
c1bb21d
pull pytools
akspha May 27, 2021
feadd1d
Merge pull request #196 from AgentIQ/F/customer_selections_dag
akspha May 27, 2021
0cb132a
bump pytools
akspha May 27, 2021
fc2a43a
Merge pull request #197 from AgentIQ/F/customer_selections_dag
akspha May 27, 2021
55478c8
update aiq-dynamo-python
slaveniq Jun 9, 2021
3ac1eb5
update aiq-dynamo-python
slaveniq Jun 10, 2021
e1b2a2b
update python-tools
slaveniq Jun 10, 2021
3b0f254
update python-tools
slaveniq Jun 14, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
AIQ_AIRFLOW_DB_HOST=postgres
AIQ_AIRFLOW_DB_PORT=5432
AIQ_AIRFLOW_DB_USER=postgres
AIQ_AIRFLOW_DB_PASSWORD=password
AIQ_AIRFLOW_DB_NAME=airflow
ENVIRONMENT=demo4
FERNET_KEY=YAMaRg_MDt0TA29-QtxfRlxrl9X-9ADgqBc4jAAY8Ow=
18 changes: 18 additions & 0 deletions .github/issue_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
## Expected Behavior


## Actual Behavior


## Steps to Reproduce the Problem

1.
1.
1.

## Specifications

- Version:
- Platform:
- Subsystem:

28 changes: 28 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
## Description of the change

> Description here

## Type of change
- [ ] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

## Related issues

> Fix [#1]()

## Checklists

### Development

- [ ] Lint rules pass locally
- [ ] The code changed/added as part of this pull request has been covered with tests
- [ ] All tests related to the changed code pass in development

### Code review

- [ ] This pull request has a descriptive title and information useful to a reviewer. There may be a screenshot or screencast attached
- [ ] "Ready for review" label attached to the PR and reviewers mentioned in a comment
- [ ] Changes have been reviewed by at least one other engineer
- [ ] Issue from task tracker has a link to this pull request

6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,9 @@ Session.vim

# sftp configuration file
sftp-config.json

# Python
__pycache__

# other
.aws
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[submodule "python-tools"]
path = python-tools
url = ../python-tools
[submodule "aiq-dynamo-python"]
path = aiq-dynamo-python
url = ../aiq-dynamo-python
146 changes: 121 additions & 25 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,37 +1,133 @@
# VERSION 1.0
# VERSION 1.10.4
# AUTHOR: Matthieu "Puckel_" Roisil
# DESCRIPTION: Basic Airflow container
# BUILD: docker build --rm -t puckel/docker-airflow
# BUILD: docker build --rm -t puckel/docker-airflow .
# SOURCE: https://github.com/puckel/docker-airflow

FROM debian:wheezy
MAINTAINER Puckel_
#FROM docker:19.03.7-dind
FROM 036978135238.dkr.ecr.us-east-1.amazonaws.com/agentiq/app-python:3.6-buster-v1


# Never prompts the user for choices on installation/configuration of packages
ENV DEBIAN_FRONTEND noninteractive
ENV TERM linux
# Work around initramfs-tools running on kernel 'upgrade': <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=594189>
ENV INITRD No

ENV AIRFLOW_HOME /usr/local/airflow

RUN apt-get update -yqq \
&& apt-get install -yqq --no-install-recommends \
python-pip \
python-dev \
build-essential \
&& mkdir /usr/local/airflow \
&& pip install airflow \
&& airflow initdb \

# # Airflow
ARG AIRFLOW_VERSION=1.10.9
ARG AIRFLOW_USER_HOME=/usr/local/airflow
ARG AIRFLOW_DEPS=""
ARG PYTHON_DEPS=""
ENV AIRFLOW_HOME=${AIRFLOW_USER_HOME}


RUN set -ex \
&& buildDeps=' \
freetds-dev \
libkrb5-dev \
libsasl2-dev \
libssl-dev \
libffi-dev \
libpq-dev \
git \
' \
&& apt-get update -yqq \
&& apt-get upgrade -yqq

RUN apt-get install -y apt-utils
RUN apt-get install -yqq --no-install-recommends \
$buildDeps \
freetds-bin \
build-essential \
curl \
rsync \
netcat \
locales \
jq \
&& if [ -n "${PYTHON_DEPS}" ]; then pip install ${PYTHON_DEPS}; fi

RUN pip install -U setuptools wheel \
&& pip install pytz \
&& pip install pyOpenSSL \
&& pip install ndg-httpsclient \
&& pip install flake8 \
&& pip install pytest \
&& pip install pyasn1

RUN pip install apache-airflow[crypto,celery,postgres,hive,jdbc,ssh${AIRFLOW_DEPS:+,}${AIRFLOW_DEPS}]==${AIRFLOW_VERSION} \
&& pip install 'redis==3.2'

# Fix added for airflow failure
RUN pip uninstall -y SQLAlchemy && pip install SQLAlchemy==1.3.15

RUN apt-get purge --auto-remove -yqq $buildDeps \
&& apt-get autoremove -yqq --purge \
&& apt-get clean \
&& rm -rf \
/var/lib/apt/lists/* \
/tmp/* \
/var/tmp/* \
/usr/share/man \
/usr/share/doc \
/usr/share/doc-base
/var/lib/apt/lists/* \
/tmp/* \
/var/tmp/* \
/usr/share/man \
/usr/share/doc \
/usr/share/doc-base


# aws dependency
RUN apt-get install unzip && cd /tmp && \
curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip" && \
unzip awscli-bundle.zip && \
./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws && \
rm awscli-bundle.zip && rm -rf awscli-bundle

# Presently broken
RUN curl -fsSL https://get.docker.com | sh

# Let's start with some basic stuff.
RUN apt-get update && \
apt-get install -qqy \
apt-transport-https \
ca-certificates \
curl \
lxc \
iptables \
gnupg \
lsb-release

# # We should pin docker-ce* (e.g. apt-get install docker-ce=$VERSION docker-ce-cli=$VERSION containerd.io)
# RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | \
# gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg && \
# echo \
# "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
# $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null && \
# apt-get install docker-ce docker-ce-cli containerd.io


# Further dependencies should go the below
RUN apt-get install -qqy \
expect

# Define additional metadata for our image.
VOLUME /var/lib/docker


COPY script/entrypoint.sh /entrypoint.sh
COPY script/startup.sh /startup.sh
COPY ./script ${AIRFLOW_USER_HOME}/script
COPY airflow_config/airflow.cfg ${AIRFLOW_USER_HOME}/airflow.cfg
COPY ./dags ${AIRFLOW_USER_HOME}/dags
COPY Makefile ${AIRFLOW_USER_HOME}/Makefile
COPY ./tests ${AIRFLOW_USER_HOME}/tests
COPY variables.json ${AIRFLOW_USER_HOME}/variables.json
COPY ./python-tools ${AIRFLOW_USER_HOME}/python-tools
COPY ./aiq-dynamo-python ${AIRFLOW_USER_HOME}/aiq-dynamo-python

WORKDIR ${AIRFLOW_USER_HOME}
RUN pip install -r python-tools/requirements.txt
RUN pip install -r aiq-dynamo-python/requirements.txt

EXPOSE 8080 5555 8793

EXPOSE 8080
ENV PATH "$PATH:/usr/local/airflow/dags/bin"
ENV PYTHONPATH "$PYTHONPATH:$AIRFLOW_HOME/python-tools:$AIRFLOW_HOME/aiq-dynamo-python"

CMD ["airflow","webserver","-p","8080"]
ENTRYPOINT ["/entrypoint.sh"]
CMD ["/startup.sh"]
2 changes: 2 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// see documentation https://github.com/AgentIQ/AIQ-JENKINS-LIB/blob/master/README.md
backendPipeline(serviceName: 'aiq-airflow', serviceType: 'backend', swaggerValidation: false, unitTest: true)
Loading