I'm trying to Dockerize an old RoR4 app using Alpine linux 3.5 to build a ruby on rails 4 docker image but I'm getting several errors related to ssl. I've tried mutple versions of rails 4.x but nothing works.
Previous to 2.1, ruby depended on openssl system lib but alpine 3.5+ ships with libressl instead of openssl. You can either remove it and replace with openssl or update your app to ruby 2.3+ to use the default libressl alpine lib.
Adding openssel to alpine(tested with 3.5.0):
apk add openssl openssl-dev
You should install or reinstall ruby after this.
Edit: Sorry there are several problems with 2.1-2.2 ruby versions and libressl. Try 2.3+ to be safe.
Example bug of 2.2 with libre: https://github.com/ruby/openssl/issues/40
Related
I'm trying to add Ruby SDK to RubyMine which is installed at /snap/bin/ruby however I get the following message.
Error configuring SDK: Could not get RubyGems environment for ruby-2.6.3-p62: ver.2.6.3p0 (/snap/bin/ruby).
Please make sure that /snap/bin/ruby is a valid home path for this SDK type.
Currently, RubyMine cannot add Ruby installed using snap: RUBY-23121. As an alternative, you can install Ruby with apt or by using the version manager.
If you are using ruby installed via rbenv, then just select 2nd option 'New local version manager...', instead of 'New local...' since you are using rbenv. Your path should be like this: /home/$USRNAME/.rbenv/bin/rbenv.
You should point it to the where you keep your Ruby Binary File, for example:
Windows - d:\dev\Ruby19\bin\ruby.exe
Mac Brew -/usr/local/Cellar/ruby/2.0.0-p247/bin/ruby
Ruby Version Manager - /Users//.rvm/rubies/ruby-1.9.3-p327/bin/ruby
Linux/Mac Default- /usr/bin/ruby
I have CloudLinux release 7.6 in my server and I used to have wkhtmltopdf linux generic version 0.12.4 previously. I am trying to upgrade wkhtmltopdf to version 0.12.5 and I noticed they no longer have generic linux version.
How do I install the latest version of wkhtmltopdf in my server that uses CloudLinux?
Can I safely install and use the 0.12.5 version for CentOS 7 instead or is my only option is to continue using the 0.12.4 generic linux version on CloudLinux?
I have installed the CentOS 7 build version of Wkhtmltopdf in my CloudLinux Release 7 and its works fine. I have been using it in my production server for a week now and havent had any issues. Since CentOS and CloudLinux are RHEL compatible, it works fine.
I installed the binaries like this:
$ wget https://downloads.wkhtmltopdf.org/0.12/0.12.5/wkhtmltox-0.12.5-1.centos7.x86_64.rpm
$ rpm -Uvh wkhtmltox-0.12.5-1.centos7.x86_64.rpm
$ which wkhtmltopdf
/usr/local/bin/wkhtmltopdf
Thanks to #Rup in comments who helped me with this.
For those who are using Cloud Linux and need to install the latest version (now 12.6) - you might get dependancy errors using the above method.
I used:
yum install -y https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox-0.12.6-1.centos7.x86_64.rpm
Based on suggestion by ashkulz on Github
There is a nasty bug in Docker 1.9.x that is causing java
processes to hang and frankly hang up the entire container
instance, spinning 100% CPU.
I currently have docker 1.9.1 installed because that is all that
the docker install tool will install. There is no opportunity during
the install process to select any other version.
This is completely preventing me from building a cordova
build container. In my internet research I have found many
others who are encountering the same problem.
I've done some research and seen that others are reporting this
problem does not occur with Docker 1.8.3.
I've searched in vain for some hints on how to install older versions
of docker on OS-X. I tried replacing the boot2docker.iso in ~/.docker/machine/machines/default with the 1.8.3 version downloaded
from here: https://github.com/boot2docker/boot2docker/releases/tag/v1.8.3 but that fails miserably. I am guessing that there are other things about my default machine (which had been created with 1.9.1) that are incompatible with it.
If anybody has hints as to how I could create a new machine or modify
the existing machine to work with 1.8.3 I would very much appreciate
it.
Alternatively, let me know if there is some other installation method that would allow me to specify which version of docker to install.
I figured out that what I needed to do is to find an older version of DockerToolbox and that would install the version of docker that I wanted.
I went to the github repository for DockerToolbox:
https://github.com/docker/toolbox/releases?after=v1.9.
and there I found a link to the 1.8.3 binary:
https://github.com/docker/toolbox/releases/download/v1.8.3/DockerToolbox-1.8.3.pkg
I still had to uninstall my previous installation of docker so I followed the uninstall instructions on this page:
https://medium.com/#itseranga/install-old-version-of-docker-osx-c92ebd5f15f7#.5qh1z0ino
Once I had uninstalled and reinstalled via the legacy DockerToolbox, I managed to build the cordova container:
https://github.com/oren/docker-cordova
without incident.
I've been using the following:
https://get.docker.com/builds/$(uname -s)/$(uname -m)/docker-.tgz
See https://github.com/docker/for-mac/issues/1120.
If you happen to know the build number (e.g. 14937) -- not the git commit you see when running docker --version or docker version -- you can form the URL:
https://download.docker.com/mac/{{ beta | stable}}/{{ version }}.{{ build number }}/Docker.dmg
# example:
https://download.docker.com/mac/stable/1.12.6.14937/Docker.dmg
I need some help getting the Ruby SVN bindings to work under Ubuntu 12.04
We're using:
Ruby 1.9.3
Ubuntu 12.04
SVN 1.6.17
We are not using rvm.
I tried an apt-get install libsvn-ruby, but it doesn't actually seem to install the bindings. When I try to require svn/core, Ruby complains that it does not exist. Looking at a description of the package, it says it's a dummy package.
I have spent quite a lot of time trying to create the bindings manually by checking out http://svn.apache.org/repos/asf/subversion/tags/1.6.17 and following the instructions in subversion/bindings/swig/INSTALL, but I always end up getting errors when I try to run make swig-rb
None of my Google searches return useful information about the errors, or about how I'm supposed to get the bindings to work. Can anyone give me some steps to get Ruby 1.9 talking to SVN?
This is because there are no ruby bindings for ruby 1.9 - there are only ruby-bindings for ruby 1.8.
I was using Firefox 12 with Selenium::WebDriver (ver 2.22) and everything was working fine. Then I, stupidly, upgraded to Firefox 13 via the Ubuntu weekly updates. Selenium (2.22) could not control FF 13 so I went out and got Selenium 2.23. Then I started getting some weird behavior and thought it was my hard drive.
Stupid mistake number #2 I did a fresh install of Ubuntu 11.10 on my primary hard drive (thinking I was actually doing it to a backup drive but the backup only held backups of my scripts not an entire image of my primary).
So I installed Ubuntu 11.10 and I didn't think upgrading would be such a big deal (I believe I was using 11.04 previously but it might have been 10 something). In the past upgrading Ubuntu versions has solved most issues for me not crated new ones. Prior to 11.10 I used the command
sudo gem update --system
to upgrade all the gems and got Selenium 2.23 when I did it. Now in 11.10 I get a message about update --system having been removed in Debian blah, blah, blah use apt-get. However, apt-get leaves me with Selenium 2.22 not 2.23 and Selenium still can't control FF 13.
I tried guessing and used the command
sudo gem install selenium-webdriver-2.23.0
hoping to upgrade my selenium that way but no luck.
So after multiple attempts at getting Selenium 2.23 I downgraded FF to 12 and tested that FF 12 could be controlled via the IRB. FF 12 immediately upgraded itself to FF 13.0.1 and now I'm back to square one.
Is there a way to get Selenium 2.23 on Ubuntu 11.10?
You can install a specific version of Selenium using:
pip install selenium==2.23.0
To verify the version installed from pip, use (will list all installed libraries and their version number):
pip freeze
or to just list selenium:
pip freeze | grep selenium
Have you tried downloading Selenium from the official site?
Try upgrading to a stand alone selenium library (jar in my case) , that might help as you might be missing on updating the dependencies.