Skip to content

AzuladoToujours/ci-stack-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ADMINISTRATIVE STACK IN DOCKER SWARM/DOCKER-COMPOSE

PREPARE ENVIRONMENT

# Get the docker path and copy it.
which docker

Docker path is unique in each docker installation, so run the command and change it in the Jenkins-service.

CI-COMPOSE

      volumes:
        - type: bind
          source: $HOME/jenkins_data
          target: /var/jenkins_home
        - [which docker OUTPUT]:/usr/bin/docker
        - /var/run/docker.sock:/var/run/docker.sock

CI-STACK

     volumes:
        - jenkins_data:/var/jenkins_home
        - [which docker OUTPUT]:/usr/bin/docker
        - /var/run/docker.sock:/var/run/docker.sock

DOCKER SWARM STACK

# Run the stack config file
sh stack.sh

# Delete the stack
docker stack rm stack

DOCKER-COMPOSE

# Run the docker-compose config file
sh compose.sh

# Delete the compose
docker-compose -f ci-compose.yml down