- Build of the Chat Client using Vue.js
- Accompanying css - Views to serve the Chat Client - first test version of the TRACIE_SELECTION_SPECIALIST - ESS Implemented.
This commit is contained in:
@@ -115,15 +115,41 @@ echo "Set COMPOSE_FILE to $COMPOSE_FILE"
|
||||
echo "Set EVEAI_VERSION to $VERSION"
|
||||
echo "Set DOCKER_ACCOUNT to $DOCKER_ACCOUNT"
|
||||
|
||||
# Define aliases for common Docker commands
|
||||
alias docker-compose="docker compose -f $COMPOSE_FILE"
|
||||
alias dc="docker compose -f $COMPOSE_FILE"
|
||||
alias dcup="docker compose -f $COMPOSE_FILE up -d --remove-orphans"
|
||||
alias dcdown="docker compose -f $COMPOSE_FILE down"
|
||||
alias dcps="docker compose -f $COMPOSE_FILE ps"
|
||||
alias dclogs="docker compose -f $COMPOSE_FILE logs"
|
||||
alias dcpull="docker compose -f $COMPOSE_FILE pull"
|
||||
alias dcrefresh="docker compose -f $COMPOSE_FILE pull && docker compose -f $COMPOSE_FILE up -d --remove-orphans"
|
||||
docker-compose() {
|
||||
docker compose -f $COMPOSE_FILE "$@"
|
||||
}
|
||||
|
||||
dc() {
|
||||
docker compose -f $COMPOSE_FILE "$@"
|
||||
}
|
||||
|
||||
dcup() {
|
||||
docker compose -f $COMPOSE_FILE up -d --remove-orphans "$@"
|
||||
}
|
||||
|
||||
dcdown() {
|
||||
docker compose -f $COMPOSE_FILE down "$@"
|
||||
}
|
||||
|
||||
dcps() {
|
||||
docker compose -f $COMPOSE_FILE ps "$@"
|
||||
}
|
||||
|
||||
dclogs() {
|
||||
docker compose -f $COMPOSE_FILE logs "$@"
|
||||
}
|
||||
|
||||
dcpull() {
|
||||
docker compose -f $COMPOSE_FILE pull "$@"
|
||||
}
|
||||
|
||||
dcrefresh() {
|
||||
docker compose -f $COMPOSE_FILE pull && docker compose -f $COMPOSE_FILE up -d --remove-orphans "$@"
|
||||
}
|
||||
|
||||
# Exporteer de functies zodat ze beschikbaar zijn in andere scripts
|
||||
export -f docker-compose dc dcup dcdown dcps dclogs dcpull dcrefresh
|
||||
|
||||
|
||||
echo "Docker environment switched to $ENVIRONMENT with version $VERSION"
|
||||
echo "You can now use 'docker-compose', 'dc', 'dcup', 'dcdown', 'dcps', 'dclogs', 'dcpull' or 'dcrefresh' commands"
|
||||
9
docker/rebuild_chat_client.sh
Executable file
9
docker/rebuild_chat_client.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
source ./docker_env_switch.sh dev
|
||||
source .env
|
||||
|
||||
dcdown eveai_chat_client nginx
|
||||
./update_chat_client_statics.sh
|
||||
./build_and_push_eveai.sh -b nginx
|
||||
dcup eveai_chat_client nginx
|
||||
49
docker/update_chat_client_statics.sh
Executable file
49
docker/update_chat_client_statics.sh
Executable file
@@ -0,0 +1,49 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Script to copy eveai_chat_client/static files to nginx/static
|
||||
# without overwriting existing files
|
||||
|
||||
SRC_DIR="../eveai_chat_client/static"
|
||||
DEST_DIR="../nginx/static/assets"
|
||||
|
||||
# Check if source directory exists
|
||||
if [ ! -d "$SRC_DIR" ]; then
|
||||
echo "Error: Source directory $SRC_DIR does not exist!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Create destination directory if it doesn't exist
|
||||
if [ ! -d "$DEST_DIR" ]; then
|
||||
echo "Destination directory $DEST_DIR does not exist. Creating it..."
|
||||
mkdir -p "$DEST_DIR"
|
||||
fi
|
||||
|
||||
# Function to recursively copy files without overwriting
|
||||
copy_without_overwrite() {
|
||||
local src=$1
|
||||
local dest=$2
|
||||
|
||||
# Loop through all items in source directory
|
||||
for item in "$src"/*; do
|
||||
# Get the filename from the path
|
||||
base_name=$(basename "$item")
|
||||
|
||||
# If it's a directory, create it in the destination and recurse
|
||||
if [ -d "$item" ]; then
|
||||
if [ ! -d "$dest/$base_name" ]; then
|
||||
echo "Creating directory: $dest/$base_name"
|
||||
mkdir -p "$dest/$base_name"
|
||||
fi
|
||||
copy_without_overwrite "$item" "$dest/$base_name"
|
||||
else
|
||||
# If it's a file and doesn't exist in the destination, copy it
|
||||
cp "$item" "$dest/$base_name"
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
# Start the copy process
|
||||
echo "Starting to copy files from $SRC_DIR to $DEST_DIR..."
|
||||
copy_without_overwrite "$SRC_DIR" "$DEST_DIR"
|
||||
|
||||
echo "Copy completed!"
|
||||
Reference in New Issue
Block a user