diff --git a/docker/_doc/docker-stack.md b/docker/_doc/docker-stack.md index a465a255..897b75f6 100644 --- a/docker/_doc/docker-stack.md +++ b/docker/_doc/docker-stack.md @@ -87,16 +87,57 @@ alias docker-stack=$FC_ROOT/fc/docker/docker-stack - Link the cloned repository in the docker volumes -```bash -cd $FC_ROOT/fc/docker/volumes/src -ln -s $FC_ROOT/fc -ln -s $FC_ROOT/rnipp-mock + - If you are an internal developer + + ```bash + cd $FC_ROOT/fc/docker/volumes/src + ln -s $FC_ROOT/fc + ln -s $FC_ROOT/rnipp-mock -ln -s $FC_ROOT/fc-apps + ln -s $FC_ROOT/fc-apps -ln -s $FC_ROOT/usagers -ln -s $FC_ROOT/usagers-fca -ln -s $FC_ROOT/formulaire-usagers + ln -s $FC_ROOT/usagers + ln -s $FC_ROOT/usagers-fca + ln -s $FC_ROOT/formulaire-usagers + ``` + + - If you are an external developer + + ```bash + cd $FC_ROOT/fc/docker/volumes/src + ln -s $FC_ROOT/fc + ln -s $FC_ROOT/rnipp-mock + ``` + +- If you are an external developer, create stubs for unavailable containers : + +```bash +cat <<'EOF' >> $FC_ROOT/fc/docker/compose/stubs.yml +version: '2.4' + +services: + fc-exploitation: + image: alpine + hostname: fc-exploitation + fc-support: + image: alpine + hostname: fc-support + fc-core: + image: alpine + hostname: fc-core + fsp1: + image: alpine + hostname: fsp1 + fsp3: + image: alpine + hostname: fsp3 + aidants-connect-mock: + image: alpine + hostname: aidants-connect-mock + fdp1: + image: alpine + hostname: fdp1 +EOF ``` - Add to your host file `/etc/hosts` diff --git a/docker/bash/config/docker.sh b/docker/bash/config/docker.sh index 38df0c44..bd62b4bc 100644 --- a/docker/bash/config/docker.sh +++ b/docker/bash/config/docker.sh @@ -6,7 +6,7 @@ COMPOSE_DIR="${FC_ROOT}/fc/docker/compose" COMPOSE_FILES=$(find ${COMPOSE_DIR} -name "*.yml") VOLUMES_DIR="${FC_ROOT}/fc/docker/volumes" WORKING_DIR="$(cd "$(dirname "${0}")" >/dev/null 2>&1 && pwd)" -DOCKER_REGISTRY_URI="/fc/nodejs:${NODE_VERSION}-dev" +DOCKER_REGISTRY_URI="${FC_DOCKER_REGISTRY}/nodejs:${NODE_VERSION}-dev" if [ "${FC_DOCKER_COMPOSE}" ]; then DOCKER_COMPOSE="${FC_DOCKER_COMPOSE}" else