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 support for building & running from within a container #10

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

gdm85
Copy link

@gdm85 gdm85 commented May 22, 2022

This PR brings 2 main features:

  • capability to build 123 from within a container using Docker or Podman
  • capability to run 123 from a container

The end users simply have to run ./run-from-container.sh 20 and they will get within a Lotus 1-2-3 window in a few jiffies (well, assuming that they do not have a large terminal and are also affected by #8); I haven't tested with versions 21 and 22 of Ubuntu but in worst case scenarios some dependencies need to be customized.

NOTE: the project directory is mounted as a volume so all build artifacts are retained (same goes for the Lotus 1-2-3 root folder).

$CONTAINER_RUN build-from-container.sh

if [ "$S" = "run-from-container.sh" ]; then
exec $CONTAINER_RUN ./123 "$@"
Copy link
Author

Choose a reason for hiding this comment

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

I just realised that the "$@" will actually never work because script requires only 1 argument; I can either remove this feature or make a conditional check for the number of arguments.

@gdm85 gdm85 force-pushed the feat/container-build-and-run branch 2 times, most recently from 2d0f77e to a1ad0d5 Compare May 22, 2022 09:58
@gdm85 gdm85 mentioned this pull request May 22, 2022
@taviso taviso mentioned this pull request May 27, 2022
@gdm85 gdm85 force-pushed the feat/container-build-and-run branch from bd6ac6e to 0545cb5 Compare May 29, 2022 09:19
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.

None yet

1 participant