Changed docker/exec to docker/run; updated docker/README.md to reflect this

This commit is contained in:
Jason Hsu
2020-10-08 14:43:30 -05:00
parent d9476ec87d
commit 71ad109f78
2 changed files with 2 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ If you are using Windows and having issues related to the ruby-build not finding
* docker/build: This script builds the Docker containers specified for this app, seeds the database, and logs the screen output for these operations. After you use "git clone" to download this repository, run the docker/build script to start the setup process.
* docker/server: Use this script to run this app in the Rails server. This script executes the "docker-compose up" command and logs the results. If all goes well, you will be able to view this app on your local browser at http://localhost:3000/.
* docker/test: Use this script to run the entire test suite.
* docker/exec: Use this script to run commands within the Docker container. If you want shell access, enter "docker/exec bash". To execute "ls -l" within the Docker container, enter "docker/exec ls -l".
* docker/run: Use this script to run commands within the Docker container. If you want shell access, enter "docker/run bash". To execute "ls -l" within the Docker container, enter "docker/run ls -l".
* docker/seed: Use this script to seed the database. Please note that this process is not compatible with simultaneously running the Rails server or tests.
* docker/nuke: Use this script to delete all Docker images and containers. This fully resets your Docker setup and is useful for making sure that the setup procedure specified for this app is complete.
* docker/cop: This script runs RuboCop.

View File

@@ -3,7 +3,7 @@
set -e
# Use this script to execute commaands in the Docker container.
# Example: To run the "ls -l" command in the Docker container, enter the command "docker/exec ls -l".
# Example: To run the "ls -l" command in the Docker container, enter the command "docker/run ls -l".
function cleanup {
# capture exit code