Skip to content

Commit e23b163

Browse files
authored
Remove support for add-to-docker-compose alias
1 parent 8b662cc commit e23b163

File tree

3 files changed

+0
-19
lines changed

3 files changed

+0
-19
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,10 +351,6 @@ This file contains details of hosts to be forwarded on the host; if it exists th
351351

352352
[Example](snippets/host-fragments.yml)
353353

354-
**`/fragments/docker-compose-<any value>-fragment.yml`**
355-
356-
This file can be used to override the default settings for a docker container such as environment variables. It will not be loaded by default but can be applied using the add-to-docker-compose alias.
357-
358354
## Logging
359355

360356
Any messages that get forwarded to the logstash\* container on TCP port 25826 will be output both in the logstash container's own stdout (so `livelogs logstash` can be used to monitor all apps) and in ./logs/log.txt.

scripts/add-aliases.sh

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -168,20 +168,6 @@ function alembic(){
168168
bash -c 'cd /src && python3 manage.py db '"${@:2}"''
169169
}
170170

171-
function add-to-docker-compose(){
172-
COMPOSE_FILE_LIST=$(printenv COMPOSE_FILE)
173-
IFS=':' read -r -a array <<< "$COMPOSE_FILE_LIST"
174-
for element in "${array[@]}"
175-
do
176-
if [ -f ${element%/*}/docker-compose-${1}-fragment.yml ]; then
177-
COMPOSE_FILE_LIST="$COMPOSE_FILE_LIST:${element%/*}/docker-compose-${1}-fragment.yml"
178-
fi
179-
done
180-
export COMPOSE_FILE=$COMPOSE_FILE_LIST
181-
alias test="$DC_CMD up -d"
182-
test
183-
}
184-
185171
function devenv-help(){
186172
cat <<EOF
187173
If typing a docker-compose command you can use the alias dc instead. For example "dc ps" rather than "docker-compose ps".

scripts/remove-aliases.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ unset -f manage
2828
unset -f fullreset
2929
unset -f alembic
3030
unset -f localstack
31-
unset -f add-to-docker-compose
3231
unset -f devenv-help
3332

3433
unset DEV_ENV_ROOT_DIR

0 commit comments

Comments
 (0)