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 a Dockerfile for container image building #254

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

BaptisteRoseau
Copy link

@BaptisteRoseau BaptisteRoseau commented May 24, 2023

Description

LTeX is very useful and could also be used in CI/CD pipelines or any other environment lacking java.
To run it everywhere it could be great to have a container image available.

Actions

I simply added a Dockerfile to build an LTeX image.

Tests

To test the container image, install a container solution such as Docker or Podman. For this tests we will use podman but the commands are the same.

  1. Clone the repository
  2. Go in the repository's root directory
  3. Run the command podman build -t ltex:latest .
  4. Wait for the build to complete
  5. Run the following command:
podman run -it --rm -v path/to/test/files:/files localhost/ltex:latest ltex-cli /files

Of course, replace path/to/test/files with an actual directory container files to be checked. Don't worry about the --rm option, it is to remove the container instance after running.

Pull a package from the official platform-independent release 16.0.0 by default to build an image without having to clone the repository
@BaptisteRoseau
Copy link
Author

We could also remove the ENTRYPOINT to let the choice to the user to choose between ltex-ls and ltex-cli.

@BaptisteRoseau
Copy link
Author

Ok I removed the ENTRYPOINT to use a CMD instead so the user could use both ltext-cli and ltext-ls from the same image.

I do not plan on making any change unless you require me to do some modifications :D

@SirNoName2705
Copy link

I really would love to see that feature

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

2 participants