Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Add Container Definition for COBOL #1280

Closed
wants to merge 2 commits into from
Closed

Add Container Definition for COBOL #1280

wants to merge 2 commits into from

Conversation

elswork
Copy link

@elswork elswork commented Jan 27, 2022

Add COBOL devcontainer to compile and run COBOL

@elswork
Copy link
Author

elswork commented Feb 3, 2022

Is something wrong with this PR?
I believe it could be helpful for many people in order to learn and discover COBOL one of the most used programming languages in world.

@elswork
Copy link
Author

elswork commented Feb 7, 2022

Please, can somebody review this PR? 👀

Copy link
Member

@bamurtaugh bamurtaugh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your submission @elswork! Left some comments in a review.

Once the container is up and running, open container terminal and execute:

```
cobc -x main.cbl
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After compiling, I received the warning:

main.cbl: 22: warning: line not terminated by a newline

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've removed trailing white spaces in the cobol file and the warning message has disappeared.

containers/cobol-gnucobol-2.2.0/README.md Outdated Show resolved Hide resolved
@@ -0,0 +1,32 @@
# Use the [Choice] comment to indicate option arguments that should appear in VS Code UX. Use a comma separated list.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could the cobol-gnucobol-2.2.0 folder have a simpler name, like cobol?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, of course!

RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& /bin/bash /tmp/library-scripts/common-debian.sh "${INSTALL_ZSH}" "${USERNAME}" "${USER_UID}" "${USER_GID}" "${UPGRADE_PACKAGES}" "true" "true"\
#
# ****************************************************************************
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove additional # comments to keep Docerkfile more concise?


working-storage section.

77 mensaje picture x(32) value 'Hello World!!!'.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you use message here and below instead?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'message' is a reserved word I've switched it to 'imessage'

@@ -0,0 +1,17 @@
#!/bin/bash
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could there be guidance in the readme to explain how to use the test script?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've removed those script tests.

@bamurtaugh suggestion accepted

Co-authored-by: Brigit Murtaugh <[email protected]>
@elswork
Copy link
Author

elswork commented Feb 28, 2022

Created a new Pull Request #1330

This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants