mozmeao / ee-infra-jenkins

Ansible playbook to install JenkinsCI. Used by Engagement Engineering
7 stars 10 forks source link

Add envcat #16

Open jgmize opened 7 years ago

jgmize commented 7 years ago

https://github.com/pmac/envcat

pmac commented 7 years ago

or, if you know of a good way for a build script (jenkinsfile) to install a python script like this on the fly then I'm up for that as well. I tried creating a virtualenv on the fly and installing and using the tool from there, but I couldn't get it working for some reason.

For this specific tool I could always just copy it into the repo, but I think having it shared would be nice.

pmac commented 7 years ago

Other option is of course to dockerize envcat and use that on jenkins. Would that be your preferred method? Should be pretty simple to create said image.

pmac commented 7 years ago

I went ahead and knocked out a dockerized version. Works well.

https://github.com/pmac/envcat-docker

You can just create a script in your project and name it envcat and paste the following into it:

#!/bin/bash

docker run --rm -v $(pwd):/envcat mozmeao/envcat:latest "$@"

That'll work just like the tool locally. Opinions?

jgmize commented 7 years ago

How about adding that script to the envcat repo?

Edit: and yes, we can add that script to bedrock and use it within the Jenkins files.

pmac commented 7 years ago

cool. I was planning on adding the above to the docs, but I could also just add the file. I should actually just add the Dockerfile to the main envcat repo and have Travis update the image on release.