Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add pull but don't deploy, notification system #4

Open
wants to merge 23 commits into
base: master
Choose a base branch
from

Conversation

imjosh
Copy link

@imjosh imjosh commented Jun 2, 2018

Sorry for the huge PR. I added some features that I needed and made a few small improvements.

imjosh added 19 commits June 2, 2018 18:04
put config.json in its own folder so it can be easily exposed in a bind mount

update dockerfile
- docker secret support
- take advantage of image layer caching

add dockerignore file to reduce image size
Add custom logger for better log formatting

index.js
-remove unused `Package` variable
-consistent quotes
index.js
-remove configuration code and move to lib/config

lib/config
-add support for reading docker secrets
-sanity check config.json
Add support for optional credentials
move docker api code out of index.js into lib/docker
Add options to be able to pull updated images without automatically deploying them
Add optional feature to log stderr and stdout from docker calls
IME, docker service update doesn't reliably pull the latest the latest image.  Add workaround.
Added functionality to be able to send success/fail notifications via a notfication plugin system.

Added Mailgun email plugin
postinstall script will run NPM install against the plugins folder
from `COPY . .` the `config` directory and the `config.json` file
already exist
Previously forgot to --save
Add: HTTPS Server
Add: Get config.json from Github
Improve: add more error guards, logging
Fix: issues installing npm packages in plugins
Fix: don't attempt docker login if credentials weren't provided
@iaincollins
Copy link
Owner

Wow, thanks for these!

I've been away from the keyboard for a week but will check out all the changes this week!

imjosh added 3 commits June 6, 2018 16:24
fix configFilePath
add CONFIG_DIR & CONFIG_FILE to initLocalDev
remove CONFIG_PATH from initLocalDev
@iaincollins
Copy link
Owner

Hey there! I spoke to soon and turns I'm going to be out of town again until next week, will follow up Tuesday or Wednesday. Thanks! :-)

@iaincollins
Copy link
Owner

iaincollins commented Jul 5, 2018

Okay, I lied about that it seems - am going to rustle up some tests then merge this!

@imjosh
Copy link
Author

imjosh commented Nov 8, 2018

Are you still planning on merging?

@iaincollins
Copy link
Owner

Hi again. Oops, I forgot about this as was looking other projects. 🤦‍♂️

I'll try and get this merged in when I get a minute to take a look.

Why:
* current setup does not allow for dynamically setting what config to read via Dockerfile directly or via use of env variables in docker-compose file
* given multiple instances/environemts, need to be able to use same Dockerfile to set what config to read dyamically

This change address the need by:
* introducing the use of ARG values in Dockerfile to set value of CONFIG env variable at image build time
@exapsy
Copy link

exapsy commented Mar 12, 2020

@iaincollins I think the 3000 additions probably overloaded you :P They seem like good additions for a more robust project. Could we review this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants