Proper way of automatically adding indexes docker service with Gitlab CI

I’m having trouble with finding a proper way migrating a mongo service. I could either build a custom image with baked in indexes or install docker in main image and add those indexes during startup.

I think that both ways are kinda sketchy. The first is good because it will work, but i think that such things like adding necessary indexes should be in Makefile.

  • Building Docker images with Jenkins that runs inside a Docker container
  • ssh issue of docker in redhat 6.5
  • Jenkins docker plugin and linked slaves
  • Docker build ends with error “the command … returned a non-zero code: 100”
  • docker registry push failed on localhost
  • Upgrade postgre sql 9.4.5 from 9.3.10 (Ubuntu 14.04.3 LTS) Dockerfile
  • The second second one is sketchy because Docker image should be as light as possible.

    Is there a way to call commands in service containers from Gitlab CI file?

  • Kubernetes pod fails while making call to google cloud pub/sub with unknown certificate autority
  • Docker CMD with envsubst and tee
  • how to assign public IP while run the docker container in linux
  • nginx app in docker not working on remote machine
  • How should a container running in network mode bridge communicate with another container running in host mode?
  • when protractor running in docker and chrome browser is in headless mode then getting “element not visible”
  • Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.