Skip to content

Latest commit

 

History

History
56 lines (40 loc) · 1.12 KB

CONCEPTS.md

File metadata and controls

56 lines (40 loc) · 1.12 KB
  • build

    • docker build -t $BELUGA_IMAGE_TAG $BELUGA_DOCKERFILE $BELUGA_CONTEXT
      docker push -t $BELUGA_IMAGE_TAG
  • env

    • Produces variables in .env, bash, etc formats to be used in scripts
  • deploy

    • prep compose file

      COMPOSE_FILE=$BELUGA_COMPOSE_FILE docker-compose config > /gen/docker-compose.yaml
    • transport: (swarm/compose) type determined by DOCKER_HOST

      • local (default)
      • ssh DOCKER_HOST=ssh://username@hostname
        • SSH forward the socket, run swarm/compose in the image (need standard directory path)
      • portainer (perfered)
      • Only one that doesn't run docker or docker-compose directly.
  • portainer (option 0)

    # pretend it's authenticated
    curl 
  • swarm (option 1)

    docker stack deploy \
    	--compose-file /gen/docker-compose.yaml \
    	--prune \
    	--with-registry-auth
  • docker-compose (option 2)

    docker-compose up \
    	--file /gen/docker-compose.yaml \
    	--no-build \
    	--remove-orphans \
    	--detach
  • teardown: same as deploy