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
{{ message }}
This repository was archived by the owner on Aug 1, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: docs/devstack_interface.rst
+94-3Lines changed: 94 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,9 @@ Examples:
18
18
make dev.logs.frontend-app-gradebook
19
19
make frontend-app-gradebook-logs
20
20
21
-
The user interface for devstack often also gives you both big hammers(``make dev.pull.large-and-slow``) and small hammers(``make dev.pull.<service>``) to do things. It is recommend you opt for the small hammer commands, because they often tend to be alot faster.
21
+
The user interface for devstack often also gives you both big hammers (``make dev.pull.large-and-slow``) and small hammers (``make dev.pull.<service>``) to do things. It is recommend you opt for the small hammer commands, because they often tend to be a lot faster.
22
+
23
+
See the ``make help`` section below for a complete list of commands.
22
24
23
25
Useful Commands and Summary
24
26
~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -27,7 +29,7 @@ Useful Commands and Summary
27
29
28
30
- ``dev.pull.<service>`` - Pull latest Docker images for the service and its dependencies
29
31
30
-
When to use: If you have not used Devstack for a while or pulled new images for a while, the installed requirements in your containers might no longer match those used by your code. So it is recommended you pull new images whenever you want your containers to have the latest requirements(python libraries...) installed.
32
+
When to use: If you have not used Devstack for a while or pulled new images for a while, the installed requirements in your containers might no longer match those used by your code. So it is recommended you pull new images whenever you want your containers to have the latest requirements(python libraries...) installed.
31
33
32
34
Note: for new service images to be used, you first need to bring down those services and then bring them back up after a pull.
33
35
@@ -116,7 +118,7 @@ Useful Commands and Summary
116
118
117
119
Variation: ``make <service>-restart-devserver``.
118
120
119
-
- ``dev.restart-container.<service>`` restarts service container. This is essentially a stronger version of ``dev.restrart-devserver``
121
+
- ``dev.restart-container.<service>`` restarts service container. This is essentially a stronger version of ``dev.restart-devserver``
120
122
121
123
Note: this will only restart <container> and not its dependencies
122
124
@@ -129,3 +131,92 @@ Useful Commands and Summary
129
131
- ``dev.restore`` will restore your database volumes to the backups created using ``dev.backup``
130
132
131
133
Warning: This will overwrite your databases. Only use if you want all your database volumes to revert back to the backup.
134
+
135
+
Make Help
136
+
~~~~~~~~~
137
+
138
+
The following ``make help`` output was generated in 09-2023 to make these commands searchable in documentation.
139
+
140
+
If you want to ensure you are getting the latest listing, simply use ``make help``.
141
+
142
+
.. code:: sh
143
+
144
+
% make help
145
+
Please use `make <target>' where <target> is one of
146
+
build-courses Build course and provision cms, and ecommerce with it.
147
+
create-test-course Provisions cms, and ecommerce with course(s) in test-course.json.
148
+
dev.attach.% Attach to the specified service container process for debugging & seeing logs.
149
+
dev.backup Write all data volumes to the host.
150
+
dev.cache-programs Copy programs from Discovery to Memcached for use in LMS.
151
+
dev.check Run checks for the default service set.
152
+
dev.check-memory Check if enough memory has been allocated to Docker.
153
+
dev.checkout Check out "openedx-release/$OPENEDX_RELEASE" in each repo if set, use default branch otherwise.
154
+
dev.clone Clone service repos to the parent directory.
155
+
dev.clone.https Clone service repos using HTTPS method to the parent directory.
156
+
dev.clone.ssh Clone service repos using SSH method to the parent directory.
157
+
dev.dbcopy8.% Copy data from old mysql 5.7 container into a new 8 db
158
+
dev.dbshell.% Run a SQL shell on the given database.
159
+
dev.destroy Irreversibly remove all devstack-related containers and networks (though not data volumes)
160
+
dev.destroy.coursegraph Remove all coursegraph data.
161
+
dev.down Documentation for a change to naming
162
+
dev.drop-db.% Irreversably drop the contents of a MySQL database in each mysql container.
163
+
dev.forum.build-indices Build indices for forum service
164
+
dev.kill Kill all running services.
165
+
dev.kill.% Kill specific services.
166
+
dev.logs View logs from running containers.
167
+
dev.logs.% View the logs of the specified service container.
168
+
dev.migrate Run migrations for applicable default services.
169
+
dev.migrate.% Run migrations on a service.
170
+
dev.print-container.% Get the ID of the running container for a given service.
171
+
dev.provision Provision dev environment with default services, and then stop them.
172
+
dev.provision.% Provision specified services.
173
+
dev.prune Prune dangling docker images, containers, and networks. Useful when you get the 'no space left on device' error
174
+
dev.ps View list of created services and their statuses.
175
+
dev.pull.% Pull latest Docker images for services and their dependencies.
176
+
dev.pull.large-and-slow Pull latest Docker images required by default services.
177
+
dev.pull.without-deps.% Pull latest Docker images for specific services.
178
+
dev.remove-containers Stop and remove containers and networks for all services.
179
+
dev.remove-containers.% Stop and remove containers for specific services.
180
+
dev.reset Attempt to reset the local devstack to the default branch working state without destroying data.
181
+
dev.reset-repos Attempt to reset the local repo checkouts to the default branch working state.
182
+
dev.restart-container Restart all service containers.
183
+
dev.restart-container.% Restart specific services' containers.
184
+
dev.restart-devserver.% Kill an edX service's development server. Watcher should restart it.
185
+
dev.restore Restore all data volumes from the host. WILL OVERWRITE ALL EXISTING DATA!
186
+
dev.rm-stopped Remove stopped containers. Does not affect running containers.
187
+
dev.shell.% Run a shell on the specified service's container.
188
+
dev.static.% Rebuild static assets for the specified service's container.
189
+
dev.stats Get per-container CPU and memory utilization data.
190
+
dev.status Prints the status of all git repositories.
191
+
dev.stop Stop all running services.
192
+
dev.stop.% Stop specific services.
193
+
dev.up.attach.% Bring up a service and its dependencies + and attach to it.
194
+
dev.up.large-and-slow Bring up default services.
195
+
dev.up.shell.% Bring up a service and its dependencies + shell into it.
196
+
dev.up.with-programs Bring up default services + cache programs in LMS.
197
+
dev.up.with-programs.% Bring up services and their dependencies + cache programs in LMS.
198
+
dev.up.with-watchers Bring up default services + asset watcher containers.
199
+
dev.up.with-watchers.% Bring up services and their dependencies + asset watcher containers.
200
+
dev.up.without-deps.% Bring up services by themselves.
201
+
dev.up.without-deps.shell.% Bring up a service by itself + shell into it.
202
+
dev.validate Print effective Docker Compose config, validating files in COMPOSE_FILE.
203
+
devpi-password Get the root devpi password for the devpi container.
204
+
docs generate Sphinx HTML documentation, including API docs
205
+
hadoop-application-logs-% View hadoop logs by application Id.
206
+
help Display this help message.
207
+
impl-dev.clone.https Clone service repos using HTTPS method to the parent directory.
208
+
impl-dev.clone.ssh Clone service repos using SSH method to the parent directory.
209
+
impl-dev.provision Provision dev environment with default services, and then stop them.
0 commit comments