Hasan-J commented on PR #25251:
URL: https://github.com/apache/airflow/pull/25251#issuecomment-1193364928

   Hello, I discovered something about how codespaces work as I was trying to 
use `local-all-sources.yml`.
   
   The codespaces container creation kept failing without any useful logs (just 
container creation failed), there was something happening inside of it, 
specifically during the execution of `/entrypoint`. The problem was because it 
didn't find the sh scripts it needed:
   ```
   Container started
   /entrypoint: line 6: 
/opt/airflow/scripts/in_container/_in_container_script_init.sh: No such file or 
directory
   ```
   It looks like the mount was successful but with weird behavior, so I 
overridden the entrypoint to just sleep and do nothing and it worked I was 
inside the container, BUT `/opt/airflow` was empty.
   
   I dug a little more in the docs and found this 
https://code.visualstudio.com/remote/advancedcontainers/add-local-file-mount
   
   
![image](https://user-images.githubusercontent.com/18291326/180656605-88e6b43c-767a-4175-b591-a575fcc71864.png)
   
   Given these limitations:
   - Specifying `workspaceFolder` has no effect, codespaces will open 
`workspaces/airflow` folder by default.
   - Can't do local bind mounts 
   
   How does working in `workspaces/airflow` only on codespaces sound like? or 
we could create a symlink at `/opt/airflow`, but it could be inconvenient 
because you'd end up with opened folder at `workspaces/airflow` and a terminal 
at `/opt/airflow`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to