Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
devstack
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
devstack
Commits
16c5d3fc
Commit
16c5d3fc
authored
Jul 18, 2017
by
Jeremy Bowman
Committed by
Jeremy Bowman
Jul 18, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PLAT-1620 Containers for latest Chrome and Firefox
parent
f62d609a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
1 deletions
+32
-1
Makefile
+4
-0
README.rst
+11
-0
docker-compose.yml
+17
-1
No files found.
Makefile
View file @
16c5d3fc
...
@@ -96,6 +96,10 @@ validate-lms-volume: ## Validate that changes to the local workspace are reflect
...
@@ -96,6 +96,10 @@ validate-lms-volume: ## Validate that changes to the local workspace are reflect
docker
exec
edx.devstack.lms
ls
/edx/app/edxapp/edx-platform/testfile
docker
exec
edx.devstack.lms
ls
/edx/app/edxapp/edx-platform/testfile
rm
$(DEVSTACK_WORKSPACE)
/edx-platform/testfile
rm
$(DEVSTACK_WORKSPACE)
/edx-platform/testfile
vnc-passwords
:
##
Get the VNC passwords for the Chrome and Firefox Selenium containers
@
docker logs edx.devstack.chrome 2>&1 |
grep
"VNC password"
| tail
-1
@
docker logs edx.devstack.firefox 2>&1 |
grep
"VNC password"
| tail
-1
mysql-shell
:
##
Run a shell on the mysql container
mysql-shell
:
##
Run a shell on the mysql container
docker-compose
exec
mysql bash
docker-compose
exec
mysql bash
...
...
README.rst
View file @
16c5d3fc
...
@@ -369,6 +369,17 @@ Vagrant. Example:
...
@@ -369,6 +369,17 @@ Vagrant. Example:
You can also add the ``test_docker`` settings flag to the other examples detailed
You can also add the ``test_docker`` settings flag to the other examples detailed
in the testing documentation.
in the testing documentation.
If you want to see the browser being automated for JavaScript or bok-choy
tests, you can connect to the container running it via VNC. Most tests are
run in Firefox by default, and the container running it can be accessed on
port 25900 (for example, by entering ``vnc://0.0.0.0:25900`` in Safari on
macOS). There is also a Docker container driving Chrome via Selenium, for
which VNC is available on port 15900. The VNC passwords for both of these are
randomly generated and logged at container startup, and can be found by
running ``make vnc-passwords``. To use Chrome for tests that normally
use Firefox instead, prefix the test command with
``SELENIUM_BROWSER=chrome SELENIUM_HOST=edx.devstack.chrome``.
Troubleshooting: General Tips
Troubleshooting: General Tips
-----------------------------
-----------------------------
...
...
docker-compose.yml
View file @
16c5d3fc
...
@@ -12,6 +12,15 @@ version: "2.1"
...
@@ -12,6 +12,15 @@ version: "2.1"
services
:
services
:
# Third-party services
# Third-party services
chrome
:
container_name
:
edx.devstack.chrome
image
:
edxops/chrome:latest
shm_size
:
2g
ports
:
-
"
15900:5900"
volumes
:
-
../edx-platform:/edx/app/edxapp/edx-platform
# for file uploads
elasticsearch
:
elasticsearch
:
container_name
:
edx.devstack.elasticsearch
container_name
:
edx.devstack.elasticsearch
image
:
edxops/elasticsearch:devstack
image
:
edxops/elasticsearch:devstack
...
@@ -25,7 +34,12 @@ services:
...
@@ -25,7 +34,12 @@ services:
firefox
:
firefox
:
container_name
:
edx.devstack.firefox
container_name
:
edx.devstack.firefox
image
:
selenium/standalone-firefox:2.53.1-beryllium
image
:
edxops/firefox:latest
shm_size
:
2g
ports
:
-
"
25900:5900"
volumes
:
-
../edx-platform:/edx/app/edxapp/edx-platform
# for file uploads
memcached
:
memcached
:
container_name
:
edx.devstack.memcached
container_name
:
edx.devstack.memcached
...
@@ -114,6 +128,7 @@ services:
...
@@ -114,6 +128,7 @@ services:
image
:
edxops/edxapp:latest
image
:
edxops/edxapp:latest
ports
:
ports
:
-
"
18000:18000"
-
"
18000:18000"
-
"
19876:19876"
# JS test debugging
# - "18003:18003"
# - "18003:18003"
# - "18031:18031"
# - "18031:18031"
...
@@ -132,6 +147,7 @@ services:
...
@@ -132,6 +147,7 @@ services:
image
:
edxops/edxapp:latest
image
:
edxops/edxapp:latest
ports
:
ports
:
-
"
18010:18010"
-
"
18010:18010"
-
"
19877:19877"
# JS test debugging
# - "18103:18103"
# - "18103:18103"
# - "18131:18131"
# - "18131:18131"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment