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

Docker support & fix terraform template #4

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

Conversation

nuschpl
Copy link
Owner

@nuschpl nuschpl commented Nov 26, 2020

Added a dockerfile that builds a docker image to use npk. This provides two benefits.

  1. If CoalfireLabs decides to publish and maintain the npk image, then users can just run npk by using a single command line in docker.

  2. If CoalfireLabs does not publish a docker image, users can still use this dockerfile to build the container themselves.

This prevents everyone from dealing with multiple terraform, python, pip and node versions that do not quite work together.

Pending to be done:

  • Add ARGs, ENVs or a startup script (á la MySQL) so that the container can setup the aws credential profile when running and does not need to be a manual process.
  • Add ARG, ENVs or a startup script (á la MySQL) so that the container can setup the /npk/terraform/npk-settings.json file and does not need to be a manual process.
  • After these are done, we can remove nano (or any text editor) being installed, making the image smaller and faster to create.

This change also fixes the error in the terraform/cognito_iam_roles.tf template, which basically just had an extra comma. Fixes Coalfire-Research#49.

c6fc and others added 29 commits January 4, 2021 19:41
Update AMI link in README.md for Master Branch
Updated Axios to resolve a known vulnerability issue with versions <0.20.1.
…m-selfhost/compute-node/axios-0.21.1' into dev

Capturing awhitehatter's force-merge to Master
📌 Pin AWSCLI to version 2

📌 Use `grep -c` for terraform dependency check
The `-c` flag counts the number of matches. A bit cleaner than `wc -l`
Pin AWSCLI version and update dependency checks
Added a dockerfile that builds a docker image to use npk. This provides two benefits.

1. If CoalfireLabs decides to publish and maintain the npk image, then users can just run npk by using a single command line in docker.

2. If CoalfireLabs does not publish a docker image, users can still use this dockerfile to build the container themselves.

This prevents everyone from dealing with multiple terraform, python, pip and node versions that do not quite work together.

Pending to be done:

- Add ARGs, ENVs or a startup script (á la MySQL) so that the container can setup the aws credential profile when running and does not need to be a manual process.
- Add ARG, ENVs or a startup script (á la MySQL) so that the container can setup the /npk/terraform/npk-settings.json file and does not need to be a manual process.
- After these are done, we can remove `nano` (or any text editor) being installed, making the image smaller and faster to create.

This change also fixes the error in the `terraform/cognito_iam_roles.tf` template, which basically just had an extra comma. Fixes Coalfire-Research#49.
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.

Deploy Failed in latestcognito_iam_roles.tf
5 participants