Skip to content
Snippets Groups Projects
Commit e61b48d4 authored by Stefano Alberto Russo's avatar Stefano Alberto Russo
Browse files

Moved from "images" to "services".

parent 5c91a77a
No related branches found
No related tags found
No related merge requests found
Showing with 22 additions and 22 deletions
...@@ -15,4 +15,4 @@ __pycache__/ ...@@ -15,4 +15,4 @@ __pycache__/
data* data*
# DB conf # DB conf
images/webapp/db_conf.sh services/webapp/db_conf.sh
...@@ -61,9 +61,9 @@ Django development server is running on port 8080 of the "webapp" service. ...@@ -61,9 +61,9 @@ Django development server is running on port 8080 of the "webapp" service.
To enable live code changes, add or comment out the following in docker-compose.yaml under the "volumes" section of the "webapp" service: To enable live code changes, add or comment out the following in docker-compose.yaml under the "volumes" section of the "webapp" service:
- ./images/webapp/code:/opt/webapp_code - ./services/webapp/code:/opt/webapp_code
This will mount the code from images/webapp/code as a volume inside the webapp container itself allowing to make immediately effective codebase edits. This will mount the code from services/webapp/code as a volume inside the webapp container itself allowing to make immediately effective codebase edits.
Note that when you edit the Django ORM model, you need to rerun the migrate the database, either by just rerunning the webapp service: Note that when you edit the Django ORM model, you need to rerun the migrate the database, either by just rerunning the webapp service:
......
...@@ -54,7 +54,7 @@ services: ...@@ -54,7 +54,7 @@ services:
- ./data_rosetta/webapp/data:/data - ./data_rosetta/webapp/data:/data
- ./data_rosetta/webapp/log:/var/log/webapp - ./data_rosetta/webapp/log:/var/log/webapp
- /var/run/docker.sock:/var/run/docker.sock - /var/run/docker.sock:/var/run/docker.sock
#- ./images/webapp/code:/opt/webapp_code #- ./services/webapp/code:/opt/webapp_code
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
set -e set -e
# Check if we are in the right place # Check if we are in the right place
if [ ! -d ./images ]; then if [ ! -d ./services ]; then
echo "You must run this command from the project's root folder." echo "You must run this command from the project's root folder."
exit 1 exit 1
fi fi
...@@ -28,19 +28,19 @@ fi ...@@ -28,19 +28,19 @@ fi
if [[ "x$SERVICE" == "x" ]] ; then if [[ "x$SERVICE" == "x" ]] ; then
# Build all images # Build all services
$BUILD_COMMAND images/base -t rosetta/base $BUILD_COMMAND services/base -t rosetta/base
$BUILD_COMMAND images/slurmbase -t rosetta/slurmbase $BUILD_COMMAND services/slurmbase -t rosetta/slurmbase
$BUILD_COMMAND images/slurmcluster -t rosetta/slurmcluster $BUILD_COMMAND services/slurmcluster -t rosetta/slurmcluster
$BUILD_COMMAND images/slurmclustermaster -t rosetta/slurmclustermaster $BUILD_COMMAND services/slurmclustermaster -t rosetta/slurmclustermaster
$BUILD_COMMAND images/slurmclusterworker -t rosetta/slurmclusterworker $BUILD_COMMAND services/slurmclusterworker -t rosetta/slurmclusterworker
$BUILD_COMMAND images/dregistry -t rosetta/dregistry $BUILD_COMMAND services/dregistry -t rosetta/dregistry
$BUILD_COMMAND images/webapp -t rosetta/webapp $BUILD_COMMAND services/webapp -t rosetta/webapp
else else
# Build a specific image # Build a specific image
$BUILD_COMMAND images/$SERVICE -t rosetta/$SERVICE $BUILD_COMMAND services/$SERVICE -t rosetta/$SERVICE
fi fi
#!/bin/bash #!/bin/bash
# Check if we are in the right place # Check if we are in the right place
if [ ! -d ./images ]; then if [ ! -d ./services ]; then
echo "You must run this command from the project's root folder." echo "You must run this command from the project's root folder."
exit 1 exit 1
fi fi
......
#!/bin/bash #!/bin/bash
# Check if we are in the right place # Check if we are in the right place
if [ ! -d ./images ]; then if [ ! -d ./services ]; then
echo "You must run this command from the project's root folder." echo "You must run this command from the project's root folder."
exit 1 exit 1
fi fi
......
#!/bin/bash #!/bin/bash
# Check if we are in the right place # Check if we are in the right place
if [ ! -d ./images ]; then if [ ! -d ./services ]; then
echo "You must run this command from the project's root folder." echo "You must run this command from the project's root folder."
exit 1 exit 1
fi fi
......
#!/bin/bash #!/bin/bash
# Check if we are in the right place # Check if we are in the right place
if [ ! -d ./images ]; then if [ ! -d ./services ]; then
echo "You must run this command from the project's root folder." echo "You must run this command from the project's root folder."
exit 1 exit 1
fi fi
......
#!/bin/bash #!/bin/bash
# Use dev (local) database for backend # Use dev (local) database for backend
if [ ! -f images/webapp/db_conf.sh ]; then if [ ! -f services/webapp/db_conf.sh ]; then
echo "Using dev webapp database settings." echo "Using dev webapp database settings."
cp images/webapp/db_conf-dev.sh images/webapp/db_conf.sh cp services/webapp/db_conf-dev.sh services/webapp/db_conf.sh
else else
echo "Not using dev webapp database settings as settings are already present." echo "Not using dev webapp database settings as settings are already present."
fi fi
#!/bin/bash #!/bin/bash
# Check if we are in the right place # Check if we are in the right place
if [ ! -d ./images ]; then if [ ! -d ./services ]; then
echo "You must run this command from the project's root folder." echo "You must run this command from the project's root folder."
exit 1 exit 1
fi fi
......
#!/bin/bash #!/bin/bash
# Check if we are in the right place # Check if we are in the right place
if [ ! -d ./images ]; then if [ ! -d ./services ]; then
echo "You must run this command from the project's root folder." echo "You must run this command from the project's root folder."
exit 1 exit 1
fi fi
......
File moved
File moved
File moved
File moved
File moved
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment