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
Copy file name to clipboardExpand all lines: readme.md
+30-24Lines changed: 30 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,38 +16,23 @@
16
16
-[Secret Key](#secretkey)
17
17
-[Configure your .env](#configure-env)
18
18
-[DataBase](#database)
19
+
-[FAQ](#faq)
19
20
-[Version](#version)
20
21
-[Videos](#videos)
21
22
22
23
23
24
## Setup
24
25
25
-
#### You can use Docker Image
26
26
27
-
```
28
-
docker pull xandouglas/switchsetup:latest
29
-
docker run -p 8000:8000 --name switchsetup -d xandouglas/switchsetup:latest
30
-
If dont work:
31
-
sudo docker run -p 8000:8000 xandouglas/switchsetup:latest
32
-
```
33
-
34
-
After creating the image, use for login:
35
-
```
36
-
Username: admin
37
-
Password: 123
38
-
```
39
-
40
-
Once inside the system, you have the capability to manage your users and their credentials effectively.
41
-
42
-
#### You can use Git Clone
27
+
#### Git Clone
43
28
44
29
To set up the project locally, please follow these steps:
45
30
46
-
1. Clone the repository: `git clone https://github.com/AleDouglas/SwitchSetup.git`
47
-
2. Install the for ansible and Django in requirements.txt .
48
-
3. You need generate your own [Secret Key](#SecretKey).
49
-
4.[Configure your .env](#configure-.env)
50
-
5. You can run it in [your terminal or dockerfile](#run-switchsetup)
31
+
1. Clone the repository: `git clone https://github.com/AleDouglas/SwitchSetup.git` .
32
+
2. Install the packages from the requirements.txt file in your Virtual Environment or use the Dockerfile .
33
+
3. You need generate your own [Secret Key](#SecretKey).
34
+
4.[Configure your .env](#configure-.env) .
35
+
5. You can run it in [your terminal or dockerfile](#run-switchsetup) .
51
36
52
37
53
38
## SecretKey
@@ -72,6 +57,12 @@ DEBUG=True
72
57
73
58
## Run SwitchSetup
74
59
60
+
Use for login:
61
+
```
62
+
Username: admin
63
+
Password: 123
64
+
```
65
+
75
66
#### Terminal Local:
76
67
77
68
```
@@ -86,8 +77,8 @@ python manage.py runserver
86
77
cd WebApi
87
78
python manage.py migrate
88
79
cd ..
89
-
docker build -t image_name
90
-
docker run -p 8000:8000 image_name
80
+
docker build -t image_name .
81
+
docker run -p 8000:8000 imagename
91
82
92
83
```
93
84
## Database
@@ -107,11 +98,26 @@ python manage.py migrate
107
98
108
99
After this, a new admin user with the username "admin" and password "123" is automatically created.
109
100
101
+
102
+
I recommend using MySQL or PostgreSQL to avoid the use of a physical database within the documents. Simply follow the Django reference for the necessary modifications.
103
+
104
+
105
+
## FAQ
106
+
107
+
108
+
##### Problems for login authentication in Ansible-Docker
109
+
We have identified an issue regarding Ansible authentication. This might be caused by the required keys. Simply copy the keys from the ~/.ssh/ file to the 'sshkeys' folder within the project. We will work on resolving this problem in the upcoming updates.
110
+
111
+
112
+
110
113
## Version
111
114
112
115
113
116
| Version || Date |
114
117
|----------|:-------------:|------:|
118
+
| 1.5.2 | Resolved logging issue in certain system tasks | 18/08/2023
119
+
| 1.5.1 | Added ansible execution information control system | 18/08/2023 |
120
+
| 1.5 | Possible solution for connecting via docker-ansible and adding level of information when running ansible | 17/08/2023 |
0 commit comments