Debugging Edex Docker build #1
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following changes:
awips_install.shscript is no longer fetched viawget. It is instead stored locally, under the newscripts/directory, and has been renamedawips_install_local.sh.-eflag has been added to the install script so that errors cause it to exit immediately.-xflag has been added to the install script so that the output is verbose when the script runs.rsyncandlesshave been added to the Dockerfile so that they are installed during thedocker buildprocess.lessis useful in debugging,rsyncis invoked by the install script.yum cleanhave been reversed, in order to address a script failure.Even with these changes, I'm still working to get the docker image to build, but this is s a step in the correct direction. Currently, the install script fails when trying to installs various
awips2-packages,awips2-edex,awips2-psql, etc. But this pull request makes debugging easier, and moves past some initial errors and towards these more interesting ones.With this PR,
docker buildwill succeed. I have been using the following syntax:Once I have the shell prompt in the running container, I can run
$ cdto change to/root/directory, where theawips_install_local.shscript lives. At this point the script can be run manually with./awips_install_local.sh, and the subsequent errors can be observed and, hopefully, debugged.