VSCode Remote-Container extension ignore my .dockerignore file - docker

Development Environment:
VSCode Version: 1.69.2 (system setup)
Local OS Version: Windows 11 Pro. version 21H2
Remote OS Version: Debian GNU/Linux 11 (bullseye)
Remote Extension/Connection Type: SSH/Containers/WSL/Server
Extension: https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers
Issue #7007 on 31 Jul: https://github.com/microsoft/vscode-remote-release/issues/7007
VSCode Remote-Container extension ignore my .dockerignore file:
For some strange reason my .dockerignore is being ignored. Why??? ...is there a solution??? ...thxs
example repo: https://github.com/bonaccipp/Remote-Containers-ignore-my-.dockerignore.git
Example image with: Dockerfile, devcontainer.json and dockerignore

Related

workspaces folder is being mounted as read only on vscode devcontainer

I am using devcontainer vscode extension to run my development environment under windows using WSL.
For some reason, this works great on my MacOS, but on my Windows machine (under WSL) using the same .devcontainer file, the /workspaces folder (which is mounted automatically by the extension) is being mounted as read only.
$ mount | grep workspaces
/dev/sdd on /workspaces/projectname type ext4 (ro,relatime,discard,errors=remount-ro,data=ordered)
This prevents me from creating or changing files giving this output:
$ touch a
touch: cannot touch 'a': Read-only file system
Any ideas on what is the cause of this issue and how it may be fixed?

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

Why can't I see the deployed model in CVAT UI but see it in Nuclei Dashboard?

I have deployed CVAT (Server version: 2.2, Core version: 5.0.1, Canvas version: 2.13.2, UI version: 1.37.0) and Nuclio (with CLI version : 1.5.16, Git commit: ae43a6a560c2bec42d7ccfdf6e8e11a1e3cc3774, OS: darwin, Arch: amd64, Go version: go1.14.3) on a Mac.
Everything runs quite well but the serverless function (deployed from terminal).
I see the model deployed on the Nuclio Dashboard but I don't see this function on the Models page of CVAT.
I had been following https://openvinotoolkit.github.io/cvat/docs/manual/advanced/serverless-tutorial/ to deploy. In addition to the commands in this tutorial, I have to add the argument "--platform local". For example, nuctl get functions --platform local else it would yell me with some error.
Lastly, when I deployed the function "SIamMask" I added a port number to the "triggers" section of the Function.yaml like such:
triggers:
myHttpTrigger:
maxWorkers: 1
kind: 'http'
workerAvailabilityTimeoutMilliseconds: 10000
attributes:
port: 32003
maxRequestBodySize: 33554432 # 32MB
Any thoughts?

Use firefox for Selenium in CircleCI 2.0

In my CircleCI config.yml file I have the following:
docker:
- image: circleci/ruby:2.5.3-browsers-legacy
In the CircleCI docs it says that by attaching -browsers-legacy to the language it will include Chrome, Firefox, Java 8 and PhantomJS
And I also tried adding to the config.yml:
- image: selenium/standalone-firefox:3.141.59
But I am still getting the error:
Unable to find Mozilla geckodriver. Please download the server from https://github.com/mozilla/geckodriver/releases and place it somewhere on your PATH. More info at https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette/WebDriver.
(Selenium::WebDriver::Error::WebDriverError)
What config should I use instead?

Using Jenkins' Testlink plugin

Hi i'm trying to implement testlink plugin in jenkins.
I followed this tutorial http://tupilabs.com/books/jenkins-testlink-plugin-tutorial/en/book.pdf
I can build the project but the test isn't run.
there is a file not found error
I don't understand where i have to put my testfile. I supposed the output format must be TestNG, but where i have to put it ?
Thanks for your answer
I had exactly the same problem with building project, when I was following through tutorial placed in book Jenkins:The Definitive Guide.
I had Jenkis (jenkins-1.502.msi) instaled on Windows7 64 as a service - whatever I tried always received:
[workspace] $ mvn.bat
The system cannot find the file specified
FATAL: command execution failed
java.io.IOException: Cannot run program "mvn.bat" (in directory "C:\Work\jenkins\jobs\gameoflifedefault\workspace"): CreateProcess error=2, The system cannot find the file specified
Unfortunately I didn't managed to resolve this jenkis service problem but found another solution to make it work on Windows:
Use Apache Tomcat java server - if you have properly configured Tomcat do:
Download jenkins.war
Place it in webapps folder in your Tomcat directory
Run Tomcat and check via http://localhost:8080/manager if jenkins is there
Go to http://localhost:8080/jenkins
Now mvn.bat is seen and my build run without problems.
Ofcourse I understand that maven is properly configured on your system - so you should had specified in environmental variables:
variable: M2
value: %M2_HOME%\bin
variable: M2_HOME
value: C:\yourPathToMaven\apache-maven-3.0.4
variable: PATH
add to existing value: %M2_HOME%;
To check if maven is visible type in comand promp:
C:\Users\x>mvn --version
You should get something like:
Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
Maven home: C:\Work\Maven\apache-maven-3.0.4
Java version: 1.7.0, vendor: Oracle Corporation
Java home: C:\Work\ja\jdk1.7.0_10\jre
Default locale: en_US, platform encoding: Cp1250
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
Hope it helps.
Update : I found that the error was :
Cannot run program mvn.bat in directory d:/jenkins/jobs/JobTest/workspace CreateProcess error=2 File not found.
I made a free style project as said in the tutorial. It seems to be a maven error so i don't understand ...
If somebody can help me i'd be gratefull

Resources