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

chore: fix minor README issues #16

Merged
merged 1 commit into from
Jul 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Tebako containers are available with different base images to suit various needs
To package your application from inside the Tebako container, follow these steps:

. Pull the Tebako container image:
+

[source,sh]
----
docker pull ghcr.io/tamatebako/amd64-tebako-<container_tag>:latest
Expand Down Expand Up @@ -63,23 +63,20 @@ docker run -it --rm -v $PWD:/mnt/w ghcr.io/tamatebako/amd64-tebako-<container_ta
tebako press --root=/mnt/w/fontist --entry-point=fontist --output=/mnt/w/fontist-package --Ruby=3.2.4
----
+

== Packaging from Outside the Container

You can also package your application from outside the container by running a single Docker command.
This command mounts the GitHub workspace into the container and runs the `tebako press` command, specifying the application root, entry point, output location, and Ruby version.

[source,sh]
----
docker run -v <application_folder>:/mnt/w -t ghcr.io/tamatebako/amd64-tebako-${{ matrix.container }}:latest \
docker run -v <application_folder>:/mnt/w -t ghcr.io/tamatebako/amd64-tebako-<container_tag>:latest \
tebako press <tebako press parameters>
----
+

For example, assuming that you have a Ruby application in the `fontist` folder of the current folder, you can package it to ./fontist-package using the following command:
[source,sh]
----
docker run -v $PWD:/mnt/w -t ghcr.io/tamatebako/amd64-tebako-ubuntu-20.04:latest \
tebako press --root=/mnt/w/fontist --entry-point=fontist --output=/mnt/w/fontist-package --Ruby=3.2.4
----
+