You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
####3. If your Docker environment ever goes down for any reason, you can bring it back up with a restart:
9
+
##### (If your Docker environment ever goes down for any reason, you can bring it back up with a restart.)
10
10
11
11
docker-machine restart seleniumbase
12
12
13
-
#### 4. Configure your shell:
13
+
#### 3. Configure your shell:
14
14
15
15
eval "$(docker-machine env seleniumbase)"
16
16
17
-
#### 5. Go to the SeleniumBase home directory. (That's where "Dockerfile" is located)
17
+
#### 4. Go to the SeleniumBase home directory. (That's where "Dockerfile" is located)
18
18
19
-
#### 6. Create your Docker image from your Dockerfile: (Get ready to wait awhile)
19
+
#### 5. Create your Docker image from your Dockerfile: (Get ready to wait awhile)
20
20
21
21
docker build -t seleniumbase .
22
22
23
-
#### 7. Run a test inside your Docker: (Once the test completes after a few seconds, you'll automatically exit the Docker shell)
23
+
#### 6. Run a test inside your Docker: (Once the test completes after a few seconds, you'll automatically exit the Docker shell)
24
24
25
25
docker run seleniumbase ./run_docker_test_in_firefox.sh
26
26
27
-
#### 8. Now run the same test with Chrome inside your Docker:
27
+
#### 7. Now run the same test with Chrome inside your Docker:
28
28
29
29
docker run seleniumbase ./run_docker_test_in_chrome.sh
30
30
31
-
#### 9. You can also enter Docker and stay inside the shell:
31
+
#### 8. You can also enter Docker and stay inside the shell:
32
32
33
33
docker run -i -t seleniumbase
34
34
35
-
#### 10. Now you can run the example test from inside the Docker shell: (This time with PhantomJS)
35
+
#### 9. Now you can run the example test from inside the Docker shell:
36
36
37
-
./run_docker_test_in_phantomjs.sh
37
+
./run_docker_test_in_chrome.sh
38
38
39
-
#### 11. When you're satisfied, you may exit the Docker shell:
39
+
#### 10. When you're satisfied, you may exit the Docker shell:
40
40
41
41
exit
42
42
43
-
#### 12. (Optional) Since Docker images and containers take up a lot of space, you may want to clean up your machine from time to time when they’re not being used:
43
+
#### 11. (Optional) Since Docker images and containers take up a lot of space, you may want to clean up your machine from time to time when they’re not being used:
####3. If your Docker environment ever goes down for any reason, you can bring it back up with a restart:
9
+
##### (If your Docker environment ever goes down for any reason, you can bring it back up with a restart.)
10
10
11
11
docker-machine restart seleniumbase
12
12
13
-
#### 4. Configure your shell:
13
+
#### 3. Configure your shell:
14
14
15
15
eval "$(docker-machine env seleniumbase)"
16
16
17
-
#### 5. Go to the SeleniumBase home directory. (That's where "Dockerfile" is located)
17
+
#### 4. Go to the SeleniumBase home directory. (That's where "Dockerfile" is located)
18
18
19
-
#### 6. Create your Docker image from your Dockerfile: (Get ready to wait awhile)
19
+
#### 5. Create your Docker image from your Dockerfile: (Get ready to wait awhile)
20
20
21
21
docker build -t seleniumbase .
22
22
23
-
#### 7. Run a test inside your Docker: (Once the test completes after a few seconds, you'll automatically exit the Docker shell)
23
+
#### 6. Run a test inside your Docker: (Once the test completes after a few seconds, you'll automatically exit the Docker shell)
24
24
25
25
docker run seleniumbase ./run_docker_test_in_firefox.sh
26
26
27
-
#### 8. Now run the same test with Chrome inside your Docker:
27
+
#### 7. Now run the same test with Chrome inside your Docker:
28
28
29
29
docker run seleniumbase ./run_docker_test_in_chrome.sh
30
30
31
-
#### 9. You can also enter Docker and stay inside the shell:
31
+
#### 8. You can also enter Docker and stay inside the shell:
32
32
33
33
docker run -i -t seleniumbase
34
34
35
-
#### 10. Now you can run the example test from inside the Docker shell: (This time with PhantomJS)
35
+
#### 9. Now you can run the example test from inside the Docker shell:
36
36
37
-
./run_docker_test_in_phantomjs.sh
37
+
./run_docker_test_in_chrome.sh
38
38
39
-
#### 11. When you're satisfied, you may exit the Docker shell:
39
+
#### 10. When you're satisfied, you may exit the Docker shell:
40
40
41
41
exit
42
42
43
-
#### 12. (Optional) Since Docker images and containers take up a lot of space, you may want to clean up your machine from time to time when they’re not being used:
43
+
#### 11. (Optional) Since Docker images and containers take up a lot of space, you may want to clean up your machine from time to time when they’re not being used:
0 commit comments