pycharm unable to find docker compose v2 path when setting project interpreter - docker

When I try to add a new project interpreter using docker compose service - I get following error:
No such file or directory in configuration files

Related

Unable to enable php-yaml for php 8.0 in ddev

After creating directory structure for Drupal9,
ddev config --project-type=drupal9 --docroot=web --create-docroot
i created the project, a Drupal distribution Varbase Starter Kit in this directory using ddev:
ddev composer create Vardot/varbase-project:~9 --no-dev --no-interaction
I did the necessary configurations and changed the name and docroot (note: Varbase uses the directory called docroot instead of web) of the project in config.yaml
Then while i was trying to install the distribution via browser i had a warning telling me that PHP extension YAML is missing.
So according to instructions in ddev documentation i added the package to Docker image by adding the following line to config.yaml:
webimage_extra_packages: [php-yaml]
Then in order to enable the extension i created a php directory in .ddev directory and added my configuration with an .ini file that contains the following lines:
[PHP]
extension=yaml.so
I restarted ddev but YAML extension was still not enabled.
I checked and saw that php-yaml package was successfully installed but was not enabled.
when i list the PHP modules with the command ddev php -m yaml is not listed and i get the following warning:
PHP Warning: PHP Startup: Unable to load dynamic library 'yaml.so' (tried: /usr/lib/php/20200930/yaml.so (/usr/lib/php/20200930/yaml.so: cannot open shared object file: No such file or directory), /usr/lib/php/20200930/yaml.so.so (/usr/lib/php/20200930/yaml.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
It seems that yaml.so file cannot be found (or accessed?) so it cannot be enabled.
How can I fix this?
I'm using Linux Mint (LMDE5) and website is Drupal9 with PHP 8.0, nginx-fpm, mariadb 10.3
The package you want is just php8.0-yaml, so in .ddev/config.yaml:
webimage_extra_packages: [php8.0-yaml]
No additional configuration is required (you don't have to change php configuration) just ddev restart. After you do that you'll see yaml listed in ddev php -i

Serverless deploy package

I am trying to bypass the package step and uses the existing package to deploy and update CloudFormation stacks.
I have created serverless package by using following command:
serverless package --package package
Got package directory with the following files
cloudformation-template-create-stack.json
cloudformation-template-update-stack.json
service-api.zip
serverless-state.json
Trying to deploy with following command:
SLS_DEBUG=* serverless deploy --package package
getting below error
ServerlessError: This command can only be run in a Serverless service directory. Make sure to reference a valid config file in the current working directory if you're using a custom config file
at PluginManager.validateServerlessConfigDependency (/usr/local/lib/node_modules/serverless/lib/classes/PluginManager.js:546:15)
at PluginManager.invoke (/usr/local/lib/node_modules/serverless/lib/classes/PluginManager.js:474:10)
at /usr/local/lib/node_modules/serverless/lib/classes/PluginManager.js:524:24
I have tried with copy serverless.yml into package directory, But no luck
Please execute
SLS_DEBUG=* serverless deploy --package package
from the directory where you've serverless.yml file. It should work.
From the name of the file it looks like you've mis-spelled serveless.yml. Please rename it to serverless.yml.

Resource file “**/*.resx” cannot be found. (MSB3552) When building docker file

When building a docker file you get the error Resource file “**/*.resx” cannot be found. (MSB3552). This occurs when you have the docker file in the same directory you are trying to copy using the COPY . . function in the docker file.
The solution is to move the docker file up to a parent directory.

Unable to configure the Docker daemon with file (Configuration file

I am new to docker and trying to run rootless containers with nvidia runtime. However, I am not able to run it due to the below error as shown in screenshot below
My config file looks like as shown below
I have created a configuration file (config.json) with data root parameter and have placed this file under "config" folder and have updated this path in the 'Taskfile.yml' file. But still for some reason, it throws error as no such file or directory. Can you please help me with this? Am new and just getting my hands dirty with this. The below code indicates the update that I made in Taskfile.yml file
dockerd:
cmds:
- ./boot/dockerd.sh --config-
file="/data/volume02/selva/usernetes/config/config.json"
I would expect to be able to run the docker server without any error.

Docker: Unable to start docker images/ unable to add path /etc/<folder_name>

I'm fairly new to docker and development so I was hoping I could get some help here. I've seen this post but I don't quite understand the highlighted section and can't see how it applies to me. Basically, I get an error message:
ERROR: for webserver Cannot start service webserver: b'Mounts denied: \r\nThe
paths /etc/airflow and /etc/airflow\r\nare not shared from OS X and are not
known to Docker.\r\nYou can configure shared paths from Docker ->
Preferences... -> File Sharing.\r\nSee https://docs.docker.com/docker-for-
mac/osxfs/#namespaces for more info.\r\n.'
This is my current file sharing setup in Docker. I tried adding /etc/airflow in the Docker for Mac file sharing preferences but I was unable to apply changes and restart because /etc is under /private. I've tried replacing /private with /etc/airflow but the problem persists. Any idea what I can do?

Resources