open-learning-exchange / planet

🌍 Planet Learning - Angular application
https://hub.docker.com/r/treehouses/planet
GNU Affero General Public License v3.0
62 stars 39 forks source link

create script generate_tags.yml in docker dir #1935

Open dogi opened 6 years ago

dogi commented 6 years ago

analog to generate_yml.sh we want a script to make tag to do the local conversion for planet and db-init ...

services:
  db-init:
    image: treehouses/planet-tags:db-init-0.3.6-update-credentials-6ac0c746
  planet:
    image: treehouses/planet-tags:0.3.6-update-credentials-6ac0c746
version: "2"

install-xyz.yml

should generate a tag.sh or other script name? with content of

#!/bin/bash

docker tag treehouses/planet-tags:db-init-0.3.6-update-credentials-6ac0c746 treehouses/planet:db-init-local
docker tag treehouses/planet-tags:0.3.6-update-credentials-6ac0c746 treehouses/planet:local
paulbert commented 6 years ago

Could we use this script to replace generate_yml.sh? Even go a step further and add the docker-compose to the end so you just run the script and the docker switches to the branch you are on?