Skip to content

Commit

Permalink
Update README.adoc
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx committed Jul 10, 2024
1 parent 8811e17 commit 6fe8ba6
Showing 1 changed file with 2 additions and 5 deletions.
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
----
+

0 comments on commit 6fe8ba6

Please sign in to comment.