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

emasser Docker Build Fix #1080

Merged
merged 5 commits into from
Feb 9, 2023
Merged

emasser Docker Build Fix #1080

merged 5 commits into from
Feb 9, 2023

Conversation

georgedias
Copy link
Contributor

@georgedias georgedias commented Feb 5, 2023

dependabot was changing the inquire and inquirer-file-tree-selection-prompt

Version above the listed here do not support CommonJs modules.
required fixed versions are:
"inquirer": "8.0.0",
"inquirer-file-tree-selection-prompt": "1.0.19"

How to test - ERROR

  1. Clone the master repo
  2. On the root directory of the repo Build the Docker package
    a. docker build -t safdockerbuildtest:latest .
  3. Run the newly created image:
    a. docker run s safdockerbuildtest:latest

It should fail due to the wrong inquirer-file-tree-selection-prompt being used

How to test -FIX

  1. Clone the emass_clientDependencies repo
  2. On the root directory of the repo Build the Docker package
    a. docker build -t safdockerbuildtest:latest .
  3. Run the newly created image:
    a. docker run s safdockerbuildtest:latest

It should run with the previous error
Additional test run:
docker run safdockerbuildtest:latest emasser version

NOTE

  • Make sure docker is running
  • If the build errors executing the yarn command yarn --frozen-lockfile --production --network-timeout 600000, comment line 17 on the Dockerfile
  • If the build errors executing the bash jq curl ca-certificates, comment line 26 on the Dockerfile

@mergify
Copy link
Contributor

mergify bot commented Feb 7, 2023

This pull request has a conflict. Could you fix it @georgedias?

@Amndeep7
Copy link
Contributor

Amndeep7 commented Feb 8, 2023

Was able to duplicate the issue you had. Your fix made it so that the command would run, but it's still not working properly. For some reason, at the very first prompt when i run emasser configure it doesn't let me put in any characters and then immediately exits the application.

Win10, wsl -> ubuntu


@georgedias
The configure (generate a .env config file) capability does not work when deploying via docker. I will have to note that on the documentation. If you deploy via executables you will see that it works. The main issue being resolved by the PR was the inability of deploying saf via docker due to the dependency miss-match, that was fixed.

I don't think we can fix the issue as it is imbedded within the inquirer package and not how we are implementing the capabilities provided by the package.

Signed-off-by: Amndeep Singh Mann <[email protected]>
@sonarcloud
Copy link

sonarcloud bot commented Feb 9, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Amndeep7 Amndeep7 merged commit 6201b42 into main Feb 9, 2023
@Amndeep7 Amndeep7 deleted the emass_clientDependencies branch February 9, 2023 00:32
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.

2 participants