Replies: 4 comments 6 replies
-
I hear you. I also wish Ruby apps could be distributed as a single executable. Also, if I recall correctly, one of the issues to consider are dependencies that need to be compiled - I think bashly has at least the YAML library (Psych) that is system-specific. I am curious to see if you find something new in this regard, feel free to share your progress - happy to help. |
Beta Was this translation helpful? Give feedback.
-
seems this is a maintained tool for it https://github.com/tamatebako/tebako i will play around with it they seem to have an example with psych 5 that works? but im not sure about other packages. naive compilation with
maybe im just doing something wrong, might ask them for help. |
Beta Was this translation helpful? Give feedback.
-
Seems like they complain about some built-in Ruby gems - like the In my Alpine Ruby image for example, I am adding these dependencies: ENV BUILD_PACKAGES bash curl curl-dev ruby-dev build-base
ENV RUBY_PACKAGES \
ruby ruby-io-console ruby-irb \
ruby-json ruby-etc ruby-bigdecimal ruby-rdoc \
libffi-dev zlib-dev yaml-dev |
Beta Was this translation helpful? Give feedback.
-
Bashly is a development tool, and not intended to be distributed with your code. They are independent of each other. Your code produced will run as an executable on any system with bash, such as Linux and Mac OSX. Setting up a ruby dev environment is easy. I have used RVM in the past to manage different ruby versions and gem sets per project. I am currently using ASDF, and highly recommend it. It is extremely easy to set up. It is totally optional. Just having ruby and installing the bashly gem is all that is needed. Mac OSX already has ruby pre installed. On arch, installing ruby is a one liner.
|
Beta Was this translation helpful? Give feedback.
-
Description
hi.
i really love bashly, it's honestly life changing, but i really hate that i either need a ruby install, or docker, to use it. it's the only thing i have ruby installed on my system for, since i dont like waiting for docker every time to build. (i guess i could create a daemon using compose that mounted my code dir and run the bashly commands there.... its lots of effort regardless)
i am not very familiar with ruby packaging and bundling, but I thought it might be a fun side-project to try to compile a giant redistributable bashly binary.
my thought was maybe i could try to bundle bashly and then just put that code into some binary with a ruby runtime and package that together.
i was curious if you had any experience with this, or if you knew of any weird libraries or ruby functionality that you are using within bashly which might make this difficult or impossible? or maybe i am on a wrong track and there is a hidden secret easy way to use bashly as single binary
if not i will try to do some research and see if i can hack something out.
Beta Was this translation helpful? Give feedback.
All reactions