Skip to content
This repository was archived by the owner on Apr 12, 2026. It is now read-only.

Add a Dockerfile for container image building#254

Open
BaptisteRoseau wants to merge 6 commits into
valentjn:developfrom
BaptisteRoseau:develop
Open

Add a Dockerfile for container image building#254
BaptisteRoseau wants to merge 6 commits into
valentjn:developfrom
BaptisteRoseau:develop

Conversation

@BaptisteRoseau

@BaptisteRoseau BaptisteRoseau commented May 24, 2023

Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

I really would love to see that feature

@BaptisteRoseau BaptisteRoseau mentioned this pull request Aug 30, 2024
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