cron-eu / docker-neos Goto Github PK
View Code? Open in Web Editor NEWcron Development Docker Image for Neos
License: MIT License
cron Development Docker Image for Neos
License: MIT License
When trying to configure an access token for composer, this fails with:
Head to https://github.com/settings/tokens/new?scopes=repo&description=xxxxx
to retrieve a token. It will be stored in "/composer/auth.json" for future use by Composer.
Token (hidden):
[ErrorException]
file_put_contents(/composer/auth.json): failed to open stream: Permission denied
There is a race condition when running Behat Tests in "unattended" mode, e.g. using:
docker-compose -f docker-compose.yml -f docker-compose.behat.yml run --rm --service-ports web \
sudo -u www-data cd /data/www/Packages/Sites/CRON.DavShop/Tests/Behavior /data/www/bin/behat --ansi
What happens, when the race condition occurs:
starting selenium server..
09:05:52.736 INFO - Launching a standalone Selenium Server
09:05:52.793 INFO - Java: IcedTea 25.212-b04
09:05:52.794 INFO - OS: Linux 4.4.0-97-generic amd64
09:05:52.825 INFO - v2.53.0, with Core v2.53.0. Built from revision 35ae25b
09:05:52.976 INFO - Driver provider org.openqa.selenium.ie.InternetExplorerDriver registration is skipped:
registration capabilities Capabilities [{ensureCleanSession=true, browserName=internet explorer, version=, platform=WINDOWS}] does not match the current platform LINUX
09:05:52.979 INFO - Driver provider org.openqa.selenium.edge.EdgeDriver registration is skipped:
registration capabilities Capabilities [{browserName=MicrosoftEdge, version=, platform=WINDOWS}] does not match the current platform LINUX
09:05:52.980 INFO - Driver class not found: com.opera.core.systems.OperaDriver
09:05:52.981 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered
09:05:52.988 INFO - Driver provider org.openqa.selenium.safari.SafariDriver registration is skipped:
registration capabilities Capabilities [{browserName=safari, version=, platform=MAC}] does not match the current platform LINUX
09:05:52.989 INFO - Driver class not found: org.openqa.selenium.htmlunit.HtmlUnitDriver
09:05:52.990 INFO - Driver provider org.openqa.selenium.htmlunit.HtmlUnitDriver is not registered
Then the test fails:
(..)
Given I go to "/" # FeatureContext::visit()
Curl error thrown for http POST to http://localhost:4444/wd/hub/session with params: {"desiredCapabilities":{"browserName":"firefox","version":"8","platform":"ANY","browserVersion":"8","browser":"firefox","name":"Behat test","deviceOrientation":"portrait","deviceType":"tablet"},"requiredCapabilities":[]}
Failed to connect to localhost port 4444: Connection refused
starting selenium server..
09:09:40.383 INFO - Launching a standalone Selenium Server
09:09:40.438 INFO - Java: IcedTea 25.212-b04
09:09:40.438 INFO - OS: Linux 4.4.0-97-generic amd64
09:09:40.468 INFO - v2.53.0, with Core v2.53.0. Built from revision 35ae25b
09:09:40.606 INFO - Driver provider org.openqa.selenium.ie.InternetExplorerDriver registration is skipped:
registration capabilities Capabilities [{ensureCleanSession=true, browserName=internet explorer, version=, platform=WINDOWS}] does not match the current platform LINUX
09:09:40.609 INFO - Driver provider org.openqa.selenium.edge.EdgeDriver registration is skipped:
registration capabilities Capabilities [{browserName=MicrosoftEdge, version=, platform=WINDOWS}] does not match the current platform LINUX
09:09:40.610 INFO - Driver class not found: com.opera.core.systems.OperaDriver
09:09:40.611 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered
09:09:40.617 INFO - Driver provider org.openqa.selenium.safari.SafariDriver registration is skipped:
registration capabilities Capabilities [{browserName=safari, version=, platform=MAC}] does not match the current platform LINUX
09:09:40.618 INFO - Driver class not found: org.openqa.selenium.htmlunit.HtmlUnitDriver
09:09:40.618 INFO - Driver provider org.openqa.selenium.htmlunit.HtmlUnitDriver is not registered
09:09:40.738 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub
09:09:40.738 INFO - Selenium Server is up and running
Then the test succeeds:
@javascript
Scenario: User visits the website for the first time # Features/IntroBanner.feature:5
09:10:03.724 INFO - Executing: [new session: Capabilities [{deviceType=tablet, browserVersion=8, browser=firefox, name=Behat test, browserName=firefox, deviceOrientation=portrait, version=8, platform=ANY}]])
09:10:03.740 INFO - Creating a new session for Capabilities [{deviceType=tablet, browserVersion=8, browser=firefox, name=Behat test, browserName=firefox, deviceOrientation=portrait, version=8, platform=ANY}]
09:10:07.256 INFO - Done: [new session: Capabilities [{deviceType=tablet, browserVersion=8, browser=firefox, name=Behat test, browserName=firefox, deviceOrientation=portrait, version=8, platform=ANY}]]
09:10:07.736 INFO - Executing: [get: http://behat.dev.local:8080/])
09:10:10.797 INFO - Done: [get: http://behat.dev.local:8080/]
Given I go to "/" # FeatureContext::visit()
09:10:10.809 INFO - Executing: [execute script: localStorage.setItem("overlay-customers", "0"), []])
09:10:10.836 INFO - Done: [execute script: localStorage.setItem("overlay-customers", "0"), []]
And I set local storage key "overlay-customers" to "0" # FeatureContext::iSetLocalStorageKeyTo()
(..)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.