Browse Source

* use full path to docker_cmd config script in bash helpers

master
dimti 1 year ago
parent
commit
ca9f40667b
  1. 8
      README.md
  2. 4
      bash/enter-to-workspace.sh
  3. 4
      bash/mysql.sh
  4. 4
      bash/restart-nginx.sh
  5. 4
      bash/root-onto-workspace.sh
  6. 4
      bash/update-composer.sh
  7. 16
      docker-compose.elastic.yml.example

8
README.md

@ -119,6 +119,14 @@ For restart `nginx` after some changes in nginx configuration, you might:
`./restart-nginx.sh`
### Elastic
Copy example
Launch:
`dc -f docker-compose.elastic.yml up -d elastic`
## Src build need DOCKER_BUILDKIT
If you want build own workspace image. You need export environment variable

4
bash/enter-to-workspace.sh

@ -1,5 +1,7 @@
#!/bin/bash
. ./_docker-cmd.sh || {
DIR="$(realpath $(dirname "$(readlink -f "$0")")/..)"
. $DIR/bash/_docker-cmd.sh || {
echo "no docker cmd is presented" && exit 1
}

4
bash/mysql.sh

@ -1,5 +1,7 @@
#!/bin/bash
. ./_docker-cmd.sh || {
DIR="$(realpath $(dirname "$(readlink -f "$0")")/..)"
. $DIR/bash/_docker-cmd.sh || {
echo "no docker cmd is presented" && exit 1
}

4
bash/restart-nginx.sh

@ -1,5 +1,7 @@
#!/bin/bash
. ./_docker-cmd.sh || {
DIR="$(realpath $(dirname "$(readlink -f "$0")")/..)"
. $DIR/bash/_docker-cmd.sh || {
echo "no docker cmd is presented" && exit 1
}

4
bash/root-onto-workspace.sh

@ -1,5 +1,7 @@
#!/bin/bash
. ./_docker-cmd.sh || {
DIR="$(realpath $(dirname "$(readlink -f "$0")")/..)"
. $DIR/bash/_docker-cmd.sh || {
echo "no docker cmd is presented" && exit 1
}

4
bash/update-composer.sh

@ -1,5 +1,7 @@
#!/bin/bash
. ./_docker-cmd.sh || {
DIR="$(realpath $(dirname "$(readlink -f "$0")")/..)"
. $DIR/bash/_docker-cmd.sh || {
echo "no docker cmd is presented" && exit 1
}

16
docker-compose.elastic.yml.example

@ -1,23 +1,15 @@
version: '3.6'
services:
elastic732:
extends:
file: docker-compose.elastic.base.yml
service: elastic
build:
dockerfile: elastic732.Dockerfile
volumes:
- elastic732:/usr/share/elastic/data
elastic752:
elastic:
extends:
file: docker-compose.elastic.base.yml
service: elastic
restart: always
build:
dockerfile: elastic752.Dockerfile
volumes:
- elastic752:/usr/share/elastic/data
- elastic:/usr/share/elastic/data
volumes:
elastic732:
elastic752:
elastic:
Loading…
Cancel
Save