Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc. docker-stack : conteneurs de substitution pour les développeurs externes #5

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 49 additions & 8 deletions docker/_doc/docker-stack.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
2 changes: 1 addition & 1 deletion docker/bash/config/docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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="<france-connect-registry>/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
Expand Down