Skip to content

Commit

Permalink
copy .ssh af folder to HOME user directory (#489)
Browse files Browse the repository at this point in the history
* copy .ssh af folder to HOME user directory

* docker-compose files use now v.1.0.8
  • Loading branch information
ampuerin authored Nov 8, 2023
1 parent 5ba402b commit 3fb9f82
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@
ADD_HOST = f"ssh-keyscan {CUSTOM_SSH_HOST} >> /usr/local/airflow/.ssh/known_hosts"
CONFIG_SSH_HOST = f"echo Host {CUSTOM_SSH_HOST} > /usr/local/airflow/.ssh/config"
CONFIG_SSH_KEY = 'echo " IdentityFile /usr/local/airflow/.ssh/id_rsa" >> /usr/local/airflow/.ssh/config'
COPY_TO_USER_DIR = "cp -r /usr/local/airflow/.ssh $HOME/"
os.system(ADD_KEY)
os.system(ADD_HOST)
os.system(CONFIG_SSH_HOST)
os.system(CONFIG_SSH_KEY)
os.system(COPY_TO_USER_DIR)

# Install custom python package if requirements.txt is present
if os.path.isfile("/requirements.txt"):
Expand Down
4 changes: 2 additions & 2 deletions docker-compose-cornflow-celery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ x-airflow-common:
&airflow-common
# In order to add custom dependencies or upgrade provider packages you can use your extended image.
# Comment the image line and uncomment the "build" and "context" lines below, Then run `docker-compose build` to build the images.
image: baobabsoluciones/airflow:latest
image: baobabsoluciones/airflow:release-v1.0.8
platform: linux/amd64
#build:
#context: ./cornflow-server/airflow_config
Expand Down Expand Up @@ -64,7 +64,7 @@ x-cornflow-common:
&cornflow-common
# In order to add custom dependencies or upgrade provider packages you can use your extended image.
# Comment the image line and uncomment the "build" and "context" lines below, Then run `docker-compose build` to build the images.
image: baobabsoluciones/cornflow:release-v1.0.7
image: baobabsoluciones/cornflow:release-v1.0.8
platform: linux/amd64
#build:
#context: ./cornflow-server
Expand Down
4 changes: 2 additions & 2 deletions docker-compose-cornflow-ldap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ x-airflow-common:
&airflow-common
# In order to add custom dependencies or upgrade provider packages you can use your extended image.
# Comment the image line and uncomment the "build" and "context" lines below, Then run `docker-compose build` to build the images.
image: baobabsoluciones/airflow:latest
image: baobabsoluciones/airflow:release-v1.0.8
platform: linux/amd64
#build:
#context: ./cornflow-server/airflow_config
Expand Down Expand Up @@ -68,7 +68,7 @@ x-cornflow-common:
&cornflow-common
# In order to add custom dependencies or upgrade provider packages you can use your extended image.
# Comment the image line and uncomment the "build" and "context" lines below, Then run `docker-compose build` to build the images.
image: baobabsoluciones/cornflow:release-v1.0.7
image: baobabsoluciones/cornflow:release-v1.0.8
platform: linux/amd64
#build:
#context: ./cornflow-server
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ x-airflow-common:
&airflow-common
# In order to add custom dependencies or upgrade provider packages you can use your extended image.
# Comment the image line and uncomment the "build" and "context" lines below, Then run `docker-compose build` to build the images.
image: baobabsoluciones/airflow:latest
image: baobabsoluciones/airflow:release-v1.0.8
platform: linux/amd64
#build:
#context: ./cornflow-server/airflow_config
Expand Down Expand Up @@ -60,7 +60,7 @@ x-cornflow-common:
&cornflow-common
# In order to add custom dependencies or upgrade provider packages you can use your extended image.
# Comment the image line and uncomment the "build" and "context" lines below, Then run `docker-compose build` to build the images.
image: baobabsoluciones/cornflow:release-v1.0.7
image: baobabsoluciones/cornflow:release-v1.0.8
platform: linux/amd64
#build:
#context: ./cornflow-server
Expand Down

0 comments on commit 3fb9f82

Please sign in to comment.