Skip to content

Commit d5beeb9

Browse files
author
Bryden Robertson
committed
Added note about VMWare in readme. Removed Kill command in docker b/c it throws an error if there are no running docker containers. This will be debugged and fixed next.
1 parent 4644dfd commit d5beeb9

File tree

2 files changed

+19
-15
lines changed

2 files changed

+19
-15
lines changed

readme.md

+7-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
## Creating a new challenge
1212

1313
- Create a branch called "[difficulty][topic]#" where:
14-
- difficulty is beginner, intermediate, advanced
14+
- difficulty is beginner, intermediate, advanced
1515
- Topic is linux, web, wireless, lockpicking, or any of the github labels. Make one if there isn't one!
1616
- and # is one above the highest challenge number in that category. Check for issues tagged `documentation` and `your topic` to find the challenge numbering list.
1717
- This number will determine the port number if dockerizing the challenge. 6000 + # = the exposed port
@@ -28,7 +28,7 @@
2828

2929
### Dockerfiles
3030

31-
If your challenge is using docker, you will need a Dockerfile. It should contain most of what you need in the container for the challenge. Use challenge1's dockerfile as an example.
31+
If your challenge is using docker, you will need a Dockerfile. It should contain most of what you need in the container for the challenge. Use challenge1's dockerfile as an example.
3232

3333
The dockerfile will handle setup such as:
3434

@@ -66,4 +66,8 @@ Because prod and dev are pulling from 2 different branches for deployment, varia
6666

6767
The `src` field has the variable `{{repo_path}}` because depending on the machine it's being deployed to (prod vs dev) the path might be `/home/rundeck/FITS-CTF/` (for prod) or it might be `/home/rundeck/FITS-CTF-DEV/` (for dev).
6868

69-
These variables are defined in `group_vars` and `vars` folders in the root of the project.
69+
These variables are defined in `group_vars` and `vars` folders in the root of the project.
70+
71+
## Troubleshooting Notes
72+
73+
* The VMWare instance at 192.168.1.16 is NOT accessible while on the FITS-lab wifi. To connect to it, use the normal FITS wifi

roles/common/tasks/docker.yml

+12-12
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,23 @@
1111
- software-properties-common
1212
tags:
1313
- docker
14-
14+
1515
# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
1616
- name: Add Dockers official GPG key
1717
apt_key:
1818
url: https://download.docker.com/linux/ubuntu/gpg
1919
state: present
2020
tags:
2121
- docker
22-
22+
2323
# sudo apt-key fingerprint 0EBFCD88
2424
- name: Verify that we have the key with the fingerprint
2525
apt_key:
2626
id: 0EBFCD88
2727
state: present
2828
tags:
2929
- docker
30-
30+
3131
# sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu xenial stable"
3232
- name: Set up the stable repository
3333
apt_repository:
@@ -36,14 +36,14 @@
3636
update_cache: yes
3737
tags:
3838
- docker
39-
39+
4040
# sudo apt-get update
4141
- name: Update apt packages
4242
apt:
4343
update_cache: yes
4444
tags:
4545
- docker
46-
46+
4747
# sudo apt-get install docker-ce
4848
- name: Install docker
4949
apt:
@@ -53,15 +53,15 @@
5353
notify: Start docker on boot
5454
tags:
5555
- docker
56-
56+
5757
# sudo groupadd docker
5858
- name: Create "docker" group
5959
group:
6060
name: "docker"
6161
state: present
6262
tags:
6363
- docker
64-
64+
6565
# sudo usermod -aG docker ubuntu
6666
- name: Add user to "docker" group
6767
user:
@@ -73,7 +73,7 @@
7373
- challenge
7474
tags:
7575
- docker
76-
76+
7777
# sudo apt-get install docker-compose
7878
- name: Install docker-compose
7979
apt:
@@ -84,7 +84,7 @@
8484
- docker
8585

8686
#stop all containers, that way when challenges are discontinued they stop running after the next deploy
87-
- name: Kill All Containers
88-
ignore_errors: yes
89-
shell: |
90-
docker kill $(docker ps -q)
87+
# - name: Kill All Containers
88+
# ignore_errors: yes
89+
# shell: |
90+
# docker kill $(docker ps -q)

0 commit comments

Comments
 (0)